Hi!
class Bar {
// override getFoo() to add some specific behaviour
public function getFoo() {
// do the specific stuff
parent::getFoo();
}
}
I think you meant Bar to extend ActiveRecord? But anyway, I think that
this particular call should be done through __call, not __callStatic,
since it's basically non-static call. The line between the two wasn't
really well-defined in PHP (you could call static methods non-statically
and vice versa) which is a pity but I think distinction can be made in
this case.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php