Re: [PHP] best practise accessing object's attributes from objects itself

2011-05-23 Thread David Harkness
On Mon, May 23, 2011 at 6:29 AM, Simon Hilz wrote: > i was wondering if there is any best practise known how one should access > the attributes of an object from the object itself. > For most properties I use $this->property within the object because nine times out of ten no work ever needs to b

[PHP] best practise accessing object's attributes from objects itself

2011-05-23 Thread Simon Hilz
hi, i was wondering if there is any best practise known how one should access the attributes of an object from the object itself. i mean, it is a good practise to write getters and setters for the attributes of an object to its interface. but is it common to modify the attributes from the obje