MODPATH/database/classes/Database/MySQLi.php [ 174 ]
169 {
170 // This benchmark is worthless
171 Profiler::delete($benchmark);
172 }
173
174 throw new Database_Exception(':error [ :query ]',
175 array(':error' => mysqli_error($this->_connection), ':query' => $sql),
176 mysqli_errno($this->_connection));
177 }
178
179 if (isset($benchmark))
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Database_MySQLi->query(arguments)
0
integer 1
1
string(328) "SELECT `partners`.`id` AS `id`, `partners`.`title_en` AS `title_en`, `partners`.`title_lv` AS `title_lv`, `partners`.`title_ee` …"
2
string(14) "Model_Partners"
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
MODPATH/orm/classes/Kohana/ORM.php [ 1063 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "6f976be5f1eba0909f710d58c2e4381f23c7df54" protected _identifier => string(1) "`" public last_query => string(33) "SHOW FULL COLUMNS FROM `partners`" protected _instance => string(7) "default" protected _connection => object mysqli(19)
{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(23) "d116083.mysql.zonevs.eu" "database" => string(15) "d116083sd488069" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }1058 } 1059 1060 if ($multiple === TRUE) 1061 { 1062 // Return database iterator casting to this object type 1063 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 1064 1065 $this->reset(); 1066 1067 return $result; 1068 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 1004 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
999 } 1000 } 1001 1002 $this->_build(Database::SELECT); 1003 1004 return $this->_load_result(TRUE); 1005 } 1006 1007 /** 1008 * Returns an array of columns to include in the select query. This method 1009 * can be overridden to change the default select behavior.
-
APPPATH/classes/Model/Partners.php [ 28 ] » Kohana_ORM->find_all()
23 * List public items 24 */ 25 public static function public_items(){ 26 return ORM::factory('Partners') 27 -> where('status', '=', ORM::STATUS_ACTIVE) 28 -> find_all(); 29 } 30 31 32 /* 33 * List project Partners
-
APPPATH/classes/Controller/About.php [ 13 ] » Model_Partners::public_items()
8 * Default section 9 */ 10 public function action_section() 11 { 12 $view = View::factory('about/section') 13 -> set('partners', Model_Partners::public_items()); 14 15 $this->template->content = $view; 16 $this->template->title = $this->section->title; 17 $this->template->description = $this->section->metadescription; 18 $this->template->keywords = $this->section->metakeywords;
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_About->action_section()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_About(5)
{ public template => object View(2)
{ protected _file => string(86) "/data01/virt115713/domeenid/www.estlat.eu/htdocs/application/views/global/template.php" protected _data => array(0) }
public auto_render => bool TRUE protected section => object Model_Section(35){ protected _created_column => array(2) ( "column" => string(12) "date_created" "format" => string(11) "Y-m-d H:i:s" ) protected _updated_column => array(2) ( "column" => string(12) "date_updated" "format" => string(11) "Y-m-d H:i:s" ) protected _sorting => array(1) ( "list_order" => string(3) "ASC" ) protected _has_one => array(3) ( "textdoc" => array(2) ( "model" => string(7) "Textdoc" "foreign_key" => string(10) "section_id" ) "contacts" => array(2) ( "model" => string(8) "Contacts" "foreign_key" => string(10) "section_id" ) "about" => array(2) ( "model" => string(5) "About" "foreign_key" => string(10) "section_id" ) ) protected _has_many => array(2) ( "subsections" => array(4) ( "model" => string(7) "Section" "foreign_key" => string(9) "parent_id" "through" => NULL "far_key" => string(13) "subsection_id" ) "dots" => array(4) ( "model" => string(4) "Dots" "foreign_key" => string(10) "section_id" "through" => NULL "far_key" => string(6) "dot_id" ) ) protected _cmsEditAction => string(4) "view" protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(24) ( "id" => string(1) "1" "parent_id" => string(1) "0" "module_id" => string(7) "textdoc" "lang" => string(2) "lv" "controller" => string(5) "about" "action" => string(7) "section" "template" => string(8) "sections" "list_order" => string(1) "0" "user_id" => string(1) "0" "date_created" => string(19) "2016-02-10 10:23:01" "date_updated" => string(19) "2016-02-17 15:33:16" "title" => string(3) "DDA" "link" => string(3) "dda" "redirect" => string(0) "" "target" => string(0) "" "metadescription" => string(0) "" "metakeywords" => string(0) "" "intro" => string(0) "" "config" => string(0) "" "status" => string(1) "3" "image" => string(0) "" "image_menu" => string(0) "" "image_right" => string(0) "" "show_in_footer" => string(1) "0" ) protected _changed => array(0) protected _original_values => array(24) ( "id" => string(1) "1" "parent_id" => string(1) "0" "module_id" => string(7) "textdoc" "lang" => string(2) "lv" "controller" => string(5) "about" "action" => string(7) "section" "template" => string(8) "sections" "list_order" => string(1) "0" "user_id" => string(1) "0" "date_created" => string(19) "2016-02-10 10:23:01" "date_updated" => string(19) "2016-02-17 15:33:16" "title" => string(3) "DDA" "link" => string(3) "dda" "redirect" => string(0) "" "target" => string(0) "" "metadescription" => string(0) "" "metakeywords" => string(0) "" "intro" => string(0) "" "config" => string(0) "" "status" => string(1) "3" "image" => string(0) "" "image_menu" => string(0) "" "image_right" => string(0) "" "show_in_footer" => string(1) "0" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(7) "section" protected _object_plural => string(8) "sections" protected _table_name => string(8) "sections" protected _table_columns => array(24) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "parent_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "parent_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "module_id" => array(12) ( "type" => string(6) "string" "column_name" => string(9) "module_id" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(2) "16" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "lang" => array(13) ( "type" => string(6) "string" "exact" => bool TRUE "column_name" => string(4) "lang" "column_default" => NULL "data_type" => string(4) "char" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(1) "2" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "controller" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "controller" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(2) "20" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "action" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "action" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "20" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "template" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "template" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "list_order" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(10) "list_order" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "user_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "user_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(1) "4" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_created" => array(10) ( "type" => string(6) "string" "column_name" => string(12) "date_created" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_updated" => array(10) ( "type" => string(6) "string" "column_name" => string(12) "date_updated" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "title" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "link" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 13 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "redirect" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "redirect" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 14 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "target" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "target" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 15 "character_maximum_length" => string(1) "8" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "metadescription" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(15) "metadescription" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 16 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "metakeywords" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(12) "metakeywords" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 17 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "intro" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(5) "intro" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 18 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "config" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(6) "config" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 19 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "status" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(6) "status" "column_default" => string(1) "2" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 20 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "image" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "image" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 21 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "image_menu" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "image_menu" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 22 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "image_right" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "image_right" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 23 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "show_in_footer" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(14) "show_in_footer" "column_default" => string(1) "0" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 24 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(1) "1" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)
public request => object Request(19){ protected _connection_id => string(40) "6f976be5f1eba0909f710d58c2e4381f23c7df54" protected _identifier => string(1) "`" public last_query => string(33) "SHOW FULL COLUMNS FROM `partners`" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(7) "section" }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(23) "d116083.mysql.zonevs.eu" "database" => string(15) "d116083sd488069" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ 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(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(54) "_decoded/<lang>/<controller>/<action>/<section>(/<id>)" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(143) "#^_decoded/(?P<lang>[^/.,;?\n]++)/(?P<controller>[^/.,;?\n]++)/(?P<action>[^/.,;?\n]++)/(?P<section>[^/.,;?\n]++)(?:/(?P<id>[^/. …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "About" protected _action => string(7) "section" protected _uri => string(27) "_decoded/lv/about/section/1" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(2) "lv" "section" => string(1) "1" "host" => bool FALSE ) 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(54) "_decoded/<lang>/<controller>/<action>/<section>(/<id>)" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(143) "#^_decoded/(?P<lang>[^/.,;?\n]++)/(?P<controller>[^/.,;?\n]++)/(?P<action>[^/.,;?\n]++)/(?P<section>[^/.,;?\n]++)(?:/(?P<id>[^/. …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "About" protected _action => string(7) "section" protected _uri => string(27) "_decoded/lv/about/section/1" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(2) "lv" "section" => string(1) "1" "host" => bool FALSE ) 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 [ 986 ] » 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(5)
{ protected _filters => array(0) protected _uri => string(54) "_decoded/<lang>/<controller>/<action>/<section>(/<id>)" protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => string(143) "#^_decoded/(?P<lang>[^/.,;?\n]++)/(?P<controller>[^/.,;?\n]++)/(?P<action>[^/.,;?\n]++)/(?P<section>[^/.,;?\n]++)(?:/(?P<id>[^/. …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(5) "About" protected _action => string(7) "section" protected _uri => string(27) "_decoded/lv/about/section/1" protected _external => bool FALSE protected _params => array(3) ( "lang" => string(2) "lv" "section" => string(1) "1" "host" => bool FALSE ) 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) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
APPPATH/classes/Controller/Decode.php [ 34 ] » Kohana_Request->execute()
29 $inner = Request::factory(Route::get('decoded')->uri(array( 30 'lang' => $this->request->param('lang'), 31 'controller' => $controller, 32 'action' => $action, 33 'section' => $section->id 34 )))->execute(); 35 $this->response->headers($inner->headers()->getArrayCopy()); 36 $this->response->body($inner->body()); 37 } 38 39 /**
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Decode->action_section()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Decode(3)
{ protected section => object Model_Section(35)
{ protected _created_column => array(2) ( "column" => string(12) "date_created" "format" => string(11) "Y-m-d H:i:s" ) protected _updated_column => array(2) ( "column" => string(12) "date_updated" "format" => string(11) "Y-m-d H:i:s" ) protected _sorting => array(1) ( "list_order" => string(3) "ASC" ) protected _has_one => array(3) ( "textdoc" => array(2) ( "model" => string(7) "Textdoc" "foreign_key" => string(10) "section_id" ) "contacts" => array(2) ( "model" => string(8) "Contacts" "foreign_key" => string(10) "section_id" ) "about" => array(2) ( "model" => string(5) "About" "foreign_key" => string(10) "section_id" ) ) protected _has_many => array(2) ( "subsections" => array(4) ( "model" => string(7) "Section" "foreign_key" => string(9) "parent_id" "through" => NULL "far_key" => string(13) "subsection_id" ) "dots" => array(4) ( "model" => string(4) "Dots" "foreign_key" => string(10) "section_id" "through" => NULL "far_key" => string(6) "dot_id" ) ) protected _cmsEditAction => string(4) "view" protected _belongs_to => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(24) ( "id" => NULL "parent_id" => NULL "module_id" => NULL "lang" => NULL "controller" => NULL "action" => NULL "template" => NULL "list_order" => NULL "user_id" => NULL "date_created" => NULL "date_updated" => NULL "title" => NULL "link" => NULL "redirect" => NULL "target" => NULL "metadescription" => NULL "metakeywords" => NULL "intro" => NULL "config" => NULL "status" => NULL "image" => NULL "image_menu" => NULL "image_right" => NULL "show_in_footer" => NULL ) protected _changed => array(0) protected _original_values => array(0) protected _related => array(0) protected _valid => bool FALSE protected _loaded => bool FALSE protected _saved => bool FALSE protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(7) "section" protected _object_plural => string(8) "sections" protected _table_name => string(8) "sections" protected _table_columns => array(24) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "parent_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(9) "parent_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "module_id" => array(12) ( "type" => string(6) "string" "column_name" => string(9) "module_id" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(2) "16" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "lang" => array(13) ( "type" => string(6) "string" "exact" => bool TRUE "column_name" => string(4) "lang" "column_default" => NULL "data_type" => string(4) "char" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "character_maximum_length" => string(1) "2" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "controller" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "controller" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "character_maximum_length" => string(2) "20" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "action" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "action" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "character_maximum_length" => string(2) "20" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "template" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "template" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "list_order" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(10) "list_order" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "user_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "user_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(1) "4" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_created" => array(10) ( "type" => string(6) "string" "column_name" => string(12) "date_created" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "date_updated" => array(10) ( "type" => string(6) "string" "column_name" => string(12) "date_updated" "column_default" => NULL "data_type" => string(8) "datetime" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "title" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "link" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "link" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 13 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "redirect" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "redirect" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 14 "character_maximum_length" => string(3) "255" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "target" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "target" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 15 "character_maximum_length" => string(1) "8" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "metadescription" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(15) "metadescription" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 16 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "metakeywords" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(12) "metakeywords" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 17 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "intro" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(5) "intro" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 18 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "config" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(6) "config" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool FALSE "ordinal_position" => integer 19 "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "status" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(6) "status" "column_default" => string(1) "2" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 20 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "image" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "image" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 21 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "image_menu" => array(12) ( "type" => string(6) "string" "column_name" => string(10) "image_menu" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 22 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "image_right" => array(12) ( "type" => string(6) "string" "column_name" => string(11) "image_right" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 23 "character_maximum_length" => string(2) "64" "collation_name" => string(18) "utf8mb3_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "show_in_footer" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(14) "show_in_footer" "column_default" => string(1) "0" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 24 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => NULL protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQLi(6)
public request => object Request(19){ protected _connection_id => string(40) "6f976be5f1eba0909f710d58c2e4381f23c7df54" protected _identifier => string(1) "`" public last_query => string(33) "SHOW FULL COLUMNS FROM `partners`" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(7) "section" }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(23) "d116083.mysql.zonevs.eu" "database" => string(15) "d116083sd488069" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }{ 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(13) "<lang>/<path>" protected _regex => array(2) ( "lang" => string(8) "en|ee|lv" "path" => string(2) ".+" ) protected _defaults => array(3) ( "lang" => string(2) "en" "controller" => string(6) "decode" "action" => string(7) "section" ) protected _route_regex => string(37) "#^(?P<lang>en|ee|lv)/(?P<path>.+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Decode" protected _action => string(7) "section" protected _uri => string(6) "lv/dda" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "lv" "path" => string(3) "dda" ) 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(13) "<lang>/<path>" protected _regex => array(2) ( "lang" => string(8) "en|ee|lv" "path" => string(2) ".+" ) protected _defaults => array(3) ( "lang" => string(2) "en" "controller" => string(6) "decode" "action" => string(7) "section" ) protected _route_regex => string(37) "#^(?P<lang>en|ee|lv)/(?P<path>.+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Decode" protected _action => string(7) "section" protected _uri => string(6) "lv/dda" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "lv" "path" => string(3) "dda" ) 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 [ 986 ] » 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(13) "<lang>/<path>" protected _regex => array(2) ( "lang" => string(8) "en|ee|lv" "path" => string(2) ".+" ) protected _defaults => array(3) ( "lang" => string(2) "en" "controller" => string(6) "decode" "action" => string(7) "section" ) protected _route_regex => string(37) "#^(?P<lang>en|ee|lv)/(?P<path>.+)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Decode" protected _action => string(7) "section" protected _uri => string(6) "lv/dda" protected _external => bool FALSE protected _params => array(2) ( "lang" => string(2) "lv" "path" => string(3) "dda" ) 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) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
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 }