[UPHPU] Child class references static variable of parent instead
of its own
Richard K Miller
richardkmiller at gmail.com
Fri Aug 17 13:46:53 MDT 2007
On Aug 17, 2007, at 1:19 PM, Justin Giboney wrote:
> Why does your function have to be static anyways?
> Justin Giboney | www.forodeherbales.com/edge
In my case, these static functions are factories that return objects
themselves. For example, this statement should return an array of
objects, of the class Person, for people whose last name is Giboney:
$people = Person::search_by("lastname", "Giboney");
I don't want to have to instantiate a Person object to call the
search_by() method.
More information about the UPHPU
mailing list