MODPATH/database/classes/Kohana/Database/MySQL.php [ 194 ]
189 {
190 // This benchmark is worthless
191 Profiler::delete($benchmark);
192 }
193
194 throw new Database_Exception(':error [ :query ]',
195 array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 mysql_errno($this->_connection));
197 }
198
199 if (isset($benchmark))
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 1
1
string(443) "SELECT `tovar`.`id` AS `id`, `tovar`.`razdel_id` AS `razdel_id`, `tovar`.`type_id` AS `type_id`, `tovar`.`name` AS `name`, `tova …"
2
string(11) "Model_Tovar"
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_MySQL(6)
{ protected _connection_id => string(40) "499eb9c1cc0f19b65788dcf3a2d098be01ae85c7" protected _identifier => string(1) "`" public last_query => string(31) "SHOW FULL COLUMNS FROM `tovars`" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(16) "user1127013_kare" "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/Controller/Cart.php [ 23 ] » Kohana_ORM->find_all()
18 $arr[] = $key; 19 } 20 } 21 $tovs = ORM::factory('tovar') 22 ->where('id','IN',$arr) 23 ->find_all(); 24 $content = View::factory('auth/v_cart')->bind('tovs',$tovs)->bind('converter',$this->converter); 25 $this->template->block_center=$content; 26 } 27 28 public function action_remove(){
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Cart->action_alltovs()
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_Cart(6)
{ public template => object View(2)
{ protected _file => string(70) "/var/www/www-root/data/www/kare-design.by/application/views/v_base.php" protected _data => array(3) ( "block_center" => string(0) "" "auth" => object View(2)
public converter => string(1) "3" public auto_render => bool TRUE public request => object Request(19){ protected _file => string(85) "/var/www/www-root/data/www/kare-design.by/application/views/templates/v_none_auth.php" protected _data => array(0) }
"categories" => array(10) ( 10 => string(20) "Аксессуары" 11 => string(10) "Ванна" 12 => string(22) "Балкон и Сад" 13 => string(18) "Освещение" 14 => string(8) "Офис" 15 => string(14) "Коридор" 16 => string(10) "Кухня" 17 => string(14) "Спальня" 18 => string(16) "Столовая" 19 => string(16) "Гостиная" ) ) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(37) "http://kare-design.by/cart/index/2499" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(39) "<controller>(/<action>(/<id>(/<page>)))" protected _regex => array(1) ( "controller" => string(31) "(tovar|auth|poisk|cabinet|cart)" ) protected _defaults => array(1) ( "action" => string(5) "index" ) protected _route_regex => string(137) "#^(?P<controller>(tovar|auth|poisk|cabinet|cart))(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<page>[^/.,;?\n]++)) …" }
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(7) "alltovs" protected _uri => string(12) "cart/alltovs" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "/cart/alltovs" => string(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 con => object Model_Converter(34){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(3) ( "id" => string(1) "1" "evro" => string(1) "1" "bel" => string(1) "3" ) protected _changed => array(0) protected _original_values => array(3) ( "id" => string(1) "1" "evro" => string(1) "1" "bel" => string(1) "3" ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(9) "converter" protected _object_plural => string(10) "converters" protected _table_name => string(10) "converters" protected _table_columns => array(3) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "evro" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(4) "evro" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "bel" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "bel" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL 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_MySQL(6)
}{ protected _connection_id => string(40) "499eb9c1cc0f19b65788dcf3a2d098be01ae85c7" protected _identifier => string(1) "`" public last_query => string(31) "SHOW FULL COLUMNS FROM `tovars`" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(16) "user1127013_kare" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
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(9) "converter" }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 => string(37) "http://kare-design.by/cart/index/2499" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(39) "<controller>(/<action>(/<id>(/<page>)))" protected _regex => array(1) ( "controller" => string(31) "(tovar|auth|poisk|cabinet|cart)" ) protected _defaults => array(1) ( "action" => string(5) "index" ) protected _route_regex => string(137) "#^(?P<controller>(tovar|auth|poisk|cabinet|cart))(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<page>[^/.,;?\n]++)) …" }
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(7) "alltovs" protected _uri => string(12) "cart/alltovs" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "/cart/alltovs" => string(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 => string(37) "http://kare-design.by/cart/index/2499" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(39) "<controller>(/<action>(/<id>(/<page>)))" protected _regex => array(1) ( "controller" => string(31) "(tovar|auth|poisk|cabinet|cart)" ) protected _defaults => array(1) ( "action" => string(5) "index" ) protected _route_regex => string(137) "#^(?P<controller>(tovar|auth|poisk|cabinet|cart))(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++)(?:/(?P<page>[^/.,;?\n]++)) …" }
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(7) "alltovs" protected _uri => string(12) "cart/alltovs" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "/cart/alltovs" => string(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 [ 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 }