MODPATH/database/classes/Kohana/Database/MySQLi.php [ 75 ]
70 catch (Exception $e)
71 {
72 // No connection exists
73 $this->_connection = NULL;
74
75 throw new Database_Exception(':error', [':error' => $e->getMessage()], $e->getCode());
76 }
77
78 // \xFF is a better delimiter, but the PHP driver uses underscore
79 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password);
80
-
MODPATH/database/classes/Kohana/Database/MySQLi.php [ 154 ] » Kohana_Database_MySQLi->connect()
149 } 150 151 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 152 { 153 // Make sure the database is connected 154 $this->_connection or $this->connect(); 155 156 if (Kohana::$profiling) 157 { 158 // Benchmark this query for the current instance 159 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/Kohana/Database/MySQLi.php [ 336 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(32) "SHOW FULL COLUMNS FROM `idiomas`"
2
bool FALSE
331 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 332 } 333 else 334 { 335 // Find all column names 336 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 337 } 338 339 $count = 0; 340 $columns = []; 341 foreach ($result as $row)
-
MODPATH/orm/classes/Kohana/ORM.php [ 1847 ] » Kohana_Database_MySQLi->list_columns(arguments)
0
string(9) "`idiomas`"
1842 * @return array 1843 */ 1844 public function list_columns() 1845 { 1846 // Proxy to database 1847 return $this->_db->list_columns($this->_table_name); 1848 } 1849 1850 /** 1851 * Returns an ORM model for the given one-one related alias 1852 *
-
MODPATH/orm/classes/Kohana/ORM.php [ 469 ] » Kohana_ORM->list_columns()
464 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 465 } 466 else 467 { 468 // Grab column information from database 469 $this->_table_columns = $this->list_columns(); 470 471 // Load column cache 472 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 473 } 474 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 408 ] » Kohana_ORM->reload_columns()
403 { 404 $this->{$property} = $value; 405 } 406 407 // Load column information 408 $this->reload_columns(); 409 410 // Clear initial model state 411 $this->clear(); 412 413 // Create the behaviors classes
-
MODPATH/orm/classes/Kohana/ORM.php [ 266 ] » Kohana_ORM->_initialize()
261 * 262 * @param mixed $id Parameter for find or object to load 263 */ 264 public function __construct($id = NULL) 265 { 266 $this->_initialize(); 267 268 // Invoke all behaviors 269 foreach ($this->_behaviors as $behavior) 270 { 271 if (( ! $behavior->on_construct($this, $id)) OR $this->_loaded)
-
MODPATH/orm/classes/Kohana/ORM.php [ 46 ] » Kohana_ORM->__construct(arguments)
0
NULL
41 public static function factory($model, $id = NULL) 42 { 43 // Set class name 44 $model = 'Model_'.$model; 45 46 return new $model($id); 47 } 48 49 /** 50 * "Has one" relationships 51 * @var array
-
APPPATH/classes/Controller/Website.php [ 19 ] » Kohana_ORM::factory(arguments)
0
string(12) "Model_Idioma"
14 15 $this->items_per_page = 25; 16 $this->template->css = array(); 17 $this->template->js = array(); 18 19 $this->idioma_id = ORM::factory('Idioma')->where('codigo','=',Request::$lang)->find()->id; 20 $this->lang_sufix = Request::$lang; 21 $this->lang_sufix = $this->lang_sufix == 'br' 22 ? '' 23 : '_' . $this->lang_sufix; 24 View::bind_global('titulo', $this->titulo);
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Website->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Texto(6)
{ public template => object View(2)
{ protected _file => string(66) "/dados/www/sites/jornalismo/privado/application/views/template.php" protected _data => array(2) ( "css" => array(0) "js" => array(0) ) }
public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(6)
public response => object Response(5){ public lang => NULL protected _filters => array(0) protected _uri => string(35) "(<lang>)(/)<controller>/<id>/<slug>" protected _regex => array(3) ( "lang" => string(10) "(br|en|es)" "slug" => string(11) "[a-z0-9\-]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "action" => string(5) "index" "lang" => string(2) "br" ) protected _route_regex => string(102) "#^(?:(?P<lang>(br|en|es)))?(?:/)?(?P<controller>[^/.,;?\n]++)/(?P<id>[0-9]+)/(?P<slug>[a-z0-9\-]+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Texto" protected _action => string(5) "index" protected _uri => string(76) "br/texto/134/programa-aberto-a-estudantes-para-desenvolver-solucoes-digitais" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(2) "br" "id" => string(3) "134" "slug" => string(63) "programa-aberto-a-estudantes-para-desenvolver-solucoes-digitais" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public session => object Session_Native(5){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
public items_per_page => integer 25 }89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(6)
{ public lang => NULL protected _filters => array(0) protected _uri => string(35) "(<lang>)(/)<controller>/<id>/<slug>" protected _regex => array(3) ( "lang" => string(10) "(br|en|es)" "slug" => string(11) "[a-z0-9\-]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "action" => string(5) "index" "lang" => string(2) "br" ) protected _route_regex => string(102) "#^(?:(?P<lang>(br|en|es)))?(?:/)?(?P<controller>[^/.,;?\n]++)/(?P<id>[0-9]+)/(?P<slug>[a-z0-9\-]+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Texto" protected _action => string(5) "index" protected _uri => string(76) "br/texto/134/programa-aberto-a-estudantes-para-desenvolver-solucoes-digitais" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(2) "br" "id" => string(3) "134" "slug" => string(63) "programa-aberto-a-estudantes-para-desenvolver-solucoes-digitais" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
MODPATH/multilang/classes/Multilang/Request.php [ 195 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(6)
{ public lang => NULL protected _filters => array(0) protected _uri => string(35) "(<lang>)(/)<controller>/<id>/<slug>" protected _regex => array(3) ( "lang" => string(10) "(br|en|es)" "slug" => string(11) "[a-z0-9\-]+" "id" => string(6) "[0-9]+" ) protected _defaults => array(2) ( "action" => string(5) "index" "lang" => string(2) "br" ) protected _route_regex => string(102) "#^(?:(?P<lang>(br|en|es)))?(?:/)?(?P<controller>[^/.,;?\n]++)/(?P<id>[0-9]+)/(?P<slug>[a-z0-9\-]+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "Texto" protected _action => string(5) "index" protected _uri => string(76) "br/texto/134/programa-aberto-a-estudantes-para-desenvolver-solucoes-digitais" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(2) "br" "id" => string(3) "134" "slug" => string(63) "programa-aberto-a-estudantes-para-desenvolver-solucoes-digitais" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}190 { 191 Request::$lang = $this->param('lang'); 192 } 193 Multilang::init(); 194 195 return $this->_client->execute($this); 196 } 197 198 199 }
-
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 }