[nyphp-talk] Zend Corp listing Local PHP Groups

2010-01-12 Thread Jake McGraw
http://www.zend.com/en/community/local-php-groups Local PHP Groups We're building a PHP User Group directory on zend.com - get your User Group listed! You asked, we listened. Following requests from many PHPers, we will be dedicating an area on our website to PHP User Groups. As a first step, we a

Re: [nyphp-talk] Getter/setter best practices

2010-01-12 Thread Chris Snyder
On Tue, Jan 12, 2010 at 12:12 PM, Rob Marscher wrote: > On Jan 12, 2010, at 11:58 AM, Yitzchak Schaffer wrote: >> What's BP for changing the values of protected properties within a class >> that also has public getter/setters?  e.g. in Foo::doSomething() below: > ... >>  protected function doSome

Re: [nyphp-talk] Getter/setter best practices

2010-01-12 Thread Paul A Houle
Yitzchak Schaffer wrote: Hello all, What's BP for changing the values of protected properties within a class that also has public getter/setters? e.g. in Foo::doSomething() below: I think you're better off making the "underlying" variable private, and then always access it through the

Re: [nyphp-talk] Getter/setter best practices

2010-01-12 Thread Rob Marscher
On Jan 12, 2010, at 11:58 AM, Yitzchak Schaffer wrote: > What's BP for changing the values of protected properties within a class that > also has public getter/setters? e.g. in Foo::doSomething() below: ... > protected function doSomething() > { >$new_value = $this->getNewValue(); > >$

[nyphp-talk] Getter/setter best practices

2010-01-12 Thread Yitzchak Schaffer
Hello all, What's BP for changing the values of protected properties within a class that also has public getter/setters? e.g. in Foo::doSomething() below: class Foo { protected $bar; public function getBar() { return $this->bar; } public function setBar( $baz ) { $this->