CodeIgniter Forums
General questopn on php classes - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: General questopn on php classes (/thread-11234.html)

General questopn on php classes - El Forum - 08-31-2008

I have a couple of classes that I would like to use but originally I didnt write. Its well designed but Its an extremely long file with display functionality thats usefull but should for me really be optional and functions I do need.

Its fairly easy to strip out the display stuff into a seperate class that extends the first, but the problem remains the remaining code is still long and challenging for debugging.

I was hoping to simply split the class into sections by function ie dml, ddl etc and include theses files back into the class.

However it appears php wont allow. Do any of you more experienced OO php developers have any advice on how to 'kludge' err simulate this until I do have the time to refactor the code into smaller utility classes.

Thank you