/** * @see Lumine_Connection_IConnection::close() */ public function close() { $this->dispatchEvent(new Lumine_Events_ConnectionEvent(Lumine_Event::PRE_CLOSE, $this)); if ($this->conn_id && $this->state != self::CLOSED) { Lumine_Log::debug('Liberando resultados todos os resultados'); Lumine_Dialect_Factory::getByName('MySQL')->freeAllResults(); $this->state = self::CLOSED; Lumine_Log::debug('Fechando conexao com ' . $this->getDatabase()); mysql_close($this->conn_id); } $this->dispatchEvent(new Lumine_Events_ConnectionEvent(Lumine_Event::POS_CLOSE, $this)); }
/** * Recupera a "ponte" (dialeto) para este objeto * * @author Hugo Ferreira da Silva * @link http://www.hufersil.com.br/ * @return Lumine_Dialect_IDialect */ protected function _getDialect() { $obj = Lumine_Dialect_Factory::get($this); return $obj; }