| @@ 164-168 (lines=5) @@ | ||
| 161 | ||
| 162 | $clearcache = false; |
|
| 163 | // get current value for $name, to check if it has a getter and/or a setter |
|
| 164 | if ( array_key_exists($name, $this->_ownProperties) ) { |
|
| 165 | $current = $this->_ownProperties[$name]; |
|
| 166 | } else { |
|
| 167 | $current = $this->_getPrototypeProperty($name); |
|
| 168 | } |
|
| 169 | if ( $valueIsSetterOrGetter ) { |
|
| 170 | // reconfigure current property |
|
| 171 | $clearcache = true; |
|
| @@ 268-273 (lines=6) @@ | ||
| 265 | */ |
|
| 266 | public function __isset($name) |
|
| 267 | { |
|
| 268 | if ( array_key_exists($name, $this->_ownProperties) ) { |
|
| 269 | return isset($this->_ownProperties[$name]); |
|
| 270 | } else { |
|
| 271 | $val = $this->_getPrototypeProperty( $name ); |
|
| 272 | return isset( $val ); |
|
| 273 | } |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|