MODPATH/var/www/vhosts/wakeshop.eu/httpdocs/core/mysqli/classes/Database/MySQLi.php [ 175 ]
170 {
171 // This benchmark is worthless
172 Profiler::delete($benchmark);
173 }
174
175 throw new Database_Exception(':error [ :query ]',
176 array(':error' => mysqli_error($this->_connection), ':query' => $sql),
177 mysqli_errno($this->_connection));
178 }
179
180 if (isset($benchmark))
-
MODPATH/var/www/vhosts/wakeshop.eu/httpdocs/core/database/classes/Kohana/Database/Query.php [ 251 ] » Database_MySQLi->query(arguments)
0
integer 1
1
string(11753) "SELECT `products`.`pr_id` AS `pr_id`, `products`.`pr_code` AS `pr_code`, `products`.`pr_supplier_code` AS `pr_supplier_code`, `p …"
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/var/www/vhosts/wakeshop.eu/httpdocs/core/orm/classes/Kohana/ORM.php [ 1060 ] » Kohana_Database_Query->execute(arguments)
0
object Database_MySQLi(6)
{ protected _connection_id => string(40) "b4445f189abfc61d4d3874a434eecc3136edbf1c" protected _identifier => string(1) "`" public last_query => string(9738) "SELECT COUNT(*) AS `records_found` FROM `products` AS `products` JOIN `manufacturers` ON (`products`.`pr_ma_id` = `manufacturers …" 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) "127.0.0.1" "database" => string(11) "wakeshop_eu" "port" => NULL "socket" => NULL "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool TRUE ) }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/var/www/vhosts/wakeshop.eu/httpdocs/core/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/var/www/vhosts/wakeshop.eu/httpdocs/core/orm/classes/Traits/ORM/Searchable.php [ 156 ] » Kohana_ORM->find_all()
151 count(Kohana::$config->load('settings.frontendLangs')) > 1) 152 { 153 $this->prepareForTranslate($lang); 154 } 155 156 $records = parent::find_all()->as_array(); 157 $this->queries[] = Database::instance()->last_query; 158 159 return $records; 160 } 161
-
MODPATH/var/www/vhosts/wakeshop.eu/httpdocs/core/orm/classes/Traits/ORM/Searchable.php [ 140 ] » ORM->findAllRecords(arguments)
0
string(2) "hu"
135 $records = parent::find_all()->as_array(); 136 $this->queries[] = Database::instance()->last_query; 137 return $records; 138 } else { 139 if ($lang != "*") { 140 return $this->findAllRecords($lang); 141 } else { 142 return $this->findAllRecordsAllLang(); 143 } 144 } 145 }
-
MODPATH/var/www/vhosts/wakeshop.eu/httpdocs/core/orm/classes/Traits/ORM/Searchable.php [ 263 ] » ORM->find_all(arguments)
0
string(2) "hu"
258 $max = ceil($sum/$limit); 259 260 $records = $records 261 ->offset(($page-1)*$limit) 262 ->limit($limit) 263 ->find_all(I18n::$lang); 264 265 $result = array( 266 'page'=>$page, 267 'limit'=>$limit, 268 'max'=>$max,
-
APPPATH/classes/Business/Products.php [ 460 ] » ORM->getForPage(arguments)
0
string(1) "0"
1
integer 20
455 ->where_close() 456 ->where('products.pr_id','IN',$availableIds) 457 ->listable() 458 ->hasPrice(1,1) 459 ->setEnabled() 460 ->getForPage($page,$limit); 461 462 //echo \Database::instance()->last_query;exit; 463 464 if ($asArray) { 465 $products['records'] = (new \Resources\Products($products['records']))->get();
-
APPPATH/classes/Controller/Products.php [ 42 ] » Business\Products->autocomplete(arguments)
0
string(13) "horsefeathers"
1
integer 20
2
string(1) "0"
37 38 $this->context->term = $term = Input::get('term'); 39 $this->context->products = (new \Business\Products())->autocomplete( 40 $term, 41 20, 42 Input::get('page',1) 43 ); 44 $this->context->query = ['term'=>$term]; 45 } 46 47 public function action_ajax()
-
SYSPATH/classes/Controller.php [ 25 ] » Controller_Products->action_search()
20 } 21 22 $params = $this->getMethodParams($action); 23 24 // Execute the action itself 25 call_user_func_array(array($this, $action), $params); 26 27 // Execute the "after action" method 28 $this->after(); 29 30 // Return the response
-
{PHP internal call} » Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Products(6)
{ public template => string(20) "Products/search.twig" public twig => object Twig_Environment(34)
{ protected charset => string(5) "UTF-8" protected loader => object Twig_Loader_Filesystem(4)
public auto_render => bool TRUE public context => object stdClass(6){ protected paths => array(1) ( "__main__" => array(9) ( 0 => string(63) "/var/www/vhosts/wakeshop.eu/httpdocs/frontend/application/views" 1 => string(54) "/var/www/vhosts/wakeshop.eu/httpdocs/core/minion/views" 2 => string(51) "/var/www/vhosts/wakeshop.eu/httpdocs/core/orm/views" 3 => string(56) "/var/www/vhosts/wakeshop.eu/httpdocs/core/jshelper/views" 4 => string(53) "/var/www/vhosts/wakeshop.eu/httpdocs/core/files/views" 5 => string(59) "/var/www/vhosts/wakeshop.eu/httpdocs/core/formbuilder/views" 6 => string(53) "/var/www/vhosts/wakeshop.eu/httpdocs/core/pager/views" 7 => string(54) "/var/www/vhosts/wakeshop.eu/httpdocs/core/mailer/views" 8 => string(55) "/var/www/vhosts/wakeshop.eu/httpdocs/core/helpers/views" ) ) protected cache => array(0) protected errorCache => array(0) private rootPath => string(46) "/var/www/vhosts/wakeshop.eu/httpdocs/frontend/" }
protected debug => bool TRUE protected autoReload => bool TRUE protected cache => object Twig_Cache_Filesystem(2){ private directory => string(69) "/var/www/vhosts/wakeshop.eu/httpdocs/frontend/application/cache/twig/" private options => integer 0 }
protected lexer => NULL protected parser => NULL protected compiler => NULL protected baseTemplateClass => string(13) "Twig_Template" protected extensions => array(6) ( "core" => object Twig_Extension_Core(4){ 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 protected escapers => array(0) }
"debug" => object Twig_Extension_Debug(0){ }
"escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => string(4) "html" }
"optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"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) }
private originalCache => string(68) "/var/www/vhosts/wakeshop.eu/httpdocs/frontend/application/cache/twig" private bcWriteCacheFile => bool FALSE private bcGetCacheFilename => bool FALSE private lastModifiedExtension => integer 0 private extensionsByClass => array(6) ( "Twig_Extension_Core" => object Twig_Extension_Core(4){ 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 protected escapers => array(0) }
"Twig_Extension_Debug" => object Twig_Extension_Debug(0){ }
"Twig_Extension_Escaper" => object Twig_Extension_Escaper(1){ protected defaultStrategy => string(4) "html" }
"Twig_Extension_Optimizer" => object Twig_Extension_Optimizer(1){ protected optimizers => integer -1 }
"Twig_Extension_StringLoader" => object Twig_Extension_StringLoader(0){ }
"View_Extensions" => object View_Extensions(0){ }
) private runtimeLoaders => array(0) private runtimes => array(0) private optionsHash => string(88) "core:debug:escaper:optimizer:string_loader:view_extension:0:7:2:1.30.0:1:Twig_Template:0" }{ public title => string(8) "Keresés" public meta_keywords => string(0) "" public meta_description => string(0) "" public meta_copywrite => string(0) "" public cartNum => integer 0 public term => string(13) "horsefeathers" }
public request => object Request(19){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(15) "products/search" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(8) "products" "action" => string(6) "search" "lang" => string(2) "hu" ) protected _route_regex => string(21) "#^products/search$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Products" protected _action => string(6) "search" protected _uri => string(15) "products/search" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "hu" ) protected _get => array(3) ( "/products/search" => string(0) "" "term" => string(13) "horsefeathers" "page" => string(1) "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 TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(15) "products/search" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(8) "products" "action" => string(6) "search" "lang" => string(2) "hu" ) protected _route_regex => string(21) "#^products/search$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Products" protected _action => string(6) "search" protected _uri => string(15) "products/search" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "hu" ) protected _get => array(3) ( "/products/search" => string(0) "" "term" => string(13) "horsefeathers" "page" => string(1) "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/Request.php [ 85 ] » 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 TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(15) "products/search" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(8) "products" "action" => string(6) "search" "lang" => string(2) "hu" ) protected _route_regex => string(21) "#^products/search$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(8) "Products" protected _action => string(6) "search" protected _uri => string(15) "products/search" protected _external => bool FALSE protected _params => array(1) ( "lang" => string(2) "hu" ) protected _get => array(3) ( "/products/search" => string(0) "" "term" => string(13) "horsefeathers" "page" => string(1) "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) }
}80 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 81 ':uri' => $this->_uri, 82 )); 83 } 84 85 return $this->_client->execute($this); 86 } 87 88 }
-
MODPATH/var/www/vhosts/wakeshop.eu/httpdocs/frontend/index.php [ 121 ] » Request->execute()
116 /** 117 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 118 * If no source is specified, the URI will be automatically detected. 119 */ 120 echo Request::factory(TRUE, array(), FALSE) 121 ->execute() 122 ->send_headers(TRUE) 123 ->body(); 124 }