Thread: Class Issue
View Single Post
  #5 (permalink)  
Old 10-01-09, 04:39 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Okay - then identify the common properties and methods and create them in the base class, all other classes will extend it.

I think you may find a good example in Zend Framework's database class, or perhaps any other framework.

If the properties are stored in the base class as an array, assignment, overriding and dynamic construction of the SQL is possible.
Reply With Quote
The Following User Says Thank You to wirehopper For This Useful Post:
Zefer (10-01-09)