On 5 Apr 2004 at 11:23, Derick Rethans wrote:

> It is called from a public function, how can that be outside of the
> class' point of view?
> 
> Derick

Ah, now I understand your point. But __call() is called by the engine, 
not by setup(), so it is the outside world....

Class CallMe
{
     public function setup()
     {
         $this->fakeMethod();
     }

     protected function __call($method, $params)
     {
         echo 'you called CallMe::'.$method."\n";
     }
}

-- 
Ferdinand Beyer
<[EMAIL PROTECTED]>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to