MODPATH/database/classes/Kohana/Database/MySQLi.php [ 171 ]
166 {
167 // This benchmark is worthless
168 Profiler::delete($benchmark);
169 }
170
171 throw new Database_Exception(':error [ :query ]', [
172 ':error' => $this->_connection->error,
173 ':query' => $sql
174 ], $this->_connection->errno);
175 }
176
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(268) "SELECT `menu`.`id` AS `id`, `menu`.`ativo` AS `ativo`, `menu`.`ordem` AS `ordem`, `menu`.`titulo` AS `titulo`, `menu`.`titulo_en …"
2
string(10) "Model_Menu"
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/orm/classes/Kohana/ORM.php [ 1212 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "284a7c11870e84658079b4e5772b97d1ebf2a16d" protected _identifier => string(1) "`" public last_query => string(30) "SHOW FULL COLUMNS FROM `menus`" protected _instance => string(7) "default" protected _connection => object mysqli(19)
{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(6) ( "type" => string(6) "MySQLi" "connection" => array(4) ( "hostname" => string(9) "localhost" "database" => string(9) "db_poscom" "persistent" => bool FALSE "ssl" => NULL ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool FALSE ) }1207 } 1208 1209 if ($multiple === TRUE) 1210 { 1211 // Return database iterator casting to this object type 1212 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 1213 1214 $this->reset(); 1215 1216 return $result; 1217 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 1153 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
1148 } 1149 } 1150 1151 $this->_build(Database::SELECT); 1152 1153 return $this->_load_result(TRUE); 1154 } 1155 1156 /** 1157 * Returns an array of columns to include in the select query. This method 1158 * can be overridden to change the default select behavior.
-
APPPATH/classes/HTTP/Exception.php [ 46 ] » Kohana_ORM->find_all()
41 $view->meta_imagem = ''; 42 View::bind_global('titulo', $this->titulo); 43 View::bind_global('menu_id', $this->menu_id); 44 View::bind_global('submenu_id', $this->submenu_id); 45 View::set_global('token', Security::token()); 46 View::set_global('menus', ORM::factory('Menu')->where('ativo','=',1)->where('titulo' . $this->lang_sufix,'!=','')->find_all()); 47 View::set_global('lang_sufix', $this->lang_sufix); 48 49 $view->titulo = 'PPGCOM PUC-Rio'; 50 $view->conteudo = View::factory('template/erro') 51 ->set('mensagem', $this->getMessage());
-
MODPATH/multilang/classes/Multilang/Request.php [ 168 ] » HTTP_Exception->get_response()
163 if ( ! $this->_route instanceof Route) 164 { 165 return HTTP_Exception::factory(404, 'Unable to find a route to match the URI: :uri', array( 166 ':uri' => $this->_uri, 167 ))->request($this) 168 ->get_response(); 169 } 170 171 if ( ! $this->_client instanceof Request_Client) 172 { 173 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array(
-
DOCROOT/index.php [ 118 ] » Multilang_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }