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(617) "SELECT `products`.`pr_id` AS `pr_id`, `products`.`pr_sc_id` AS `pr_sc_id`, `products`.`pr_name` AS `pr_name`, `products`.`pr_pri …"
2
string(14) "Model_Products"
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 [ 1060 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => string(40) "c1409fa43c5fc03427e15e442e41ba6a3fc5f7e4" protected _identifier => string(1) "`" public last_query => string(120) "SELECT COUNT(*) AS `records_found` FROM `products` AS `products` WHERE `products`.`pr_sc_id` = '19' AND `pr_enabled` = 1" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "127.0.0.1" "database" => string(8) "32_refan" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }
1055 } 1056 1057 if ($multiple === TRUE) 1058 { 1059 // Return database iterator casting to this object type 1060 $result = $this->_db_builder->as_object(get_class($this))->execute($this->_db); 1061 1062 $this->reset(); 1063 1064 return $result; 1065 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 1001 ] » Kohana_ORM->_load_result(arguments)
0
bool TRUE
996 } 997 } 998 999 $this->_build(Database::SELECT); 1000 1001 return $this->_load_result(TRUE); 1002 } 1003 1004 /** 1005 * Returns an array of columns to include in the select query. This method 1006 * can be overridden to change the default select behavior.
-
MODPATH/orm/classes/ORM.php [ 322 ] » Kohana_ORM->find_all()
317 $this->_changed = array(); 318 } 319 320 public function find_all($lang = null) 321 { 322 $records = parent::find_all()->as_array(); 323 324 foreach($records as &$item) 325 { 326 $item->_object['files'] = Model_Files::getFiles($item->_table_name,$item->pk()); 327 }
-
APPPATH/classes/Model/Products.php [ 82 ] » ORM->find_all()
77 } 78 79 if ($sortnum != 'mind') 80 { 81 $pageNum = ceil($all/$sortnum); 82 $records = $products->limit($sortnum)->offset(($page-1)*$sortnum)->where('pr_enabled','=',1)->find_all(); 83 } else { 84 $pageNum = 1; 85 $records = $products->where('pr_enabled','=',1)->find_all(); 86 } 87
-
APPPATH/classes/Controller/Webshop.php [ 45 ] » Model_Products->getPager(arguments)
0
string(8) "legujabb"
1
string(2) "20"
2
string(1) "0"
40 { 41 $this->context->title = $sub->sc_title; 42 $this->context->current_menu = "webshop"; 43 44 $this->context->sub = $sub; 45 $products = $sub->products->getPager($this->request->param('sort','legujabb'),$this->request->param('sortnum',20),$this->request->param('page',1)); 46 47 if ($products['page'] > $products['sumPage'] and $products['sumPage'] > 0) throw new Kohana_HTTP_Exception_404; 48 49 $this->context->products = $products; 50 $this->context->pagerSort = $this->request->param('sort','legujabb');
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Webshop->action_subcategories()
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_Webshop(6)
{ public template => string(26) "Webshop/subcategories.twig" public twig => object Twig_Environment(26)
{ protected charset => string(5) "utf-8" protected loader => object Twig_Loader_Filesystem(2)
public auto_render => bool TRUE public context => object stdClass(6){ protected paths => array(1) ( "__main__" => array(6) ( 0 => string(60) "/var/www/vhosts/refan.hu/httpdocs/frontend/application/views" 1 => string(63) "/var/www/vhosts/refan.hu/httpdocs/frontend/modules/minion/views" 2 => string(65) "/var/www/vhosts/refan.hu/httpdocs/frontend/modules/jshelper/views" 3 => string(62) "/var/www/vhosts/refan.hu/httpdocs/frontend/modules/files/views" 4 => string(68) "/var/www/vhosts/refan.hu/httpdocs/frontend/modules/formbuilder/views" 5 => string(62) "/var/www/vhosts/refan.hu/httpdocs/frontend/modules/pager/views" ) ) protected cache => array(0) }
protected debug => bool TRUE protected autoReload => bool TRUE protected cache => string(65) "/var/www/vhosts/refan.hu/httpdocs/frontend/application/cache/twig" protected lexer => NULL protected parser => NULL protected compiler => NULL protected baseTemplateClass => string(13) "Twig_Template" protected extensions => array(6) ( "core" => object Twig_Extension_Core(3){ protected dateFormats => array(2) ( 0 => string(10) "F j, Y H:i" 1 => string(7) "%d days" ) protected numberFormat => array(3) ( 0 => integer 0 1 => string(1) "." 2 => string(1) "," ) protected timezone => NULL }
"escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => string(4) "html" }
"optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"debug" => object Twig_Extension_Debug(0){ }
"string_loader" => object Twig_Extension_StringLoader(0){ }
"view_extension" => object View_Extensions(0){ }
) protected parsers => NULL protected visitors => NULL protected filters => NULL protected tests => NULL protected functions => NULL protected globals => NULL protected runtimeInitialized => bool FALSE protected extensionInitialized => bool FALSE protected loadedTemplates => NULL protected strictVariables => bool FALSE protected unaryOperators => NULL protected binaryOperators => NULL protected templateClassPrefix => string(15) "__TwigTemplate_" protected functionCallbacks => array(0) protected filterCallbacks => array(0) protected staging => object Twig_Extension_Staging(6){ protected functions => array(0) protected filters => array(0) protected visitors => array(0) protected tokenParsers => array(0) protected globals => array(0) protected tests => array(0) }
}{ public title => string(14) "Férfi parfüm" public meta_keywords => string(0) "" public meta_description => string(0) "" public meta_copywrite => string(0) "" public current_menu => string(7) "webshop" public sub => object Model_Subcategory(43)
public request => object Request(19){ protected _table_name => string(11) "subcategory" protected _primary_key => string(5) "sc_id" protected form => string(11) "subcategory" protected _belongs_to => array(1) ( "maincategory" => array(2) ( "foreign_key" => string(8) "sc_mc_id" "model" => string(12) "Maincategory" ) ) protected _has_many => array(1) ( "products" => array(4) ( "foreign_key" => string(8) "pr_sc_id" "through" => NULL "far_key" => string(10) "product_id" "model" => string(8) "products" ) ) protected _validation_messages => bool FALSE protected _translate_fields => array(0) protected _created_by => bool FALSE protected _updated_by => bool FALSE protected _validation_dir => string(6) "models" protected currentLang => string(2) "hu" protected uploadSettings => array(0) protected files => array(0) protected _has_one => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(6) ( "sc_id" => string(2) "19" "sc_mc_id" => string(1) "6" "sc_title" => string(14) "Férfi parfüm" "sc_desc" => string(0) "" "sc_slug" => string(12) "ferfi-parfum" "files" => array(1) ( 0 => array(14) ( "fi_id" => string(3) "160" "fi_table" => string(11) "subcategory" "fi_ref_id" => string(2) "19" "fi_name" => string(16) "ferfi_parfum.jpg" "fi_url" => string(40) "8/8/880a0121e6a94cc18f70cf7cadf6aa1e.jpg" "fi_type" => string(10) "image/jpeg" "fi_size" => string(5) "19193" "fi_datetime" => string(16) "2013-12-13 10:28" "fi_user" => string(9) "Bubu Bubu" "fi_order" => string(10) "9999999999" "user_id" => string(1) "2" "filesize" => string(7) "18.74kB" "thumbs" => array(1) ( "140x140" => string(53) "8/8/880a0121e6a94cc18f70cf7cadf6aa1e_thum_140x140.jpg" ) "isImage" => bool TRUE ) ) ) protected _changed => array(0) protected _original_values => array(5) ( "sc_id" => string(2) "19" "sc_mc_id" => string(1) "6" "sc_title" => string(14) "Férfi parfüm" "sc_desc" => string(0) "" "sc_slug" => string(12) "ferfi-parfum" ) 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(11) "subcategory" protected _object_plural => string(13) "subcategories" protected _table_columns => array(5) ( "sc_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "sc_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" ) "sc_mc_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(8) "sc_mc_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 2 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "sc_title" => array(12) ( "type" => string(6) "string" "column_name" => string(8) "sc_title" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "255" "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "sc_desc" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(7) "sc_desc" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool TRUE "ordinal_position" => integer 4 "collation_name" => string(15) "utf8_general_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "sc_slug" => array(12) ( "type" => string(6) "string" "character_maximum_length" => string(5) "65535" "column_name" => string(7) "sc_slug" "column_default" => NULL "data_type" => string(4) "text" "is_nullable" => bool TRUE "ordinal_position" => integer 5 "collation_name" => string(15) "utf8_general_ci" "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_value => string(2) "19" protected _table_names_plural => bool TRUE protected _reload_on_wakeup => bool TRUE protected _db => object Database_MySQL(6)
}{ protected _connection_id => string(40) "c1409fa43c5fc03427e15e442e41ba6a3fc5f7e4" protected _identifier => string(1) "`" public last_query => string(120) "SELECT COUNT(*) AS `records_found` FROM `products` AS `products` WHERE `products`.`pr_sc_id` = '19' AND `pr_enabled` = 1" protected _instance => string(7) "default" protected _connection => resource(mysql link) protected _config => array(5) ( "type" => string(5) "MySQL" "connection" => array(3) ( "hostname" => string(9) "127.0.0.1" "database" => string(8) "32_refan" "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(11) "subcategory" }{ 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(68) "webaruhaz/<maincategory>/<subcategory>(/<sort>(/<sortnum>(/<page>)))" protected _regex => array(3) ( "sort" => string(53) "(legujabb|legolcsobb|legdragabb|legnepszerubb|akcios)" "sortnum" => string(9) "(20|mind)" "page" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(7) "webshop" "action" => string(13) "subcategories" ) protected _route_regex => string(192) "#^webaruhaz/(?P<maincategory>[^/.,;?\n]++)/(?P<subcategory>[^/.,;?\n]++)(?:/(?P<sort>(legujabb|legolcsobb|legdragabb|legnepszeru …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Webshop" protected _action => string(13) "subcategories" protected _uri => string(45) "webaruhaz/parfumok/ferfi-parfum/legujabb/20/0" protected _external => bool FALSE protected _params => array(5) ( "maincategory" => string(8) "parfumok" "subcategory" => string(12) "ferfi-parfum" "sort" => string(8) "legujabb" "sortnum" => string(2) "20" "page" => string(1) "0" ) protected _get => array(1) ( "/webaruhaz/parfumok/ferfi-parfum/legujabb/20/0" => 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)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => NULL }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(68) "webaruhaz/<maincategory>/<subcategory>(/<sort>(/<sortnum>(/<page>)))" protected _regex => array(3) ( "sort" => string(53) "(legujabb|legolcsobb|legdragabb|legnepszerubb|akcios)" "sortnum" => string(9) "(20|mind)" "page" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(7) "webshop" "action" => string(13) "subcategories" ) protected _route_regex => string(192) "#^webaruhaz/(?P<maincategory>[^/.,;?\n]++)/(?P<subcategory>[^/.,;?\n]++)(?:/(?P<sort>(legujabb|legolcsobb|legdragabb|legnepszeru …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Webshop" protected _action => string(13) "subcategories" protected _uri => string(45) "webaruhaz/parfumok/ferfi-parfum/legujabb/20/0" protected _external => bool FALSE protected _params => array(5) ( "maincategory" => string(8) "parfumok" "subcategory" => string(12) "ferfi-parfum" "sort" => string(8) "legujabb" "sortnum" => string(2) "20" "page" => string(1) "0" ) protected _get => array(1) ( "/webaruhaz/parfumok/ferfi-parfum/legujabb/20/0" => 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 => NULL }109 $orig_response = $response = Response::factory(); 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 [ 990 ] » 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(68) "webaruhaz/<maincategory>/<subcategory>(/<sort>(/<sortnum>(/<page>)))" protected _regex => array(3) ( "sort" => string(53) "(legujabb|legolcsobb|legdragabb|legnepszerubb|akcios)" "sortnum" => string(9) "(20|mind)" "page" => string(3) "\d+" ) protected _defaults => array(2) ( "controller" => string(7) "webshop" "action" => string(13) "subcategories" ) protected _route_regex => string(192) "#^webaruhaz/(?P<maincategory>[^/.,;?\n]++)/(?P<subcategory>[^/.,;?\n]++)(?:/(?P<sort>(legujabb|legolcsobb|legdragabb|legnepszeru …" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(7) "Webshop" protected _action => string(13) "subcategories" protected _uri => string(45) "webaruhaz/parfumok/ferfi-parfum/legujabb/20/0" protected _external => bool FALSE protected _params => array(5) ( "maincategory" => string(8) "parfumok" "subcategory" => string(12) "ferfi-parfum" "sort" => string(8) "legujabb" "sortnum" => string(2) "20" "page" => string(1) "0" ) protected _get => array(1) ( "/webaruhaz/parfumok/ferfi-parfum/legujabb/20/0" => 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) }
}985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 119 ] » Kohana_Request->execute()
114 /** 115 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 116 * If no source is specified, the URI will be automatically detected. 117 */ 118 echo Request::factory(TRUE, array(), FALSE) 119 ->execute() 120 ->send_headers(TRUE) 121 ->body(); 122 }