Re: __call() magic method
| From: | Diogo Neves | Date: | Sat, 30 Aug 2008 21:02:52 +0000 |
| Subject: | Re: __call() magic method | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40174@lists.php.net to get a copy of this message | ||
Hi again,
I'm workarrounding ( I really don't know if that word exists ) with an
'_' on private methods, but u can that that off on user class to see
this error:
Fatal error: Call to private method user::print_user() from context
'' in /home/diogo/Documents/devspace/mangas.dev/index.php on line 47
PS: This is test code, it's a mess and it's bad naming and coding
standards, don't that that part too serious.
On Sat, Aug 30, 2008 at 9:56 PM, Cristian Rodríguez <crrodriguez@suse.de> wrote:
> Diogo Neves escribió:
>> Hi all,
>>
>> I'm emailling to ask why __call isn't called when you call a private
>> method from outside of function...
>
> Please provide example code ;-)
>
>
> --
> "A computer is like an Old Testament god, with a lot of rules and no
> mercy. "
>
> Cristian Rodríguez R.
> Platform/OpenSUSE - Core Services
> SUSE LINUX Products GmbH
> Research & Development
> http://www.opensuse.org/
>
>
>
--
Thanks by your attention,
Diogo Neves
Web Developer @ SAPO.pt by PrimeIT.pt
Attachment: [application/x-httpd-php] index.php
Attachment: [application/x-httpd-php] user.php
Attachment: [application/x-httpd-php] index.php
Attachment: [application/x-httpd-php] user.php