|
@@ 371-374 (lines=4) @@
|
| 368 |
|
// time for any class won't be exposed |
| 369 |
|
static $static_properties = array(); |
| 370 |
|
|
| 371 |
|
if (!isset($static_properties[$class])) { |
| 372 |
|
$reflection = new ReflectionClass($class); |
| 373 |
|
$static_properties[$class] = $reflection->getStaticProperties(); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
if (isset($static_properties[$class][$name])) { |
| 377 |
|
$value = $static_properties[$class][$name]; |
|
@@ 382-385 (lines=4) @@
|
| 379 |
|
$parent = get_parent_class($class); |
| 380 |
|
if (!$parent) return $value; |
| 381 |
|
|
| 382 |
|
if (!isset($static_properties[$parent])) { |
| 383 |
|
$reflection = new ReflectionClass($parent); |
| 384 |
|
$static_properties[$parent] = $reflection->getStaticProperties(); |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
if (!isset($static_properties[$parent][$name]) || $static_properties[$parent][$name] !== $value) { |
| 388 |
|
return $value; |