public function __construct(Atomik_Db_Instance $instance) { $this->_instance = $instance; $this->_generator = $instance->getAdapter()->getDefinitionGenerator(); }
/** * 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; }