| @@ 20-32 (lines=13) @@ | ||
| 17 | * @return mixed A reference to the variable. If not set it will be |
|
| 18 | * auto initialised to NULL. |
|
| 19 | */ |
|
| 20 | static function &getStaticProperty($class, $var) |
|
| 21 | { |
|
| 22 | static $properties; |
|
| 23 | if (!isset($properties[$class])) { |
|
| 24 | $properties[$class] = array(); |
|
| 25 | } |
|
| 26 | ||
| 27 | if (!array_key_exists($var, $properties[$class])) { |
|
| 28 | $properties[$class][$var] = null; |
|
| 29 | } |
|
| 30 | ||
| 31 | return $properties[$class][$var]; |
|
| 32 | } |
|
| 33 | } |
|
| @@ 215-227 (lines=13) @@ | ||
| 212 | * @return mixed A reference to the variable. If not set it will be |
|
| 213 | * auto initialised to NULL. |
|
| 214 | */ |
|
| 215 | function &getStaticProperty($class, $var) |
|
| 216 | { |
|
| 217 | static $properties; |
|
| 218 | if (!isset($properties[$class])) { |
|
| 219 | $properties[$class] = array(); |
|
| 220 | } |
|
| 221 | ||
| 222 | if (!array_key_exists($var, $properties[$class])) { |
|
| 223 | $properties[$class][$var] = null; |
|
| 224 | } |
|
| 225 | ||
| 226 | return $properties[$class][$var]; |
|
| 227 | } |
|
| 228 | ||
| 229 | // }}} |
|
| 230 | // {{{ registerShutdownFunc() |
|