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(30) "SHOW FULL COLUMNS FROM `texts`"
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 [ 1665 ] » Kohana_Database_MySQLi->list_columns(arguments)
0
string(7) "`texts`"
1660 * @return array 1661 */ 1662 public function list_columns() 1663 { 1664 // Proxy to database 1665 return $this->_db->list_columns($this->_table_name); 1666 } 1667 1668 /** 1669 * Returns an ORM model for the given one-one related alias 1670 *
-
MODPATH/orm/classes/Kohana/ORM.php [ 441 ] » Kohana_ORM->list_columns()
436 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 437 } 438 else 439 { 440 // Grab column information from database 441 $this->_table_columns = $this->list_columns(); 442 443 // Load column cache 444 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 445 } 446 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 386 ] » Kohana_ORM->reload_columns()
381 { 382 $this->{$property} = $value; 383 } 384 385 // Load column information 386 $this->reload_columns(); 387 388 // Clear initial model state 389 $this->clear(); 390 } 391
-
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/cms/classes/Model/CMS/Params/Texts.php [ 60 ] » Kohana_ORM::factory(arguments)
0
string(11) "Model_Texts"
55 ->where('mid', '=', $mid) 56 ->and_where('pid', '=', $pid) 57 ->execute() 58 ->current(); 59 60 $texts = ORM::factory('Texts') 61 ->where('id', '=', $values?$values['value']:null) 62 ->find(); 63 64 return htmlspecialchars_decode($texts->value); 65 }
-
MODPATH/cms/classes/Model/CMS/Materials.php [ 473 ] » Model_CMS_Params_Texts->getParam(arguments)
0
integer 16334
1
string(3) "207"
468 $fieldSet = $this->getFieldsSet($gid); 469 foreach($fieldSet as $field) 470 { 471 $paramObj = $this->getParamClass($field['type'], '/'); 472 if($paramObj) 473 $field['value'] = $paramObj->getParam($mid, $field['id']); 474 475 $params[$field['name']] = $field; 476 } 477 478 return $params;
-
MODPATH/cms/classes/Model/CMS/Materials.php [ 924 ] » Model_CMS_Materials->getFields(arguments)
0
integer 16334
919 return FALSE; 920 } 921 922 !$admin ? $data['canonical'] = $this->getCanonicalLink($mid, Arr::get($data, 'url')) : $data['canonical'] = ''; 923 924 $fields = $this->getFields($mid); 925 $data['fields'] = $fields; 926 if(!isset($data)) return FALSE; 927 return $data; 928 } 929
-
APPPATH/views/widgets/menu/horizontal.php [ 33 ] » Model_CMS_Materials->getMaterial(arguments)
0
integer 16334
28 </div> 29 <div class="col-sm-12 col-md-8"> 30 <div class="row" style="text-align: center;"> 31 <? 32 $model_cms_materials = new Model_CMS_Materials(); 33 echo $model_cms_materials->getMaterial(16334)["fields"]["text"]["value"]; 34 ?> 35 <div class="social_buttons" style="float: right;"> 36 <a href="https://www.facebook.com/groups/1281589365195226/?ref=group_browse_new" title="Facebook" class="facebook" style="color: #1800ff;"> 37 <i class="fa fa-facebook-official fa-2x" aria-hidden="true"></i> 38 </a>
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(76) "/home/pravobez/pravobez.ru/www/application/views/widgets/menu/horizontal.php"
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean();
-
SYSPATH/classes/Kohana/View.php [ 349 ] » Kohana_View::capture(arguments)
0
string(76) "/home/pravobez/pravobez.ru/www/application/views/widgets/menu/horizontal.php"
1
array(1) ( "data" => array(6) ( 0 => array(12) ( "id" => string(1) "4" "name" => string(14) "Главная" "left_key" => string(1) "5" "right_key" => string(1) "6" "level" => string(1) "2" "url" => string(8) "glavnaya" "ordering" => NULL "keywords" => NULL "description" => string(0) "" "parent_id" => string(1) "3" "fullpath" => string(0) "" "selected" => bool FALSE ) 1 => array(12) ( "id" => string(4) "1358" "name" => string(19) "О компании" "left_key" => string(1) "7" "right_key" => string(1) "8" "level" => string(1) "2" "url" => string(5) "about" "ordering" => NULL "keywords" => NULL "description" => string(308) "Региональный центр правовой безопасности юридическая компания в Екатеринбурге. Подготовка заявлений, договоров, сопровождение сд …" "parent_id" => string(1) "3" "fullpath" => string(5) "about" "selected" => bool FALSE ) 2 => array(12) ( "id" => string(4) "1359" "name" => string(21) "Наши Услуги" "left_key" => string(1) "9" "right_key" => string(2) "10" "level" => string(1) "2" "url" => string(8) "services" "ordering" => NULL "keywords" => NULL "description" => string(65) "Юридические услуги в Екатеринбурге" "parent_id" => string(1) "3" "fullpath" => string(8) "services" "selected" => bool FALSE ) 3 => array(12) ( "id" => string(4) "1365" "name" => string(12) "Статьи" "left_key" => string(2) "11" "right_key" => string(2) "12" "level" => string(1) "2" "url" => string(8) "articles" "ordering" => NULL "keywords" => NULL "description" => string(44) "Сам себе юрист и адвокат" "parent_id" => string(1) "3" "fullpath" => string(8) "articles" "selected" => bool FALSE ) 4 => array(12) ( "id" => string(4) "1360" "name" => string(23) "Вопрос-Ответ" "left_key" => string(2) "15" "right_key" => string(2) "16" "level" => string(1) "2" "url" => string(3) "faq" "ordering" => NULL "keywords" => NULL "description" => string(124) "Бесплатная юридическая консультация юриста онлайн в Екатеринбурге" "parent_id" => string(1) "3" "fullpath" => string(3) "faq" "selected" => bool FALSE ) 5 => array(12) ( "id" => string(4) "1364" "name" => string(16) "Контакты" "left_key" => string(2) "21" "right_key" => string(2) "22" "level" => string(1) "2" "url" => string(8) "contacts" "ordering" => NULL "keywords" => NULL "description" => string(77) "Адреса и телефоны юристов в Екатеринбурге" "parent_id" => string(1) "3" "fullpath" => string(8) "contacts" "selected" => bool FALSE ) ) )
344 { 345 throw new View_Exception('You must set the file to use within your view before rendering'); 346 } 347 348 // Combine local and global data and capture the output 349 return View::capture($this->_file, $this->_data); 350 } 351 352 }
-
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49
-
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Widgets_Menu(7)
{ public template => object View(2)
{ protected _file => string(76) "/home/pravobez/pravobez.ru/www/application/views/widgets/menu/horizontal.php" protected _data => array(1) ( "data" => array(6) ( 0 => array(12) ( "id" => string(1) "4" "name" => string(14) "Главная" "left_key" => string(1) "5" "right_key" => string(1) "6" "level" => string(1) "2" "url" => string(8) "glavnaya" "ordering" => NULL "keywords" => NULL "description" => string(0) "" "parent_id" => string(1) "3" "fullpath" => string(0) "" "selected" => bool FALSE ) 1 => array(12) ( "id" => string(4) "1358" "name" => string(19) "О компании" "left_key" => string(1) "7" "right_key" => string(1) "8" "level" => string(1) "2" "url" => string(5) "about" "ordering" => NULL "keywords" => NULL "description" => string(308) "Региональный центр правовой безопасности юридическая компания в Екатеринбурге. Подготовка заявлений, договоров, сопровождение сд …" "parent_id" => string(1) "3" "fullpath" => string(5) "about" "selected" => bool FALSE ) 2 => array(12) ( "id" => string(4) "1359" "name" => string(21) "Наши Услуги" "left_key" => string(1) "9" "right_key" => string(2) "10" "level" => string(1) "2" "url" => string(8) "services" "ordering" => NULL "keywords" => NULL "description" => string(65) "Юридические услуги в Екатеринбурге" "parent_id" => string(1) "3" "fullpath" => string(8) "services" "selected" => bool FALSE ) 3 => array(12) ( "id" => string(4) "1365" "name" => string(12) "Статьи" "left_key" => string(2) "11" "right_key" => string(2) "12" "level" => string(1) "2" "url" => string(8) "articles" "ordering" => NULL "keywords" => NULL "description" => string(44) "Сам себе юрист и адвокат" "parent_id" => string(1) "3" "fullpath" => string(8) "articles" "selected" => bool FALSE ) 4 => array(12) ( "id" => string(4) "1360" "name" => string(23) "Вопрос-Ответ" "left_key" => string(2) "15" "right_key" => string(2) "16" "level" => string(1) "2" "url" => string(3) "faq" "ordering" => NULL "keywords" => NULL "description" => string(124) "Бесплатная юридическая консультация юриста онлайн в Екатеринбурге" "parent_id" => string(1) "3" "fullpath" => string(3) "faq" "selected" => bool FALSE ) 5 => array(12) ( "id" => string(4) "1364" "name" => string(16) "Контакты" "left_key" => string(2) "21" "right_key" => string(2) "22" "level" => string(1) "2" "url" => string(8) "contacts" "ordering" => NULL "keywords" => NULL "description" => string(77) "Адреса и телефоны юристов в Екатеринбурге" "parent_id" => string(1) "3" "fullpath" => string(8) "contacts" "selected" => bool FALSE ) ) ) }
public widgets => object Model_CMS_DB_Widgets(0){ }
public structure => object Model_CMS_Structure(4){ public tree => object Model_CMS_DB_Tree(1)
public auto_render => bool TRUE public request => object Request(19){ public table => string(4) "tree" }
public tableName => string(4) "tree" public error => array(0) public widgets => object Model_CMS_DB_Widgets(0){ }
}{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(70) "widgets(/<controller>(/<action>(/<id>)(/page<page>)(/tpl_<template>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(7) "widgets" "action" => string(5) "index" "page" => string(1) "0" ) protected _route_regex => string(171) "#^widgets(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?(?:/page(?P<page>[^/.,;?\n]++))?( …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Widgets" protected _controller => string(4) "Menu" protected _action => string(5) "index" protected _uri => string(20) "widgets/menu/index/1" protected _external => bool FALSE protected _params => array(2) ( "id" => string(1) "1" "page" => string(1) "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) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
public wid => string(1) "1" }{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }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.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(70) "widgets(/<controller>(/<action>(/<id>)(/page<page>)(/tpl_<template>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(7) "widgets" "action" => string(5) "index" "page" => string(1) "0" ) protected _route_regex => string(171) "#^widgets(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?(?:/page(?P<page>[^/.,;?\n]++))?( …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Widgets" protected _controller => string(4) "Menu" protected _action => string(5) "index" protected _uri => string(20) "widgets/menu/index/1" protected _external => bool FALSE protected _params => array(2) ( "id" => string(1) "1" "page" => string(1) "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
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.0" }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 [ 987 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(70) "widgets(/<controller>(/<action>(/<id>)(/page<page>)(/tpl_<template>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(7) "widgets" "action" => string(5) "index" "page" => string(1) "0" ) protected _route_regex => string(171) "#^widgets(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?(?:/page(?P<page>[^/.,;?\n]++))?( …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(7) "Widgets" protected _controller => string(4) "Menu" protected _action => string(5) "index" protected _uri => string(20) "widgets/menu/index/1" protected _external => bool FALSE protected _params => array(2) ( "id" => string(1) "1" "page" => string(1) "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) }
}982 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 983 ':uri' => $this->_uri, 984 )); 985 } 986 987 return $this->_client->execute($this); 988 } 989 990 /** 991 * Returns whether this request is the initial request Kohana received. 992 * Can be used to test for sub requests.
-
MODPATH/cms/classes/Controller/Main.php [ 90 ] » Kohana_Request->execute()
85 if(is_file(DOCROOT . 'media/js/'.$widget['name'].'.js')) 86 array_push($this->template->scripts, 'js/'.$widget['name'].'.js'); 87 88 $action = Arr::get($widget, 'action', 'index'); 89 $wdgt = Request::factory('widgets/'.$widget['name'].'/'.$action.'/'.$widget['id'].$page1) 90 ->execute(); 91 !isset($wdgtarr[$widget['position']]) ? $wdgtarr[$widget['position']] = array($wdgt) : array_push($wdgtarr[$widget['position']], $wdgt); 92 } 93 94 return $wdgtarr; 95 }
-
MODPATH/cms/classes/Controller/Index.php [ 12 ] » Controller_Main->getWidgets(arguments)
0
integer 2
7 public function before() { 8 9 parent::before(); 10 11 $categoryId = 2; 12 $this->widgets = $this->getWidgets($categoryId); 13 if(is_array($this->widgets)) 14 foreach ($this->widgets as $position => $widget) 15 $this->template->$position = $widget; 16 } 17
-
MODPATH/cms/classes/Controller/Material.php [ 11 ] » Controller_Index->before()
6 public $widgets; 7 public $structure; 8 9 public function before() 10 { 11 parent::before(); 12 13 $this->materials = new Model_CMS_Materials(); 14 $this->widgets = new Model_CMS_DB_Widgets(); 15 $this->structure = new Model_CMS_Structure(); 16
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Material->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_Material(12)
{ public materials => NULL public widgets => NULL public structure => NULL public template => object View(2)
{ protected _file => string(57) "/home/pravobez/pravobez.ru/www/application/views/base.php" protected _data => array(20) ( "title" => string(136) "Региональный центр правовой безопасности - весь спектр юридических услуг!" "description" => string(423) "Оказание юридических правовых услуг юридическим и физическим лицам в Екатеринбурге. Оказание квалифицированной правовой помощи в …" "keywords" => string(342) "Бесплатная юридическая консультация, оказание юридической помощи Екатеринбурге. Услуги юриста в арбитражном суде Екатеринбурга. …" "links" => array(0) "header" => object View(2)
public styles => array(1) ( 0 => string(13) "css/menu.less" ) public base => object Model_CMS_Base(1){ protected _file => string(59) "/home/pravobez/pravobez.ru/www/application/views/header.php" protected _data => array(0) }
"footer" => object View(2){ protected _file => string(59) "/home/pravobez/pravobez.ru/www/application/views/footer.php" protected _data => array(0) }
"callback" => NULL "for_cart" => NULL "top_menu" => NULL "bottom_block" => NULL "block_top" => NULL "block_center" => NULL "block_right" => NULL "right_block" => NULL "left_block" => NULL "pathway" => NULL "block_header" => NULL "site_version" => string(8) "adaptive" "styles" => array(0) "scripts" => array(10) ( 0 => string(26) "media/js/plugins/jquery.js" 1 => string(25) "media/js/jquery-ui.min.js" 2 => string(30) "media/js/plugins/underscore.js" 3 => string(42) "media/js/plugins/modernizr.custom.17475.js" 4 => string(33) "media/js/plugins/bootstrap.min.js" 5 => string(28) "media/js/plugins/fotorama.js" 6 => string(39) "media/js/plugins/ion.rangeSlider.min.js" 7 => string(41) "media/js/plugins/magnific-popup-v0.9.9.js" 8 => string(22) "media/js/sticky-kit.js" 9 => string(16) "media/js/main.js" ) ) }{ public options => NULL }
public options => array(24) ( "sitename" => string(8) "PRAVOBEZ" "title" => string(136) "Региональный центр правовой безопасности - весь спектр юридических услуг!" "description" => string(423) "Оказание юридических правовых услуг юридическим и физическим лицам в Екатеринбурге. Оказание квалифицированной правовой помощи в …" "keywords" => string(342) "Бесплатная юридическая консультация, оказание юридической помощи Екатеринбурге. Услуги юриста в арбитражном суде Екатеринбурга. …" "" => string(18) "Сохранить" "callback_email" => string(20) "VasenevMaxim@mail.ru" "room" => string(4) "TRUE" "work" => string(5) "FALSE" "admin_email" => string(16) "pravobez@mail.ru" "autosend_email" => string(0) "" "autosend_pass" => string(0) "" "autosend_smtp" => string(0) "" "photos_base_path" => string(4) "/img" "files_base_path" => string(5) "/docs" "image_quality" => string(2) "90" "upload_size" => string(7) "800,600" "upload_crop" => string(0) "" "structure_photos_size" => string(7) "100,150" "xls_offset" => string(1) "0" "xls_limit" => string(3) "100" "banner_interval" => string(1) "0" "price_type" => string(7) "default" "login_price_type" => string(7) "default" "cart-address" => string(5) "sdsdf" ) public benchmark => NULL public page => bool FALSE public auto_render => bool TRUE public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(23) "<category>(/page<page>)" protected _regex => array(1) ( "category" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(8) "material" "action" => string(5) "index" ) protected _route_regex => string(54) "#^(?P<category>.+)(?:/page(?P<page>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Material" protected _action => string(5) "index" protected _uri => string(33) "uslugi-grazhdanam/trudovye-spory-" protected _external => bool FALSE protected _params => array(1) ( "category" => string(33) "uslugi-grazhdanam/trudovye-spory-" ) 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.0" }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.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(23) "<category>(/page<page>)" protected _regex => array(1) ( "category" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(8) "material" "action" => string(5) "index" ) protected _route_regex => string(54) "#^(?P<category>.+)(?:/page(?P<page>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Material" protected _action => string(5) "index" protected _uri => string(33) "uslugi-grazhdanam/trudovye-spory-" protected _external => bool FALSE protected _params => array(1) ( "category" => string(33) "uslugi-grazhdanam/trudovye-spory-" ) 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.0" }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 [ 987 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(23) "<category>(/page<page>)" protected _regex => array(1) ( "category" => string(2) ".+" ) protected _defaults => array(2) ( "controller" => string(8) "material" "action" => string(5) "index" ) protected _route_regex => string(54) "#^(?P<category>.+)(?:/page(?P<page>[^/.,;?\n]++))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Material" protected _action => string(5) "index" protected _uri => string(33) "uslugi-grazhdanam/trudovye-spory-" protected _external => bool FALSE protected _params => array(1) ( "category" => string(33) "uslugi-grazhdanam/trudovye-spory-" ) 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) }
}982 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 983 ':uri' => $this->_uri, 984 )); 985 } 986 987 return $this->_client->execute($this); 988 } 989 990 /** 991 * Returns whether this request is the initial request Kohana received. 992 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 125 ] » Kohana_Request->execute()
120 /** 121 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 122 * If no source is specified, the URI will be automatically detected. 123 */ 124 echo Request::factory(TRUE, array(), FALSE) 125 ->execute() 126 ->send_headers(TRUE) 127 ->body(); 128 } 129