Page 1 of 1
Re: OO Programming in CMSMS
Posted: Fri Jan 22, 2010 12:54 pm
by totophe
It would be a great idea

Re: OO Programming in CMSMS
Posted: Fri Jan 22, 2010 5:38 pm
by calguy1000
Look at CGExtensions and any module that extends cgextensions.
Re: OO Programming in CMSMS
Posted: Sat Jan 23, 2010 1:36 pm
by gerry
Can you be a bit more precise what to look at?
Re: OO Programming in CMSMS
Posted: Mon Jan 25, 2010 8:19 am
by totophe
Could be a CORE feature, and not a hack...
Re: OO Programming in CMSMS
Posted: Mon Jan 25, 2010 9:57 am
by gerry
After further investigation I realize why it's working for you but isn't for me. I am in fact trying to create an abstract class (one that isnt a full-fledged module itself) and have my modules extend from that. Current mechanics only allow me to create fat classes which implement everything, not really what I had in mind.
Anyway, I believe the way CMSMS loads modules needs to be addressed, if not only because looping through every parent for every declared class scales very badly (exponentially even) and is a hugely inefficient way of doing what you are trying to do. On top of that, it will make modules and their classes behave like any PHP developer would expect them to behave.
Re: OO Programming in CMSMS
Posted: Fri Apr 09, 2010 10:29 pm
by calguy1000
CMS 1.7.1 will have a class autoloader...