Re: protected __call() question
| From: | Ferdinand Beyer | Date: | Mon, 05 Apr 2004 11:18:57 +0000 |
| Subject: | Re: protected __call() question | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8936@lists.php.net to get a copy of this message | ||
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
<fb@fbeyer.com>