Re: [Phpslash-devel] OOP & php programming style
Brought to you by:
joestewart,
nhruby
From: Lars H. <he...@qu...> - 2002-03-15 16:50:24
|
Hi, Use: $object->>getVariable('variable'); > or is using $object->variable OK? I prefer JAVA style with $object->setValue($val) and $myVar = $object->getValue(); because it's easy to implement some control structures if someone sets a variable etc.. I.e.: function setName($name) { $this->Name = trim($name); } BTW: I hope, that I'm able to submit my templates to the CVS next week. I'm very slow, but busy. Regards, Lars |