| @@ 89-100 (lines=12) @@ | ||
| 86 | * @param string $name |
|
| 87 | * @return object |
|
| 88 | */ |
|
| 89 | public function __get ($name) { |
|
| 90 | if ('o' == $name{0}) { |
|
| 91 | $s_func = 'NewObj' . substr($name, 1); |
|
| 92 | if (method_exists($this, $s_func)) { |
|
| 93 | // New object |
|
| 94 | $this->$name = $this->$s_func(); |
|
| 95 | return $this->$name; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | return null; |
|
| 100 | } // end of func __get |
|
| 101 | ||
| 102 | ||
| 103 | /** |
|
| @@ 251-263 (lines=13) @@ | ||
| 248 | * @param string $name |
|
| 249 | * @return object |
|
| 250 | */ |
|
| 251 | public function __get($name) |
|
| 252 | { |
|
| 253 | if ('o' == $name{0}) { |
|
| 254 | $s_func = 'NewObj' . substr($name, 1); |
|
| 255 | if (method_exists($this, $s_func)) { |
|
| 256 | // New object |
|
| 257 | $this->$name = $this->$s_func(); |
|
| 258 | return $this->$name; |
|
| 259 | } |
|
| 260 | } |
|
| 261 | ||
| 262 | return null; |
|
| 263 | } // end of func __get |
|
| 264 | ||
| 265 | ||
| 266 | /** |
|