| @@ 186-197 (lines=12) @@ | ||
| 183 | * @param string $property |
|
| 184 | * @return boolean |
|
| 185 | */ |
|
| 186 | public function __isset($property) |
|
| 187 | { |
|
| 188 | $value = $this->__get($property); |
|
| 189 | ||
| 190 | if (is_array($value) && !count($value)) { |
|
| 191 | return false; |
|
| 192 | } |
|
| 193 | if (is_bool($value) || is_object($value)) { |
|
| 194 | return true; |
|
| 195 | } |
|
| 196 | return (bool) $value; |
|
| 197 | } |
|
| 198 | ||
| 199 | /** |
|
| 200 | * |
|
| @@ 313-324 (lines=12) @@ | ||
| 310 | $this->set($property, $value); |
|
| 311 | } |
|
| 312 | ||
| 313 | public function __isset($property) |
|
| 314 | { |
|
| 315 | $value = $this->__get($property); |
|
| 316 | ||
| 317 | if (is_array($value) && !count($value)) { |
|
| 318 | return false; |
|
| 319 | } |
|
| 320 | if (is_bool($value) || is_object($value)) { |
|
| 321 | return true; |
|
| 322 | } |
|
| 323 | return (bool) $value; |
|
| 324 | } |
|
| 325 | } |
|
| 326 | ||