public function __isset ($name) {
		$store = & $this->__protected['store'];
		// if property is in view store - return it
		if (array_key_exists($name, $store)) return TRUE;
		// if property is not in view store - try to get it from controller and set it into local view store
		if ($controllerType = $this->getReflectionClass('controller')) {
			if ($controllerType->hasProperty($name)) {
				/** @var $property \ReflectionProperty */
				$property = $controllerType->getProperty($name);
				if (!$property->isStatic()) {
					if (!$property->isPublic()) $property->setAccessible (TRUE); // protected or private
					$value = $property->getValue($this->controller);
					$store[$name] = & $value;
					return TRUE;
				}
			}
		}
		// property is not in local store and even in controller instance, return `FALSE`
		return FALSE;
	}
public function __isset ($name) {
		$store = & $this->__protected['store'];
		// if property is in view store - return it
		if (array_key_exists($name, $store)) return TRUE;
		// if property is not in view store - try to get it from controller and set it into local view store
		if ($controllerType = $this->getReflectionClass('controller')) {
			if ($controllerType->hasProperty($name)) {
				/** @var $property \ReflectionProperty */
				$property = $controllerType->getProperty($name);
				if (!$property->isStatic()) {
					if (!$property->isPublic()) $property->setAccessible (TRUE); // protected or private
					$value = $property->getValue($this->controller);
					$store[$name] = & $value;
					return TRUE;
				}
			}
		}
		// property is not in local store and even in controller instance, return `FALSE`
		return FALSE;
	}
public function __isset ( $ name ) { $ store = & $ this -> __protected [ 'store' ] ; // if property is in view store - return it if ( array_key_exists ( $ name , $ store ) ) return TRUE ; // if property is not in view store - try to get it from controller and set it into local view store if ( $ controllerType = $ this -> getReflectionClass ( 'controller' ) ) { if ( $ controllerType -> hasProperty ( $ name ) ) { /** @var $property \ReflectionProperty */ $ property = $ controllerType -> getProperty ( $ name ) ; if ( ! $ property -> isStatic ( ) ) { if ( ! $ property -> isPublic ( ) ) $ property -> setAccessible ( TRUE ) ; // protected or private $ value = $ property -> getValue ( $ this -> controller ) ; $ store [ $ name ] = & $ value ; return TRUE ; } } } // property is not in local store and even in controller instance, return `FALSE` return FALSE ; }
Get `TRUE` if any value by given name exists in
local view store or in local controller instance.
@param string $name
@return bool
Get TRUE if any value by given name exists in local view store or in local controller instance .