Exemplo n.º 1
0
	public function this() {
		$reflection = Ev\Evaluer::reflection();
		$instance = Ev\Evaluer::instance();
		
		if(substr($this->_thing, -2) === '()')
			return $this->_this_method($reflection, $instance);
		else
			return $this->_this_property($reflection, $instance);
	}
Exemplo n.º 2
0
	protected function _cd_thing() {
		$current_reflection = Ev\Evaluer::reflection();
		
		if(is_array($this->_thing)) {
			if($this->_thing[0] === '$this') {
				if(!$current_reflection instanceof \ReflectionClass) die('CD::73'); // TODO : throw Exception
				
				$this->_thing[0] = $current_reflection->name;
			}
		}
		
		$r = new \AIP\lib\srvr\Reflectionizer($this->_thing);
		
		Ev\Evaluer::$path[] = $r->locationize();
		Ev\Evaluer::reflection($r->reflectionize());
		Ev\Evaluer::sandbox_vars(array(), false);
		
		if(is_object($this->_thing))
			Ev\Evaluer::instance($this->_thing);
		
		return true;
	}