best practise accessing object's attributes from objects itself

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 object itself directly or also through the interface methods? i use the interface methods in my own classes at most times but recently i dived into zend framework and there it seems not to be usual. as zend framework is more or less a showpiece-software in php programming i'm not sure if my practises are good. are there any discussions by really focused php programmers about that?


Simon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux