[UPHPU] Child class references static variable of parent instead
of its own
Ray Hunter
bigdog at venticon.com
Fri Aug 17 13:23:39 MDT 2007
> Do you see anyway around this? My parent class is a generic database
> table wrapper to provide ORM mapping. Each child class maps to a
> specific table. I'd like to implement several static functions such as
> search_by(), a factory pattern that returns an object or objects of its
> own class that match the search. I see no way to define the database
> table in a child class and have it passed back to a static function in
> the parent class.
you might want to override the parent classes implementation. or create
an abstract method in parent that gets overriden in the child.
--
thebigdog
More information about the UPHPU
mailing list