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(393) "SELECT `settings`.`id` AS `id`, `settings`.`name` AS `name`, `settings`.`description` AS `description`, `settings`.`value` AS `v …"
2
bool FALSE
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 [ 1072 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "52dcb747c1956ed56c1c645ddaa57774faac76b1" protected _identifier => string(1) "`" public last_query => string(393) "SELECT `settings`.`id` AS `id`, `settings`.`name` AS `name`, `settings`.`description` AS `description`, `settings`.`value` AS `v …" 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 ) }1067 return $result; 1068 } 1069 else 1070 { 1071 // Load the result as an associative array 1072 $result = $this->_db_builder->as_assoc()->execute($this->_db); 1073 1074 $this->reset(); 1075 1076 if ($result->count() === 1) 1077 {
-
MODPATH/orm/classes/Kohana/ORM.php [ 979 ] » Kohana_ORM->_load_result(arguments)
0
bool FALSE
974 } 975 } 976 977 $this->_build(Database::SELECT); 978 979 return $this->_load_result(FALSE); 980 } 981 982 /** 983 * Finds multiple database rows and returns an iterator of the rows found. 984 *
-
APPPATH/classes/Model/Settings.php [ 20 ] » Kohana_ORM->find()
15 public static function loadSettingsList(){ 16 return ORM::factory('Settings')->cached()->find_all(); 17 } 18 19 public static function loadSettingsByName($name, $category){ 20 return ORM::factory('Settings')->where('name', '=', $name)->where('category', '=', $category)->cached()->find(); 21 } 22 23 public static function loadSettingsByCategoryName($name, $as_array = false) { 24 $settings = ORM::factory('Settings')->where('category', '=', $name)->cached()->find_all(); 25 if ($as_array) {
-
APPPATH/views/parts/cart.php [ 93 ] » Model_Settings::loadSettingsByName(arguments)
0
string(13) "shipping_cost"
1
string(4) "MAIN"
88 <label for="shipping_method" class="col-sm-4 col-md-4"> Доставка</label> 89 <ul class="list-unstyled col-sm-8 col-md-8"> 90 <li><input type="radio" name="shipping_method" value="1" checked /> Самовывоз из магазина - бесплатно<br /><small>Крым, г. Феодосия, ул. Крымская, 84. График работы: пн.-сб. 9:00-18:00, вс. 10:00-15:00</small></li> 91 <li><input type="radio" name="shipping_method" value="2" /> Доставка по городу(<span class="price">+<?php echo Model_Settings::loadSettingsByName('shipping_cost', 'MAIN')->get('value'); ?> руб.</span>) </li> 92 <li class="shipping_adress"> 93 <input type="hidden" name="shipping_cost" value="<?php echo Model_Settings::loadSettingsByName('shipping_cost', 'MAIN')->get('value'); ?>" /> 94 <input type="text" name="address" class="form-control flat hidden" placeholder="Укажите Ваш адрес. Например, г.Феодосия, ул. Крымская, 84 " value="<?php if (!is_null($user)) {echo $user->adress;}?>" /> 95 </li> 96 </ul> 97 </div> 98 </div>
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(77) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/parts/cart.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 [ 359 ] » Kohana_View::capture(arguments)
0
string(78) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views//parts/cart.php"
1
array(3) ( "total_price" => integer 500 "products" => array(1) ( 75796 => array(7) ( "id" => string(5) "75796" "name" => string(97) "Защитное стекло для iPhone 13 PRO MAX/14 Plus Weva полный клей (black)" "alias" => string(71) "zaschitnoe-steklo-dlya-iphone-13-pro-max-14-plus-weva-polnyy-kley-black" "description" => string(0) "" "photo" => NULL "price" => string(3) "500" "qty" => integer 1 ) ) "user" => NULL )
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 }
-
SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()
231 */ 232 public function __toString() 233 { 234 try 235 { 236 return $this->render(); 237 } 238 catch (Exception $e) 239 { 240 /** 241 * Display the exception message.
-
APPPATH/views/tpl.php [ 28 ] » Kohana_View->__toString()
23 <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"></script> 24 </head> 25 <body> 26 <?php echo $header;?> 27 <section class="page-body"> 28 <?php echo $content;?></section> 29 <section class="footer"> 30 <?php echo $footer;?></section> 31 <a href="#" class="scrollup scrollup-top btn btn-success flat hidden-sm hidden-xs" rel="nofollow" style="display: none;">Вверх ↑</a> 32 <a href="#" class="scrollup scrollup-bottom btn btn-success flat" rel="nofollow" style="display: none;">Вверх ↑</a> 33 <?php echo Media::factory()->
-
SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)
0
string(70) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/tpl.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 [ 359 ] » Kohana_View::capture(arguments)
0
string(70) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/tpl.php"
1
array(10) ( "client_ip" => string(10) "172.18.0.1" "client_role" => string(6) "client" "title" => string(272) "Интернет-магазин Кипарис — цифровая техника и электроника, гаджеты и аксессуары в Крыму. Купить компьютерную технику в Феодосии …" "sub_title" => string(14) "Корзина" "description" => string(0) "" "keywords" => string(35) "Оформление покупки" "header" => object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
"rellinks" => NULL "content" => object View(2){ }
protected _body => string(4565) "<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 _file => string(78) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views//parts/cart.php" protected _data => array(3) ( "total_price" => integer 500 "products" => array(1) ( 75796 => array(7) ( "id" => string(5) "75796" "name" => string(97) "Защитное стекло для iPhone 13 PRO MAX/14 Plus Weva полный клей (black)" "alias" => string(71) "zaschitnoe-steklo-dlya-iphone-13-pro-max-14-plus-weva-polnyy-kley-black" "description" => string(0) "" "photo" => NULL "price" => string(3) "500" "qty" => integer 1 ) ) "user" => NULL ) }
"footer" => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
){ }
protected _body => string(9003) " <div class="container"> <div class="row"> <div class="col-md-9 copyright"> <div class="row"> …" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 }
-
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_Cart(4)
{ public template => object View(2)
{ protected _file => string(70) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views/tpl.php" protected _data => array(10) ( "client_ip" => string(10) "172.18.0.1" "client_role" => string(6) "client" "title" => string(272) "Интернет-магазин Кипарис — цифровая техника и электроника, гаджеты и аксессуары в Крыму. Купить компьютерную технику в Феодосии …" "sub_title" => string(14) "Корзина" "description" => string(0) "" "keywords" => string(35) "Оформление покупки" "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" => object View(2){ }
protected _body => string(4565) "<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 _file => string(78) "/srv/http/virtualhosts/kiparis-crimea.ru/www/application/views//parts/cart.php" protected _data => array(3) ( "total_price" => integer 500 "products" => array(1) ( 75796 => array(7) ( "id" => string(5) "75796" "name" => string(97) "Защитное стекло для iPhone 13 PRO MAX/14 Plus Weva полный клей (black)" "alias" => string(71) "zaschitnoe-steklo-dlya-iphone-13-pro-max-14-plus-weva-polnyy-kley-black" "description" => string(0) "" "photo" => NULL "price" => string(3) "500" "qty" => integer 1 ) ) "user" => NULL ) }
"footer" => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
) }{ }
protected _body => string(9003) " <div class="container"> <div class="row"> <div class="col-md-9 copyright"> <div class="row"> …" 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?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(0) "" protected _controller => string(4) "Cart" protected _action => string(5) "index" protected _uri => string(4) "cart" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(1) ( "session" => NULL ) 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?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(0) "" protected _controller => string(4) "Cart" protected _action => string(5) "index" protected _uri => string(4) "cart" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(1) ( "session" => NULL ) 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(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(7) "welcome" "action" => string(5) "index" ) protected _route_regex => string(95) "#^(?:(?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(0) "" protected _controller => string(4) "Cart" protected _action => string(5) "index" protected _uri => string(4) "cart" protected _external => bool FALSE protected _params => array(0) protected _get => array(0) protected _post => array(0) protected _cookies => array(1) ( "session" => NULL ) 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 }