Groupoffice base classes - static functions

Discuss about Group-Office development here

Moderator: Developers

jamesarthur
Posts: 55
Joined: Fri Nov 08, 2013 9:15 am

Groupoffice base classes - static functions

Postby jamesarthur » Fri Nov 29, 2013 2:02 pm

Hey

It seems that there are a lot of functions which could be static but aren't:

for example GO_Base_Db_ActiveRecord::primaryKey(). Will there be some subclasses which use $this in the primary key?
jamesarthur
Posts: 55
Joined: Fri Nov 08, 2013 9:15 am

Re: Groupoffice base classes - static functions

Postby jamesarthur » Fri Nov 29, 2013 2:09 pm

Aah OK you can't override static functions - that's why you need to do it this way.

Apparently you can in php 5.3 onwards -> http://stackoverflow.com/questions/1317 ... ods-in-php
mschering
Site Admin
Site Admin
Posts: 8332
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Groupoffice base classes - static functions

Postby mschering » Mon Dec 02, 2013 3:14 pm

We started this with php 5.2. Then it wasn't possible yet.
Best regards,

Merijn Schering
Intermesh

Who is online

Users browsing this forum: No registered users and 1 guest

cron