APP_PATH/core/modules/cache/classes/Cache/File.php [ 203 ]
198 $this->_make_directory($directory, 0777, true);
199 }
200
201 // Open file to inspect
202 $resouce = new SplFileInfo($directory . $filename);
203 $file = $resouce->openFile('w');
204
205 try {
206 $data = $lifetime . "\n" . serialize($data);
207 $file->fwrite($data, strlen($data));
208 return (bool) $file->fflush();
-
APP_PATH/core/modules/cache/classes/Cache/File.php [ 203 ] » SplFileInfo->openFile(arguments)
0
string(1) "w"
198 $this->_make_directory($directory, 0777, true); 199 } 200 201 // Open file to inspect 202 $resouce = new SplFileInfo($directory . $filename); 203 $file = $resouce->openFile('w'); 204 205 try { 206 $data = $lifetime . "\n" . serialize($data); 207 $file->fwrite($data, strlen($data)); 208 return (bool) $file->fflush();
-
APP_PATH/classes/Precache.php [ 100 ] » Cache_File->set(arguments)
0
string(41) "precache-products-by-id:v0.2.9:idcz909010"
1
array(66) ( "id" => string(5) "90901" "oddelenie_id" => string(2) "22" "oddelenie_product_type_id" => string(1) "0" "parent" => string(1) "0" "ean" => NULL "part_no" => string(0) "" "brand_id" => string(3) "934" "static_brand" => string(6) "N-N.CZ" "name" => string(37) "Jídelní židle F060 hnědobéžová" "description" => string(106) "Jídelní židle v provedení CR + hnědobéžová S58 mikroplyš. Nohy chromované. Dodáváno v demontu." "main_image_name" => string(42) "90901_6a361422b6bc0a0b3911f4366a516aff.jpg" "f_verified" => string(1) "1" "f_public" => string(1) "1" "f_todo" => string(1) "0" "f_ok" => string(1) "1" "status_poznamka" => NULL "status_poznamka_id" => string(1) "0" "source_type" => NULL "f_copy" => string(1) "0" "copy_source" => string(10) "1544148733" "static_count_shops" => string(1) "1" "cuser" => NULL "ctime" => string(10) "1513149608" "muser" => string(1) "7" "mtime" => string(10) "1544148733" "static_perc_pair_winner" => NULL "static_cena_skk_od" => string(7) "29824.7" "static_cena_eur_od" => string(3) "990" "static_count_offer" => string(1) "1" "static_cena_eur_priemer" => string(3) "990" "static_cena_skk_do" => string(7) "29824.7" "static_cena_eur_do" => string(3) "990" "f_deleted" => string(1) "0" "duplicate_id" => string(1) "0" "verified_mtime" => string(10) "1513616406" "verified_muser" => string(1) "1" "public_mtime" => string(1) "0" "public_muser" => string(1) "0" "ext_info" => string(0) "" "user_popularity" => string(1) "0" "ppc_popularity" => string(1) "0" "search_popularity" => string(1) "0" "public_popularity" => string(1) "0" "f_pack" => string(1) "0" "static_count_pair_suggestions" => string(1) "0" "f_hot" => string(1) "0" "static_count_recenzie" => string(1) "0" "static_count_recenzie_public" => string(1) "0" "static_count_video" => string(1) "0" "static_count_video_public" => string(1) "0" "static_avg_score" => NULL "static_avg_expert_score" => NULL "static_avg_user_score" => NULL "f_featured" => string(1) "0" "imported_from_shop_id" => string(2) "24" "f_compute_cpc" => string(1) "0" "f_invalid" => string(1) "0" "f_tried_autopair" => string(1) "0" "f_offer" => string(1) "1" "f_edited" => string(1) "0" "deleted_mtime" => string(1) "0" "deleted_muser" => string(1) "0" "sanitized_name" => string(0) "" "darceky_category_id" => string(1) "0" "static_count_shops_real" => string(1) "1" "f_top_darcek" => NULL )
2
integer 86400
95 } 96 if (!$_SERVER['precache'][$cacheKey]) { 97 $_SERVER['precache'][$cacheKey] = Cache::instance()->get($cacheKey); 98 if (!$_SERVER['precache'][$cacheKey]) { 99 $_SERVER['precache'][$cacheKey] = ORM::factory('Product')->where('id', '=', $id)->find()->as_array(); 100 Cache::instance()->set($cacheKey, $_SERVER['precache'][$cacheKey], self::PRODUCT_LIFETIME); 101 } 102 } 103 104 return $_SERVER['precache'][$cacheKey]; 105 }
-
APP_PATH/classes/App/Seo.php [ 42 ] » Precache::get_product(arguments)
0
string(5) "90901"
37 'title' => '', 38 'description' => '', 39 'canonical' => App_Search::build_url(), 40 ]; 41 if($detail){ 42 $product = Precache::get_product($detail); 43 $seo['title'] = $product['name']; 44 $seo['description'] = ''; 45 $text = str_replace('"', "'", trim(preg_replace('/\s\s+/', ' ', strip_tags(html_entity_decode(nl2br($product['description'])))))); 46 if($text != '') { 47 $seo['description'] = Text::limit_words($text, 100);
-
APP_PATH/classes/Controller/Search.php [ 32 ] » App_Seo::build(arguments)
0
string(5) "90901"
27 { 28 $detail = $this->get_detail(); 29 if($this->request->query(__('url-query-page'))) { 30 App_System::$actual_page = $this->request->query(__('url-query-page')); 31 } 32 $seo = App_Seo::build($detail); 33 $r = $this->request->query('r'); 34 if($detail && !$r) { 35 $this->meta = array_merge($this->meta,App_Render::open_graph($detail)); 36 $this->renderDetail($detail); 37 } else {
-
APP_PATH/core/classes/Adv/Controller.php [ 85 ] » Controller_Search->index()
80 array(':uri' => $this->request->uri()) 81 )->request($this->request); 82 } 83 84 // Execute the action itself 85 $this->{$action}(); 86 87 // Execute the "after action" method 88 $this->afterFilter(); 89 90 // Return the response
-
{PHP internal call} » Adv_Controller->execute()
-
APP_PATH/core/classes/Adv/RequestClientInternal.php [ 88 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Search(19)
{ public view => string(18) "template/smallhead" protected auth => object Auth_ORM(2)
{ protected _session => object Session_Native(5)
protected login_level => integer 0 protected user => array(0) protected meta => array(1) ( "description" => string(105) "Evilia.cz vám vybírá stylový nábytek, textilie a osvětlení. Špičkoví výrobci a výborné ceny!" ) protected canonical => NULL protected top_products => array(5) ( 0 => array(2) ( "name" => string(20) "Konferenční stolky" "sef" => string(18) "konferencni-stolky" ) 1 => array(2) ( "name" => string(8) "Přehozy" "sef" => string(7) "prehozy" ) 2 => array(2) ( "name" => string(6) "Komody" "sef" => string(6) "komody" ) 3 => array(2) ( "name" => string(19) "Manželské postele" "sef" => string(17) "manzelske-postele" ) 4 => array(2) ( "name" => string(16) "Sedací soupravy" "sef" => string(15) "sedaci-soupravy" ) ) protected meta_prev => NULL protected meta_next => NULL public search => array(7) ( "date" => array(2) ( "from" => NULL "to" => NULL ) "persons" => array(4) ( "adult" => integer 2 "child" => integer 0 "teen" => integer 0 "baby" => integer 0 ) "params" => array(3) ( "rt" => array(0) "s" => array(0) "v" => array(0) ) "location" => array(4) ( "l1" => integer 0 "l2" => integer 0 "l3" => integer 0 "l4" => integer 0 ) "object" => array(3) ( "floor" => array(0) "waterdistance" => integer 0 "rooms" => integer 0 ) "sort" => integer 1 "page" => integer 1 ) protected title_weather_city => integer 94 protected title_weather_show => bool TRUE protected last_search => array(6) ( "from" => NULL "to" => NULL "pa" => integer 2 "pc" => integer 0 "pb" => integer 0 "pt" => integer 0 ) protected title => string(44) "Evilia.cz - Nábytek, Textilie, Osvětlení." protected cache => object Cache_File(2){ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(1) ( "user_clicks_v_1" => integer 1 ) protected _destroyed => bool FALSE }
protected _config => object Adv_Config_Group(7){ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(38) "moPG4n12fsAE78A1E9H81BEA9Tghj562i0vVTN" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }
}{ protected _cache_dir => object SplFileInfo(0)
public auto_render => bool TRUE public request => object Request(19){ }
protected _config => array(4) ( "driver" => string(4) "file" "cache_dir" => string(19) "/var/www/html/cache" "default_expire" => integer 3600 "ignore_on_delete" => array(3) ( 0 => string(10) ".gitignore" 1 => string(4) ".git" 2 => string(4) ".svn" ) ) }{ 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){ protected _subdomain => array(2) ( 0 => string(0) "" 1 => string(3) "www" ) protected _filters => array(1) ( 0 => array(2) ( 0 => string(10) "App_Search" 1 => string(9) "parse_url" ) ) protected _uri => string(9) "(<alias>)" protected _regex => array(1) ( "alias" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(6) "Search" "action" => string(5) "index" ) protected _route_regex => string(24) "#^(?:(?P<alias>.*))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Search" protected _action => string(5) "index" protected _uri => string(44) "jidelni-zidle/jidelni-zidle-f060-hnedobezova" protected _external => bool FALSE protected _params => array(1) ( "alias" => string(44) "jidelni-zidle/jidelni-zidle-f060-hnedobezova" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Adv_RequestClientInternal(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(37) "Adv_RequestClient::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 template => object View(2){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ protected _file => string(42) "/var/www/html/views/template/smallhead.php" protected _data => array(0) }
}83 84 // Create a new instance of the controller 85 $controller = $class->newInstance($request, $response); 86 87 // Run the controller's execute() method 88 $response = $class->getMethod('execute')->invoke($controller); 89 90 if (!$response instanceof Response) { 91 // Controller failed to return a Response. 92 throw new Adv_Exception('Controller failed to return a Response'); 93 }
-
APP_PATH/core/classes/Adv/RequestClient.php [ 116 ] » Adv_RequestClientInternal->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)
{ protected _subdomain => array(2) ( 0 => string(0) "" 1 => string(3) "www" ) protected _filters => array(1) ( 0 => array(2) ( 0 => string(10) "App_Search" 1 => string(9) "parse_url" ) ) protected _uri => string(9) "(<alias>)" protected _regex => array(1) ( "alias" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(6) "Search" "action" => string(5) "index" ) protected _route_regex => string(24) "#^(?:(?P<alias>.*))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Search" protected _action => string(5) "index" protected _uri => string(44) "jidelni-zidle/jidelni-zidle-f060-hnedobezova" protected _external => bool FALSE protected _params => array(1) ( "alias" => string(44) "jidelni-zidle/jidelni-zidle-f060-hnedobezova" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Adv_RequestClientInternal(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(37) "Adv_RequestClient::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" }111 112 if (($cache = $this->cache()) instanceof HTTP_Cache) { 113 return $cache->execute($this, $request, $response); 114 } 115 116 $response = $this->execute_request($request, $response); 117 118 // Execute response callbacks 119 foreach ($this->header_callbacks() as $header => $callback) { 120 if ($response->headers($header)) { 121 $cb_result = call_user_func($callback, $request, $response, $this);
-
APP_PATH/core/classes/Request.php [ 899 ] » Adv_RequestClient->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)
{ protected _subdomain => array(2) ( 0 => string(0) "" 1 => string(3) "www" ) protected _filters => array(1) ( 0 => array(2) ( 0 => string(10) "App_Search" 1 => string(9) "parse_url" ) ) protected _uri => string(9) "(<alias>)" protected _regex => array(1) ( "alias" => string(2) ".*" ) protected _defaults => array(2) ( "controller" => string(6) "Search" "action" => string(5) "index" ) protected _route_regex => string(24) "#^(?:(?P<alias>.*))?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(6) "Search" protected _action => string(5) "index" protected _uri => string(44) "jidelni-zidle/jidelni-zidle-f060-hnedobezova" protected _external => bool FALSE protected _params => array(1) ( "alias" => string(44) "jidelni-zidle/jidelni-zidle-f060-hnedobezova" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Adv_RequestClientInternal(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(37) "Adv_RequestClient::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}894 895 if (!$this->_client instanceof Adv_RequestClient) { 896 throw new Adv_Exception('Unable to execute :uri without a Adv_RequestClient', [':uri' => $this->_uri]); 897 } 898 899 return $this->_client->execute($this); 900 } 901 902 /** 903 * Returns whether this request is the initial request ADV received. 904 * Can be used to test for sub requests.
-
APP_PATH/core/bootstrap.php [ 112 ] » Request->execute()
107 /* 108 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 109 * If no source is specified, the URI will be automatically detected. 110 */ 111 echo Request::factory(true, array(), false) 112 ->execute() 113 ->send_headers(true) 114 ->body(); 115 }
-
APP_PATH/index.php [ 14 ] » include(arguments)
0
string(32) "/var/www/html/core/bootstrap.php"
9 10 $_SERVER['ROOT_CORE'] = $_SERVER['ROOT_APP'] . '/core'; 11 $_SERVER['HTTPS'] = 'on'; 12 13 // Bootstrap the ADV framework 14 include $_SERVER['ROOT_CORE'] . '/bootstrap.php';