MODPATH/database/classes/Kohana/Database/MySQL.php [ 67 ]
62 catch (Exception $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(':error',
68 array(':error' => $e->getMessage()),
69 $e->getCode());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
-
MODPATH/database/classes/Kohana/Database/MySQL.php [ 171 ] » Kohana_Database_MySQL->connect()
166 } 167 168 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 169 { 170 // Make sure the database is connected 171 $this->_connection or $this->connect(); 172 173 if (Kohana::$profiling) 174 { 175 // Benchmark this query for the current instance 176 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/Kohana/Database/MySQL.php [ 359 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(38) "SHOW FULL COLUMNS FROM `post_category`"
2
bool FALSE
354 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table.' LIKE '.$this->quote($like), FALSE); 355 } 356 else 357 { 358 // Find all column names 359 $result = $this->query(Database::SELECT, 'SHOW FULL COLUMNS FROM '.$table, FALSE); 360 } 361 362 $count = 0; 363 $columns = array(); 364 foreach ($result as $row)
-
MODPATH/orm/classes/Kohana/ORM.php [ 1668 ] » Kohana_Database_MySQL->list_columns(arguments)
0
string(13) "post_category"
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 {
-
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
-
MODPATH/blog/blog-router-filters.php [ 16 ] » Kohana_ORM::factory(arguments)
0
string(13) "Post_Category"
11 12 $category_path = Arr::get($params, 'category_path'); 13 $aliases = preg_split('/\//', $category_path); 14 15 /** @var Model_Post_Category $category */ 16 $category = ORM::factory('Post_Category'); 17 foreach ($aliases as $alias) { 18 $category = ORM::factory('Post_Category', ['alias' => $alias, 'parent_id' => $category->id]); 19 if (!$category->loaded()) break; 20 } 21
-
{PHP internal call} » filter_category(arguments)
route
object Route(5)
{ protected _filters => array(2) ( 0 => string(24) "filter_custom_controller" 1 => string(15) "filter_category" ) protected _uri => string(24) "(<lang>/)<category_path>" protected _regex => array(2) ( "lang" => string(8) "ru|en|kk" "category_path" => string(45) "([a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?\/?)+" ) protected _defaults => array(3) ( "lang" => string(2) "ru" "controller" => string(4) "Feed" "action" => string(5) "index" ) protected _route_regex => string(94) "#^(?:(?P<lang>ru|en|kk)/)?(?P<category_path>([a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?\/?)+)$#uD" }
params
array(4) ( "lang" => string(2) "kk" "category_path" => string(91) "catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" "controller" => string(4) "Feed" "action" => string(5) "index" )
request
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => string(112) "http://oralrem.kz/kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(94) "kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _external => bool FALSE protected _params => array(0) 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) }
} -
SYSPATH/classes/Kohana/Route.php [ 465 ] » call_user_func(arguments)
function_name
string(15) "filter_category"
parmeter
object Route(5)
{ protected _filters => array(2) ( 0 => string(24) "filter_custom_controller" 1 => string(15) "filter_category" ) protected _uri => string(24) "(<lang>/)<category_path>" protected _regex => array(2) ( "lang" => string(8) "ru|en|kk" "category_path" => string(45) "([a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?\/?)+" ) protected _defaults => array(3) ( "lang" => string(2) "ru" "controller" => string(4) "Feed" "action" => string(5) "index" ) protected _route_regex => string(94) "#^(?:(?P<lang>ru|en|kk)/)?(?P<category_path>([a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?\/?)+)$#uD" }
...
array(4) ( "lang" => string(2) "kk" "category_path" => string(91) "catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" "controller" => string(4) "Feed" "action" => string(5) "index" )
3
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => string(112) "http://oralrem.kz/kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(94) "kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _external => bool FALSE protected _params => array(0) 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) }
}460 if ($this->_filters) 461 { 462 foreach ($this->_filters as $callback) 463 { 464 // Execute the filter giving it the route, params, and request 465 $return = call_user_func($callback, $this, $params, $request); 466 467 if ($return === FALSE) 468 { 469 // Filter has aborted the match 470 return FALSE;
-
SYSPATH/classes/Kohana/Request.php [ 472 ] » Kohana_Route->matches(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => string(112) "http://oralrem.kz/kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(94) "kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _external => bool FALSE protected _params => array(0) 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) }
}467 { 468 continue; 469 } 470 471 // We found something suitable 472 if ($params = $route->matches($request)) 473 { 474 return array( 475 'params' => $params, 476 'route' => $route, 477 );
-
SYSPATH/classes/Kohana/Request.php [ 949 ] » Kohana_Request::process(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/2.0" protected _secure => bool TRUE protected _referrer => string(112) "http://oralrem.kz/kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(94) "kk/catalog/machinery/yomkostno-nalivnaya-texnika/avtocisterny-transportnye-ac-dlya-topliva/226" protected _external => bool FALSE protected _params => array(0) 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
array(0)
944 */ 945 public function execute() 946 { 947 if ( ! $this->_external) 948 { 949 $processed = Request::process($this, $this->_routes); 950 951 if ($processed) 952 { 953 // Store the matching route 954 $this->_route = $processed['route'];
-
DOCROOT/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, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }