|
|
@ -18,11 +18,18 @@ class ViewRendererStaticClassProxy |
|
|
|
private $_staticClassName; |
|
|
|
private $_staticClassName; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param string $staticClassName |
|
|
|
|
|
|
|
*/ |
|
|
|
public function __construct($staticClassName) |
|
|
|
public function __construct($staticClassName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->_staticClassName = $staticClassName; |
|
|
|
$this->_staticClassName = $staticClassName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param string $property |
|
|
|
|
|
|
|
* @return mixed |
|
|
|
|
|
|
|
*/ |
|
|
|
public function __get($property) |
|
|
|
public function __get($property) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$class = new \ReflectionClass($this->_staticClassName); |
|
|
|
$class = new \ReflectionClass($this->_staticClassName); |
|
|
@ -30,6 +37,11 @@ class ViewRendererStaticClassProxy |
|
|
|
return $class->getStaticPropertyValue($property); |
|
|
|
return $class->getStaticPropertyValue($property); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param string $property |
|
|
|
|
|
|
|
* @param mixed $value |
|
|
|
|
|
|
|
* @return mixed |
|
|
|
|
|
|
|
*/ |
|
|
|
public function __set($property, $value) |
|
|
|
public function __set($property, $value) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$class = new \ReflectionClass($this->_staticClassName); |
|
|
|
$class = new \ReflectionClass($this->_staticClassName); |
|
|
@ -38,6 +50,11 @@ class ViewRendererStaticClassProxy |
|
|
|
return $value; |
|
|
|
return $value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* @param string $method |
|
|
|
|
|
|
|
* @param array $arguments |
|
|
|
|
|
|
|
* @return mixed |
|
|
|
|
|
|
|
*/ |
|
|
|
public function __call($method, $arguments) |
|
|
|
public function __call($method, $arguments) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return call_user_func_array([$this->_staticClassName, $method], $arguments); |
|
|
|
return call_user_func_array([$this->_staticClassName, $method], $arguments); |
|
|
|