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(36) "SHOW FULL COLUMNS FROM `p_variables`"
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(13) "`p_variables`"
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/Base.php [ 23 ] » Kohana_ORM::factory(arguments)
0
string(14) "Model_Variable"
18 i18n::lang("ru"); 19 setlocale(LC_ALL, 'ru_RU.UTF-8'); 20 } 21 22 $this->page["variables"] = array(); 23 $vars = ORM::factory("Variable")->find_all(); 24 foreach($vars as $var) { 25 $var = $var->as_array(); 26 $this->page["variables"][$var["name"]] = $var["value"]; 27 } 28
-
APPPATH/classes/Controller/Base.php [ 86 ] » Controller_Base->before_prepare_data()
81 $this->template->og_picture = $picture; 82 } 83 84 public function before() { 85 if($this->auto_render) { 86 $this->before_prepare_data(); 87 } 88 89 parent::before(); 90 } 91
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Base->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_Spec(6)
{ public auto_render => bool TRUE public template => NULL public template_base => string(0) "" public page => array(1) ( "variables" => array(0) ) public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(8) "spec/pub" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "spec" "action" => string(3) "pub" ) protected _route_regex => string(14) "#^spec/pub$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Spec" protected _action => string(3) "pub" protected _uri => string(8) "spec/pub" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "q" => string(9) "__id__101" ) 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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }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 TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(8) "spec/pub" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "spec" "action" => string(3) "pub" ) protected _route_regex => string(14) "#^spec/pub$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Spec" protected _action => string(3) "pub" protected _uri => string(8) "spec/pub" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "q" => string(9) "__id__101" ) 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))
-
SYSPATH/classes/Kohana/Request.php [ 1000 ] » 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 TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(8) "spec/pub" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "spec" "action" => string(3) "pub" ) protected _route_regex => string(14) "#^spec/pub$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Spec" protected _action => string(3) "pub" protected _uri => string(8) "spec/pub" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "q" => string(9) "__id__101" ) 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) }
}995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
DOCROOT/public_html/index.php [ 118 ] » Kohana_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, [], FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }