/** * (non-PHPdoc) * @see application/libraries/go/IConnector#fetch_arr($resource) */ public function fetch_arr($resource) { if (null === $this->lastArrayResult) { $this->lastArrayResult = $resource->result_id; } if ($this->lastArrayResult) { return mysql_fetch_assoc($this->lastArrayResult); } else { return false; } } /** * (non-PHPdoc) * @see application/libraries/go/IConnector#last_insert_id() */ public function last_insert_id() { $ci =& get_instance(); return mysql_insert_id($ci->db->conn_id); } } /** * AUTO LOAD TABLES */ if (defined('GO_AUTOLOAD') && GO_AUTOLOAD) { Go::autoload(GO_AUTOLOAD); }
if (false === $resource) { Slim::getInstance()->getLog()->error('Query error [' . round($end - $start, 5) . '] >> ' . mysql_error()); } else { Slim::getInstance()->getLog()->debug('Query [' . round($end - $start, 5) . '] >> ' . $query); } return $resource; } /** * (non-PHPdoc) * @see db/go/IConnector#fetch_arr($resource) */ public function fetch_arr($resource) { if (false === $resource) { return false; } return mysql_fetch_assoc($resource); } /** * (non-PHPdoc) * @see db/go/IConnector#last_insert_id() */ public function last_insert_id() { return mysql_insert_id($this->connection); } } $autoload = Slim::getInstance()->config('go.autoload'); if ($autoload) { Go::autoload($autoload); }