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 ]', array(
172 ':error' => $this->_connection->error,
173 ':query' => $sql
174 ), $this->_connection->errno);
175 }
176
-
MODPATH/database/classes/Kohana/Database/MySQLi.php [ 337 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(40) "SHOW FULL COLUMNS FROM `news_categories`"
2
bool FALSE
332 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 333 } 334 else 335 { 336 // Find all column names 337 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 338 } 339 340 $count = 0; 341 $columns = array(); 342 foreach ($result as $row)
-
MODPATH/orm/classes/Kohana/ORM.php [ 1668 ] » Kohana_Database_MySQLi->list_columns(arguments)
0
string(17) "`news_categories`"
1663 * @return array 1664 */ 1665 public function list_columns() 1666 { 1667 // Proxy to database 1668 return $this->_db->list_columns($this->_table_name); 1669 } 1670 1671 /** 1672 * Returns an ORM model for the given one-one related alias 1673 *
-
MODPATH/orm/classes/Kohana/ORM.php [ 444 ] » Kohana_ORM->list_columns()
439 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 440 } 441 else 442 { 443 // Grab column information from database 444 $this->_table_columns = $this->list_columns(); 445 446 // Load column cache 447 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 448 } 449 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 389 ] » Kohana_ORM->reload_columns()
384 { 385 $this->{$property} = $value; 386 } 387 388 // Load column information 389 $this->reload_columns(); 390 391 // Clear initial model state 392 $this->clear(); 393 } 394
-
MODPATH/orm/classes/Kohana/ORM.php [ 254 ] » Kohana_ORM->_initialize()
249 * 250 * @param mixed $id Parameter for find or object to load 251 */ 252 public function __construct($id = NULL) 253 { 254 $this->_initialize(); 255 256 if ($id !== NULL) 257 { 258 if (is_array($id)) 259 {
-
APPPATH/classes/Controller/News/Main.php [ 127 ] » Kohana_ORM->__construct()
122 */ 123 $cal = new kCal($d, $m, $y, $archive_feed, $request_cat); 124 $this->template->calendar = $cal; 125 126 // Load categories 127 $categories = new Model_News_Category(); 128 $cache_categories = Cache::instance()->get('template-categories', false); 129 $this->template->cats = $data['cats'] = $categories->get_categories(true); 130 131 /* 132 if ( $cache_categories ) {
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_News_Main->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 [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_News_Main(5)
{ public template => object View(2)
{ protected _file => string(57) "/home/www/astr.ru/www/application/views/news/template.php" protected _data => array(1) ( "calendar" => object kCal(11)
protected data => array(0) public auto_render => bool TRUE public request => object Request(19){ protected feed => string(4) "news" protected category => string(3) "law" protected current_day => integer 19 protected current_month => integer 8 protected current_year => integer 2018 protected timestamp => integer 1534622400 protected days_of_week => NULL protected cells => array(0) protected events => array(0) protected options => array(0) protected config => object Config_Group(6)
) }{ public days_of_week => string(33) "Mon, Tue, Wed, Thu, Fri, Sat, Sun" public view => string(8) "calendar" public view_system => string(4) "View" public month_url_format => string(15) "{YEAR}/{MONTH}/" public header_format => string(3) "F Y" public show_today => bool TRUE }
}{ 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(54) "<feed>/<category>/<year>/<month>(/<day>)(/page/<page>)" protected _regex => array(6) ( "year" => string(3) "\d+" "month" => string(3) "\d+" "day" => string(3) "\d+" "page" => string(3) "\d+" "feed" => string(6) "[a-z]+" "category" => string(6) "[a-z]+" ) protected _defaults => array(4) ( "directory" => string(4) "news" "controller" => string(4) "main" "action" => string(7) "archive" "page" => string(1) "1" ) protected _route_regex => string(114) "#^(?P<feed>[a-z]+)/(?P<category>[a-z]+)/(?P<year>\d+)/(?P<month>\d+)(?:/(?P<day>\d+))?(?:/page/(?P<page>\d+))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "News" protected _controller => string(4) "Main" protected _action => string(7) "archive" protected _uri => string(19) "news/law/2018/08/19" protected _external => bool FALSE protected _params => array(6) ( "feed" => string(4) "news" "category" => string(3) "law" "year" => string(4) "2018" "month" => string(2) "08" "day" => string(2) "19" "page" => string(1) "1" ) 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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 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(54) "<feed>/<category>/<year>/<month>(/<day>)(/page/<page>)" protected _regex => array(6) ( "year" => string(3) "\d+" "month" => string(3) "\d+" "day" => string(3) "\d+" "page" => string(3) "\d+" "feed" => string(6) "[a-z]+" "category" => string(6) "[a-z]+" ) protected _defaults => array(4) ( "directory" => string(4) "news" "controller" => string(4) "main" "action" => string(7) "archive" "page" => string(1) "1" ) protected _route_regex => string(114) "#^(?P<feed>[a-z]+)/(?P<category>[a-z]+)/(?P<year>\d+)/(?P<month>\d+)(?:/(?P<day>\d+))?(?:/page/(?P<page>\d+))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "News" protected _controller => string(4) "Main" protected _action => string(7) "archive" protected _uri => string(19) "news/law/2018/08/19" protected _external => bool FALSE protected _params => array(6) ( "feed" => string(4) "news" "category" => string(3) "law" "year" => string(4) "2018" "month" => string(2) "08" "day" => string(2) "19" "page" => string(1) "1" ) 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(array('_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 [ 997 ] » 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(54) "<feed>/<category>/<year>/<month>(/<day>)(/page/<page>)" protected _regex => array(6) ( "year" => string(3) "\d+" "month" => string(3) "\d+" "day" => string(3) "\d+" "page" => string(3) "\d+" "feed" => string(6) "[a-z]+" "category" => string(6) "[a-z]+" ) protected _defaults => array(4) ( "directory" => string(4) "news" "controller" => string(4) "main" "action" => string(7) "archive" "page" => string(1) "1" ) protected _route_regex => string(114) "#^(?P<feed>[a-z]+)/(?P<category>[a-z]+)/(?P<year>\d+)/(?P<month>\d+)(?:/(?P<day>\d+))?(?:/page/(?P<page>\d+))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "News" protected _controller => string(4) "Main" protected _action => string(7) "archive" protected _uri => string(19) "news/law/2018/08/19" protected _external => bool FALSE protected _params => array(6) ( "feed" => string(4) "news" "category" => string(3) "law" "year" => string(4) "2018" "month" => string(2) "08" "day" => string(2) "19" "page" => string(1) "1" ) 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) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 120 ] » Kohana_Request->execute()
115 /** 116 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 117 * If no source is specified, the URI will be automatically detected. 118 */ 119 echo Request::factory(TRUE, array(), FALSE) 120 ->execute() 121 ->send_headers(TRUE) 122 ->body(); 123 }