Ejemplo n.º 1
0
	public function __construct(Atomik_Db_Instance $instance)
	{
		$this->_instance = $instance;
		$this->_generator = $instance->getAdapter()->getDefinitionGenerator();
	}
Ejemplo n.º 2
0
	/**
	 * Sets the associated instance
	 * 
	 * @param	Atomik_Db_Instance $instance
	 * @return	Atomik_Db_Query
	 */
	public function setInstance(Atomik_Db_Instance $instance)
	{
		$this->_instance = $instance;
		$this->_pdo = $instance->getPdo();
		$this->_generator = $instance->getAdapter()->getQueryGenerator();
		$this->_cacheable = $instance->isResultCacheEnabled();
		return $this;
	}