Re: [PHP] overloading members. aghhh!!!

2007-11-20 Thread Jochem Maas
Peter Ford wrote: > Jochem Maas wrote: >> Kiketom wrote: >>> Hi all. >>> Yesterday i have looking for the overloading members >>> >>> Member overloading >>> void __set ( string name, mixed value ) >>> mixed __get ( string name ) >>> >>> As an example i put this code: >>> >>> class foo >>> { >>>

Re: [PHP] overloading members. aghhh!!!

2007-11-20 Thread Peter Ford
Jochem Maas wrote: > Kiketom wrote: >> Hi all. >> Yesterday i have looking for the overloading members >> >> Member overloading >> void __set ( string name, mixed value ) >> mixed __get ( string name ) >> >> As an example i put this code: >> >> class foo >> { >> private $ID; >> private $Nam

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Ok, no problem ;) "Jochem Maas" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Kiketom wrote: >> Then if i make this >> >> $foo = new foo(); >> $foo->ID = 12; >> >> what is happening?? >> if __Set and __Get only works if a member isn't exits, >> >> How come I do this? >> $foo

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote: > Then if i make this > > $foo = new foo(); > $foo->ID = 12; > > what is happening?? > if __Set and __Get only works if a member isn't exits, > > How come I do this? > $foo->ID = 12; > if the member $ID is private??? > > I thought that this was possible because i have declared th

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Then if i make this $foo = new foo(); $foo->ID = 12; what is happening?? if __Set and __Get only works if a member isn't exits, How come I do this? $foo->ID = 12; if the member $ID is private??? I thought that this was possible because i have declared the two method set and get :P "Jochem Ma

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote: > Hi all. > Yesterday i have looking for the overloading members > > Member overloading > void __set ( string name, mixed value ) > mixed __get ( string name ) > > As an example i put this code: > > class foo > { > private $ID; > private $Name; > private $LastName; wh

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Ok, this is a great solution Thanks ;) "Robert Cummings" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > On Mon, 2007-11-19 at 11:25 +0100, Kiketom wrote: >> Hi all. >> Yesterday i have looking for the overloading members >> >> Member overloading >> void __set ( string name, m

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Robert Cummings
On Mon, 2007-11-19 at 06:27 -0500, Robert Cummings wrote: > On Mon, 2007-11-19 at 11:25 +0100, Kiketom wrote: > > Hi all. > > Yesterday i have looking for the overloading members > > > > Member overloading > > void __set ( string name, mixed value ) > > mixed __get ( string name ) > > > > As an e

Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Robert Cummings
On Mon, 2007-11-19 at 11:25 +0100, Kiketom wrote: > Hi all. > Yesterday i have looking for the overloading members > > Member overloading > void __set ( string name, mixed value ) > mixed __get ( string name ) > > As an example i put this code: > > class foo > { > private $ID; > private