Hmm don't see clearly how could work for static methods :P On Tue, Sep 28, 2004 at 01:39:46PM -0500, Jay Blanchard wrote: > [snip] > Is there a way to get __call to work for static methods? It doesn't > seem to work by default and the docs are pretty sparse. > [/snip] > > Found a little more info > http://us4.php.net/manual/en/language.oop5.overloading.php > > <?php > class Caller { > private $x = array(1, 2, 3); > > function __call($m, $a) { > print "Method $m called:\n"; > var_dump($a); > return $this->x; > } > } > > $foo = new Caller(); > $a = $foo->test(1, "2", 3.4, true); > var_dump($a); > ?> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
-- Maciek Ruckgaber Bielecki "If my theory of relativity is proven successful, Germany will claim me as a German and France will declare that I am a citizen of the world." --Albert Einstein-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php