
OO Programming in CMSMS
Re: OO Programming in CMSMS
It would be a great idea 

-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: OO Programming in CMSMS
Look at CGExtensions and any module that extends cgextensions.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: OO Programming in CMSMS
Can you be a bit more precise what to look at?
Re: OO Programming in CMSMS
Could be a CORE feature, and not a hack...
Re: OO Programming in CMSMS
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.
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.
Last edited by gerry on Mon Jan 25, 2010 10:26 am, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: OO Programming in CMSMS
CMS 1.7.1 will have a class autoloader...
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.