MODPATH/ariol/classes/Kohana/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 ] » Kohana_Database_MySQLi->query(arguments)
0
integer 1
1
string(2401) "SELECT `product`.`id` AS `id`, `product`.`name` AS `name`, `product`.`url` AS `url`, `product`.`md5_url` AS `md5_url`, `product` …"
2
bool FALSE
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 [ 1077 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "5369f2cfccf42481e0ba552107c6c9bd3e773fe4" protected _identifier => string(1) "`" public last_query => string(32) "SHOW FULL COLUMNS FROM `product`" 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(6) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(4) "1teh" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool FALSE ) }1072 return $result; 1073 } 1074 else 1075 { 1076 // Load the result as an associative array 1077 $result = $this->_db_builder->as_assoc()->execute($this->_db); 1078 1079 if (Arr::get($_GET, 'debug')) { 1080 $debugbar = Debug::StandardDebugBar(); 1081 $debugbar["messages"]->addMessage($result->get_query()); 1082 }
-
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 *
-
MODPATH/ariol/classes/Extasy/Orm.php [ 482 ] » Kohana_ORM->find()
477 } 478 479 public function get_page_by_url($url = '') 480 { 481 return $this->where('url', '=', $url) 482 ->find(); 483 } 484 485 public function fetchCountByModelId($id, $item_name) 486 { 487 return $this->where('id', '=', $id)->find()->$item_name->where('active', '=', 1)->count_all();
-
MODPATH/ariol/classes/Controller/Site.php [ 146 ] » Extasy_Orm->get_page_by_url(arguments)
0
string(21) "yp-mini-air_getactive"
141 { 142 $name = mb_strtolower($name); 143 $name = ucfirst($name); 144 145 $model = ORM::factory($name) 146 ->get_page_by_url($url); 147 148 if(!$model->loaded() || (isset($model->md5_url) && $model->md5_url != md5($url)) && $name!='') { 149 $this->forward_404(); 150 } 151
-
APPPATH/classes/Controller/Site/Product.php [ 348 ] » Controller_Site->set_metatags_and_content(arguments)
0
string(21) "yp-mini-air_getactive"
1
string(7) "product"
343 } 344 345 public function action_index() 346 { 347 $prod_url = $this->param('product') . '_' . $this->param('article'); 348 $this->set_metatags_and_content($prod_url, 'product'); 349 350 351 352 353 $this->_model = ORM::factory('Product')->where('url', '=', $this->param('product') . '_' . $this->param('article'))->find();
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Site_Product->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_Site_Product(10)
{ private _items_on_page => NULL private _object_name => NULL protected device => object Device(1)
{ protected _detector => object Mobile_Detect(3)
protected _model => NULL protected template => object View(3){ protected userAgent => string(9) "claudebot" protected httpHeaders => array(13) ( "HTTP_CF_IPCOUNTRY" => string(2) "US" "HTTP_CDN_LOOP" => string(10) "cloudflare" "HTTP_CF_CONNECTING_IP" => string(14) "34.228.213.183" "HTTP_USER_AGENT" => string(9) "claudebot" "HTTP_ACCEPT" => string(3) "*/*" "HTTP_CF_VISITOR" => string(18) "{"scheme":"https"}" "HTTP_CF_RAY" => string(20) "86bfb445e8cc38dd-IAD" "HTTP_ACCEPT_ENCODING" => string(8) "gzip, br" "HTTP_CONNECTION" => string(5) "close" "HTTP_X_FORWARDED_PORT" => string(3) "443" "HTTP_X_FORWARDED_PROTO" => string(5) "https" "HTTP_X_FORWARDED_FOR" => string(14) "34.228.213.183" "HTTP_HOST" => string(7) "1teh.by" ) protected detectionType => string(6) "mobile" }
}{ private _layout => string(18) "layout/site/global" protected _file => NULL protected _data => array(2) ( "return_location" => NULL "isAppeal" => integer 0 ) }
private _view => string(5) "index" private _return_location => NULL public request => 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(6)
public response => object Response(5){ private _name => string(12) "site-product" protected _filters => array(0) protected _uri => string(30) "<category>/<product>_<article>" protected _regex => array(1) ( "product" => string(5) "[^_]*" ) protected _defaults => array(3) ( "directory" => string(4) "site" "controller" => string(7) "product" "action" => string(5) "index" ) protected _route_regex => string(77) "#^(?P<category>[^/.,;?\n]++)/(?P<product>[^_]*)_(?P<article>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "Site" protected _controller => string(7) "Product" protected _action => string(5) "index" protected _uri => string(38) "begovyie-dorojki/yp-mini-air_getactive" protected _external => bool FALSE protected _params => array(3) ( "category" => string(16) "begovyie-dorojki" "product" => string(11) "yp-mini-air" "article" => string(9) "getactive" ) 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 _device => object Device(1){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _detector => object Mobile_Detect(3)
}{ protected userAgent => string(9) "claudebot" protected httpHeaders => array(13) ( "HTTP_CF_IPCOUNTRY" => string(2) "US" "HTTP_CDN_LOOP" => string(10) "cloudflare" "HTTP_CF_CONNECTING_IP" => string(14) "34.228.213.183" "HTTP_USER_AGENT" => string(9) "claudebot" "HTTP_ACCEPT" => string(3) "*/*" "HTTP_CF_VISITOR" => string(18) "{"scheme":"https"}" "HTTP_CF_RAY" => string(20) "86bfb445e8cc38dd-IAD" "HTTP_ACCEPT_ENCODING" => string(8) "gzip, br" "HTTP_CONNECTION" => string(5) "close" "HTTP_X_FORWARDED_PORT" => string(3) "443" "HTTP_X_FORWARDED_PROTO" => string(5) "https" "HTTP_X_FORWARDED_FOR" => string(14) "34.228.213.183" "HTTP_HOST" => string(7) "1teh.by" ) protected detectionType => string(6) "mobile" }
}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(6)
{ private _name => string(12) "site-product" protected _filters => array(0) protected _uri => string(30) "<category>/<product>_<article>" protected _regex => array(1) ( "product" => string(5) "[^_]*" ) protected _defaults => array(3) ( "directory" => string(4) "site" "controller" => string(7) "product" "action" => string(5) "index" ) protected _route_regex => string(77) "#^(?P<category>[^/.,;?\n]++)/(?P<product>[^_]*)_(?P<article>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "Site" protected _controller => string(7) "Product" protected _action => string(5) "index" protected _uri => string(38) "begovyie-dorojki/yp-mini-air_getactive" protected _external => bool FALSE protected _params => array(3) ( "category" => string(16) "begovyie-dorojki" "product" => string(11) "yp-mini-air" "article" => string(9) "getactive" ) 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(6)
{ private _name => string(12) "site-product" protected _filters => array(0) protected _uri => string(30) "<category>/<product>_<article>" protected _regex => array(1) ( "product" => string(5) "[^_]*" ) protected _defaults => array(3) ( "directory" => string(4) "site" "controller" => string(7) "product" "action" => string(5) "index" ) protected _route_regex => string(77) "#^(?P<category>[^/.,;?\n]++)/(?P<product>[^_]*)_(?P<article>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(4) "Site" protected _controller => string(7) "Product" protected _action => string(5) "index" protected _uri => string(38) "begovyie-dorojki/yp-mini-air_getactive" protected _external => bool FALSE protected _params => array(3) ( "category" => string(16) "begovyie-dorojki" "product" => string(11) "yp-mini-air" "article" => string(9) "getactive" ) 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 [ 149 ] » Kohana_Request->execute()
144 /** 145 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 146 * If no source is specified, the URI will be automatically detected. 147 */ 148 echo Request::factory(TRUE, array(), FALSE) 149 ->execute() 150 ->send_headers(TRUE) 151 ->body(); 152 }