MODPATH/database/classes/Kohana/Database/Result/Cached.php [ 13 ]
8 * @copyright (c) 2009 Kohana Team
9 * @license http://kohanaphp.com/license
10 */
11 class Kohana_Database_Result_Cached extends Database_Result {
12
13 public function __construct(array $result, $sql, $as_object = NULL)
14 {
15 parent::__construct($result, $sql, $as_object);
16
17 // Find the number of rows in the result
18 $this->_total_rows = count($result);
-
MODPATH/database/classes/Kohana/Database/Result/Cached.php [ 13 ] » Kohana_Core::error_handler(arguments)
0
integer 4096
1
string(237) "Argument 1 passed to Kohana_Database_Result_Cached::__construct() must be of the type array, boolean given, called in /srv/http/ …"
2
string(103) "/srv/http/virtualhosts/kiparis-crimea.ru/www/modules/database/classes/Kohana/Database/Result/Cached.php"
3
integer 13
4
array(0)
8 * @copyright (c) 2009 Kohana Team 9 * @license http://kohanaphp.com/license 10 */ 11 class Kohana_Database_Result_Cached extends Database_Result { 12 13 public function __construct(array $result, $sql, $as_object = NULL) 14 { 15 parent::__construct($result, $sql, $as_object); 16 17 // Find the number of rows in the result 18 $this->_total_rows = count($result);
-
MODPATH/database/classes/Kohana/Database/Query.php [ 246 ] » Kohana_Database_Result_Cached->__construct(arguments)
0
bool FALSE
1
string(548) "SELECT `category`.`id` AS `id`, `category`.`alias` AS `alias`, `category`.`name` AS `name`, `category`.`parent_category` AS `par …"
2
string(14) "Model_Category"
3
array(0)
241 // Read the cache first to delete a possible hit with lifetime <= 0 242 if (($result = Kohana::cache($cache_key, NULL, $this->_lifetime)) !== NULL 243 AND ! $this->_force_execute) 244 { 245 // Return a cached result 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);
-
MODPATH/orm/classes/Kohana/ORM.php [ 1063 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "52dcb747c1956ed56c1c645ddaa57774faac76b1" protected _identifier => string(1) "`" public last_query => string(500) "SELECT `category`.`id` AS `id`, `category`.`alias` AS `alias`, `category`.`name` AS `name`, `category`.`parent_category` AS `par …" 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(5) ( "hostname" => string(9) "localhost" "database" => string(7) "kiparis" "port" => NULL "socket" => NULL "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/Category.php [ 304 ] » Kohana_ORM->find_all()
299 $slice = ORM::factory('Category')->where('parent_category', '=', $category_id); 300 if ($all === false) { 301 $slice->and_where('enabled', '=', '1'); 302 } 303 $slice->order_by(DB::expr('sort_order DESC, name ASC'))->cached(); 304 $this->child_slice = $slice->find_all(); 305 //echo Debug::vars($slice); 306 return $this; 307 } 308 309 public static function get_child($category_id) {
-
APPPATH/classes/Controller/Parts/Footer.php [ 23 ] » Model_Category->get_child_slice(arguments)
0
integer 9140
18 $c120_html = Helper_HTML::ul_li_a($c120, array('class' => 'text-green')); 19 $c130 = ORM::factory('Category')->get_child_slice(130)->generate_category_links_array(); 20 $c130_html = Helper_HTML::ul_li_a($c130, array('class' => 'text-green')); 21 $c140 = ORM::factory('Category')->get_child_slice(140)->generate_category_links_array(); 22 $c140_html = Helper_HTML::ul_li_a($c140, array('class' => 'text-green')); 23 $c9140 = ORM::factory('Category')->get_child_slice(9140)->generate_category_links_array(); 24 $c91140_html = Helper_HTML::ul_li_a($c9140, array('class' => 'text-green')); 25 26 $this->template->content = View::factory('parts/footer') 27 ->bind('nout', $c100_html) 28 ->bind('tv', $c110_html)
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Parts_Footer->action_index()
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_Parts_Footer(4)
{ public template => object View(2)
{ protected _file => string(75) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/ajax/tpl.php" protected _data => array(0) }
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 FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(38) "parts(/<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(1) ( "directory" => string(5) "Parts" ) protected _route_regex => string(101) "#^parts(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Parts" protected _controller => string(6) "Footer" protected _action => string(5) "index" protected _uri => string(12) "parts/footer" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(38) "parts(/<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(1) ( "directory" => string(5) "Parts" ) protected _route_regex => string(101) "#^parts(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Parts" protected _controller => string(6) "Footer" protected _action => string(5) "index" protected _uri => string(12) "parts/footer" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
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 [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(38) "parts(/<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(1) ( "directory" => string(5) "Parts" ) protected _route_regex => string(101) "#^parts(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Parts" protected _controller => string(6) "Footer" protected _action => string(5) "index" protected _uri => string(12) "parts/footer" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
APPPATH/classes/Controller/Base.php [ 29 ] » Kohana_Request->execute()
24 $this->template->description = Model_Settings::loadSettingsByName('site_description', 'META')->get('value'); 25 $this->template->keywords = Model_Settings::loadSettingsByName('site_keywords', 'META')->get('value'); 26 $this->template->header = $this->request->factory('parts/header')->execute(); 27 $this->template->rellinks = null; 28 $this->template->content = null; 29 $this->template->footer = $this->request->factory('parts/footer')->execute(); 30 Media::factory()->add('/assets/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js', Media::CUSTOM, Media::JS); 31 } 32 33 }
-
APPPATH/classes/Controller/Public.php [ 6 ] » Controller_Base->before()
1 <?php defined('SYSPATH') or die('No direct script access.'); 2 3 class Controller_Public extends Controller_Base { 4 5 public function before() { 6 parent::before(); 7 Media::factory()->add('/assets/AdminLTE/plugins/jQuery/jQuery-2.1.4.min.js', Media::CUSTOM, Media::JS); 8 Media::factory()->add('/assets/AdminLTE/bootstrap/js/bootstrap.min.js', Media::CUSTOM, Media::JS); 9 Media::factory()->add('/assets/AdminLTE/plugins/inputmask/inputmask.js', Media::CUSTOM, Media::JS); 10 Media::factory()->add('/assets/AdminLTE/plugins/inputmask/jquery.inputmask.js', Media::CUSTOM, Media::JS); 11 Media::factory()->add('/assets/AdminLTE/plugins/inputmask/inputmask.numeric.extensions.js', Media::CUSTOM, Media::JS);
-
APPPATH/classes/Controller/Catalog.php [ 21 ] » Controller_Public->before()
16 private $ids; 17 public $params; 18 19 public function before() 20 { 21 parent::before(); 22 $this->params = Arr::extract(Request::current()->param(), array('category', 'filter', 'page')); 23 24 $category = ORM::factory('Category')->where('alias', '=', $this->params['category'])->find(); 25 if ($category->loaded()) { 26 $this->category = $category;
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Catalog->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_Catalog(10)
{ public item_on_page => integer 7 public current_page => integer 0 public total_records => integer 0 private category => NULL private ids => NULL public params => NULL public template => object View(2)
{ protected _file => string(70) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/tpl.php" protected _data => array(9) ( "client_ip" => string(10) "172.18.0.1" "client_role" => string(6) "client" "title" => string(272) "Интернет-магазин Кипарис — цифровая техника и электроника, гаджеты и аксессуары в Крыму. Купить компьютерную технику в Феодосии …" "sub_title" => NULL "description" => string(0) "" "keywords" => string(91) "магазин компьютерной и бытовой техники, Феодосия" "header" => object Response(5)
public auto_render => bool TRUE public request => object Request(19){ protected _status => integer 200 protected _header => object HTTP_Header(0)
"rellinks" => NULL "content" => NULL ) }{ }
protected _body => string(5537) "<div class="container hidden-xs"> <nav class="navbar navbar-default"> <ul class="nav navbar-nav navbar-right"> …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.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(52) "catalog(/<category>(/filter/<filter>)(/page:<page>))" protected _regex => array(3) ( "category" => string(15) "[a-zA-Z0-9\-/]+" "filter" => string(17) "[a-zA-Z0-9\-_=:]+" "page" => string(6) "[0-9]+" ) protected _defaults => array(5) ( "category" => NULL "filter" => string(0) "" "controller" => string(7) "Catalog" "action" => string(5) "Index" "page" => string(1) "1" ) protected _route_regex => string(117) "#^catalog(?:/(?P<category>[a-zA-Z0-9\-/]+)(?:/filter/(?P<filter>[a-zA-Z0-9\-_=:]+))?(?:/page:(?P<page>[0-9]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Catalog" protected _action => string(5) "Index" protected _uri => string(34) "catalog/mobilnye-ustroystva/page:7" protected _external => bool FALSE protected _params => array(3) ( "category" => string(19) "mobilnye-ustroystva" "filter" => string(0) "" "page" => string(1) "7" ) 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 FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(52) "catalog(/<category>(/filter/<filter>)(/page:<page>))" protected _regex => array(3) ( "category" => string(15) "[a-zA-Z0-9\-/]+" "filter" => string(17) "[a-zA-Z0-9\-_=:]+" "page" => string(6) "[0-9]+" ) protected _defaults => array(5) ( "category" => NULL "filter" => string(0) "" "controller" => string(7) "Catalog" "action" => string(5) "Index" "page" => string(1) "1" ) protected _route_regex => string(117) "#^catalog(?:/(?P<category>[a-zA-Z0-9\-/]+)(?:/filter/(?P<filter>[a-zA-Z0-9\-_=:]+))?(?:/page:(?P<page>[0-9]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Catalog" protected _action => string(5) "Index" protected _uri => string(34) "catalog/mobilnye-ustroystva/page:7" protected _external => bool FALSE protected _params => array(3) ( "category" => string(19) "mobilnye-ustroystva" "filter" => string(0) "" "page" => string(1) "7" ) 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 [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(52) "catalog(/<category>(/filter/<filter>)(/page:<page>))" protected _regex => array(3) ( "category" => string(15) "[a-zA-Z0-9\-/]+" "filter" => string(17) "[a-zA-Z0-9\-_=:]+" "page" => string(6) "[0-9]+" ) protected _defaults => array(5) ( "category" => NULL "filter" => string(0) "" "controller" => string(7) "Catalog" "action" => string(5) "Index" "page" => string(1) "1" ) protected _route_regex => string(117) "#^catalog(?:/(?P<category>[a-zA-Z0-9\-/]+)(?:/filter/(?P<filter>[a-zA-Z0-9\-_=:]+))?(?:/page:(?P<page>[0-9]+))?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Catalog" protected _action => string(5) "Index" protected _uri => string(34) "catalog/mobilnye-ustroystva/page:7" protected _external => bool FALSE protected _params => array(3) ( "category" => string(19) "mobilnye-ustroystva" "filter" => string(0) "" "page" => string(1) "7" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 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 }