Re: Do you use _set?
- From: Michael Fesser <netizen@xxxxxx>
- Date: Sun, 30 Sep 2007 21:22:44 +0200
..oO(news.telus.net)
i don't like the magic function because it limits the ability
for ide to list all the class variables.
I don't use __set() at the moment, but its counterpart __get(). In my
own component framework it makes it very convenient to directly access
subcomponents without having to explicitly call a function everytime:
Without magic:
$foo->getComponentById('this')->getComponentById('that')->doSomething();
With magic:
$foo->this->that->doSomething();
Micha
.
- References:
- Do you use _set?
- From: news.telus.net
- Do you use _set?
- Prev by Date: Re: redirect after send form to email with message
- Next by Date: Re: Getting Remote Windows Username on Intranet
- Previous by thread: Re: Do you use _set?
- Next by thread: .htacess and fopen
- Index(es):