Re: "::" meaning and documentation
| From: | Ulf Wendel | Date: | Mon, 26 Jun 2000 16:48:42 +0000 |
| Subject: | Re: "::" meaning and documentation | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22367@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> UW>> If "::" introduces static calls what's the syntax to access
> UW>> properties
> UW>> and methods of foo from within do() ? Of course this can't be done using
>
> There's no way to do this. Since there's no object of class foo. What your
> "$this->bar = 3;" line does is to create new object of "stdClass" in
> $this and make "bar" property of it to be equal 3.
One final question: why does it create a new object? I'm not calling it
from withing a derived class.
Ulf