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 `p_pages`"
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) "`p_pages`"
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/bootstrap.php [ 231 ] » Kohana_ORM::factory(arguments)
0
string(10) "Model_Page"
226 return false; 227 } 228 229 $url = rtrim($url,"/"); 230 231 $page = ORM::factory("Page")->where("url", "=", strtolower( $url ))->find(); 232 if( $page->loaded() ) { 233 $params['controller'] = "Page"; 234 $params['action'] = "index"; 235 236 return $params;
-
SYSPATH/classes/Kohana/Route.php [ 465 ] » {closure}(arguments)
0
object Route(5)
{ protected _filters => array(1) ( 0 => object Closure(1)
{ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(5) "<url>" protected _regex => array(1) ( "url" => string(2) ".*" ) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(17) "#^(?P<url>.*)$#uD" }1
array(3) ( "url" => string(8) "page.php" "action" => string(5) "index" "host" => bool FALSE )
2
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 => string(54) "https://eng.peterhofmuseum.ru/page.php?id=26&album=235" 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(8) "page.php" protected _external => bool FALSE protected _params => array(0) protected _get => array(2) ( "id" => string(2) "26" "album" => string(3) "235" ) 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 [ 479 ] » Kohana_Route->matches(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 => string(54) "https://eng.peterhofmuseum.ru/page.php?id=26&album=235" 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(8) "page.php" protected _external => bool FALSE protected _params => array(0) protected _get => array(2) ( "id" => string(2) "26" "album" => string(3) "235" ) 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) }
}474 { 475 continue; 476 } 477 478 // We found something suitable 479 if ($params = $route->matches($request)) 480 { 481 return [ 482 'params' => $params, 483 'route' => $route, 484 ];
-
SYSPATH/classes/Kohana/Request.php [ 952 ] » Kohana_Request::process(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 => string(54) "https://eng.peterhofmuseum.ru/page.php?id=26&album=235" 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(8) "page.php" protected _external => bool FALSE protected _params => array(0) protected _get => array(2) ( "id" => string(2) "26" "album" => string(3) "235" ) 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(29) ( "image_resize" => object Route(5)
{ protected _filters => array(0) protected _uri => string(27) "images/<params>/<imagepath>" protected _regex => array(1) ( "imagepath" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(7) "resizer" "action" => string(5) "index" ) protected _route_regex => string(55) "#^images/(?P<params>[^/.,;?\n]++)/(?P<imagepath>.*)$#uD" }
"admin" => object Route(5){ protected _filters => array(0) protected _uri => string(38) "admin(/<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "admin" "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(101) "#^admin(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
"spec_events" => object Route(5){ protected _filters => array(0) protected _uri => string(20) "spec/events(/<type>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "spec" "action" => string(6) "events" ) protected _route_regex => string(45) "#^spec/events(?:/(?P<type>[^/.,;?\n]++))?$#uD" }
"spec_publications" => 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" }
"support" => object Route(5){ protected _filters => array(0) protected _uri => string(18) "support(/<action>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "support" "action" => string(5) "index" ) protected _route_regex => string(43) "#^support(?:/(?P<action>[^/.,;?\n]++))?$#uD" }
"multimedia_projects" => object Route(5){ protected _filters => array(0) protected _uri => string(19) "multimedia/projects" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(10) "multimedia" "action" => string(5) "index" ) protected _route_regex => string(25) "#^multimedia/projects$#uD" }
"page" => object Route(5){ protected _filters => array(1) ( 0 => object Closure(1)
"text" => object Route(5){ public 0 => object Closure(1) { *RECURSION* } }
) protected _uri => string(5) "<url>" protected _regex => array(1) ( "url" => string(2) ".*" ) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(17) "#^(?P<url>.*)$#uD" }{ protected _filters => array(0) protected _uri => string(11) "text/<text>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "text" "action" => string(5) "index" ) protected _route_regex => string(33) "#^text/(?P<text>[^/.,;?\n]++)$#uD" }
"multimedia" => object Route(5){ protected _filters => array(0) protected _uri => string(10) "multimedia" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "gallery" "action" => string(5) "index" ) protected _route_regex => string(16) "#^multimedia$#uD" }
"special" => object Route(5){ protected _filters => array(0) protected _uri => string(17) "special/<project>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "special" "action" => string(5) "index" ) protected _route_regex => string(39) "#^special/(?P<project>[^/.,;?\n]++)$#uD" }
"multimedia_rss" => object Route(5){ protected _filters => array(0) protected _uri => string(14) "multimedia/rss" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "gallery" "action" => string(3) "rss" ) protected _route_regex => string(20) "#^multimedia/rss$#uD" }
"multimedia_photo" => object Route(5){ protected _filters => array(0) protected _uri => string(32) "multimedia/photo(/<year>(/<id>))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "gallery" "action" => string(5) "photo" ) protected _route_regex => string(76) "#^multimedia/photo(?:/(?P<year>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
"multimedia_video_tag" => object Route(5){ protected _filters => array(0) protected _uri => string(28) "multimedia/video/tag(/<tag>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "video" "action" => string(5) "index" ) protected _route_regex => string(53) "#^multimedia/video/tag(?:/(?P<tag>[^/.,;?\n]++))?$#uD" }
"multimedia_video" => object Route(5){ protected _filters => array(0) protected _uri => string(32) "multimedia/video(/<year>(/<id>))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "video" "action" => string(5) "index" ) protected _route_regex => string(76) "#^multimedia/video(?:/(?P<year>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
"news_rss" => object Route(5){ protected _filters => array(0) protected _uri => string(8) "news/rss" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "news" "action" => string(3) "rss" ) protected _route_regex => string(14) "#^news/rss$#uD" }
"news" => object Route(5){ protected _filters => array(0) protected _uri => string(20) "news(/<year>(/<id>))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "news" "action" => string(5) "index" ) protected _route_regex => string(64) "#^news(?:/(?P<year>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
"press" => object Route(5){ protected _filters => array(0) protected _uri => string(21) "press(/<year>(/<id>))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "press" "action" => string(5) "index" ) protected _route_regex => string(65) "#^press(?:/(?P<year>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
"events_load" => object Route(5){ protected _filters => array(0) protected _uri => string(21) "events/load(/<count>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "events" "action" => string(4) "load" ) protected _route_regex => string(46) "#^events/load(?:/(?P<count>[^/.,;?\n]++))?$#uD" }
"events_filter" => object Route(5){ protected _filters => array(0) protected _uri => string(23) "events/filter(/<count>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "events" "action" => string(6) "filter" ) protected _route_regex => string(48) "#^events/filter(?:/(?P<count>[^/.,;?\n]++))?$#uD" }
"events_rss" => object Route(5){ protected _filters => array(0) protected _uri => string(10) "events/rss" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "events" "action" => string(3) "rss" ) protected _route_regex => string(16) "#^events/rss$#uD" }
"events" => object Route(5){ protected _filters => array(0) protected _uri => string(13) "events(/<id>)" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "events" "action" => string(5) "index" ) protected _route_regex => string(38) "#^events(?:/(?P<id>[^/.,;?\n]++))?$#uD" }
"plan_a_visit" => object Route(5){ protected _filters => array(0) protected _uri => string(30) "plan-a-visit(/<action>(/<id>))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "plan" "action" => string(5) "index" ) protected _route_regex => string(74) "#^plan-a-visit(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?$#uD" }
"pav_schedule" => object Route(5){ protected _filters => array(0) protected _uri => string(32) "plan-a-visit/pav_schedule/<date>" protected _regex => array(1) ( "date" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(4) "plan" "action" => string(12) "pav_schedule" ) protected _route_regex => string(44) "#^plan-a-visit/pav_schedule/(?P<date>.+)$#uD" }
"subobjects_day_schedule" => object Route(5){ protected _filters => array(0) protected _uri => string(36) "objects/get_day_schedule/<id>/<date>" protected _regex => array(1) ( "date" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(6) "object" "action" => string(16) "get_day_schedule" ) protected _route_regex => string(64) "#^objects/get_day_schedule/(?P<id>[^/.,;?\n]++)/(?P<date>.+)$#uD" }
"plan_schedule" => object Route(5){ protected _filters => array(0) protected _uri => string(24) "plan/get_schedule/<date>" protected _regex => array(1) ( "date" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(4) "plan" "action" => string(12) "get_schedule" ) protected _route_regex => string(36) "#^plan/get_schedule/(?P<date>.+)$#uD" }
"objects" => object Route(5){ protected _filters => array(0) protected _uri => string(32) "objects(/<object>(/<subobject>))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "object" "action" => string(5) "index" ) protected _route_regex => string(76) "#^objects(?:/(?P<object>[^/.,;?\n]++)(?:/(?P<subobject>[^/.,;?\n]++))?)?$#uD" }
"subobjects" => object Route(5){ protected _filters => array(0) protected _uri => string(33) "objects/<object>/<subobject>/info" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(6) "object" "action" => string(14) "subobject_info" ) protected _route_regex => string(71) "#^objects/(?P<object>[^/.,;?\n]++)/(?P<subobject>[^/.,;?\n]++)/info$#uD" }
"services" => object Route(5){ protected _filters => array(0) protected _uri => string(20) "plan-a-visit/service" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "service" "action" => string(4) "list" ) protected _route_regex => string(26) "#^plan-a-visit/service$#uD" }
"default" => object Route(5){ protected _filters => array(0) protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(5) "index" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
)947 */ 948 public function execute() 949 { 950 if ( ! $this->_external) 951 { 952 $processed = Request::process($this, $this->_routes); 953 954 if ($processed) 955 { 956 // Store the matching route 957 $this->_route = $processed['route'];
-
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 }