Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/domain/proxy/property.php
<?php

class AnDomainProxyProperty extends KPatternDecorator
{
	protected $_mapper;
	
	protected $_property;
	
	public function __construct($options)
	{
		//$this->_mapper   = $options['mapper'];
		$this->_property = $options['property'];
	}
	
	public function getObject()
	{
		if ( !isset($this->_object) ) {	
			$name = $this->_property->getName();
			$this->_property->getMapper()->getQuery()->select($name);
			die;
		}
		
		return $this->_object;
	}
	
	public function __toString()
	{
		return (string) $this->getObject();	
	}

}
Return current item: Anahita Social Engine