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 [ 254 ] » Cache_File->set(arguments)
0
string(50) "precache-products-sef-by-id:v0.2.9:idcz5ben-casa5d"
1
NULL
2
integer 86400
249 } 250 if (!$_SERVER['precache'][$cacheKey]) { 251 $_SERVER['precache'][$cacheKey] = Cache::instance()->get($cacheKey); 252 if (!$_SERVER['precache'][$cacheKey]) { 253 $_SERVER['precache'][$cacheKey] = ORM::factory('Productsef')->where('seo_url_string', '=', $sef)->find()->get('product_id'); 254 Cache::instance()->set($cacheKey, $_SERVER['precache'][$cacheKey], self::PRODUCT_SEF_ID_LIFETIME); 255 } 256 } 257 258 return $_SERVER['precache'][$cacheKey]; 259 }
-
APP_PATH/classes/App/Search.php [ 301 ] » Precache::get_product_id_by_sef(arguments)
0
string(11) "5ben-casa5d"
296 } 297 } 298 299 //je to product? 300 if($found == false){ 301 $product = Precache::get_product_id_by_sef($v); 302 if($product){ 303 $found=true; 304 self::$filter[self::PRODUCT]['use'] = true; 305 self::$filter[self::PRODUCT]['value'] = $product; 306 }
-
{PHP internal call} » App_Search::parse_url(arguments)
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" }
params
array(3) ( "alias" => string(11) "5ben-casa5d" "controller" => string(6) "Search" "action" => string(5) "index" )
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 => string(28) "http://evilia.cz/5ben-casa5d" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(11) "5ben-casa5d" protected _external => bool FALSE protected _params => array(0) 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) }
} -
APP_PATH/core/classes/Route.php [ 456 ] » call_user_func(arguments)
function_name
array(2) ( 0 => string(10) "App_Search" 1 => string(9) "parse_url" )
parmeter
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" }
...
array(3) ( "alias" => string(11) "5ben-casa5d" "controller" => string(6) "Search" "action" => string(5) "index" )
3
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 => string(28) "http://evilia.cz/5ben-casa5d" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(11) "5ben-casa5d" protected _external => bool FALSE protected _params => array(0) 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) }
}451 } 452 453 if ($this->_filters) { 454 foreach ($this->_filters as $callback) { 455 // Execute the filter giving it the route, params, and request 456 $return = call_user_func($callback, $this, $params, $request); 457 458 if ($return === false) { 459 // Filter has aborted the match 460 return false; 461 } elseif (is_array($return)) {
-
APP_PATH/core/classes/Request.php [ 409 ] » Route->matches(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 => string(28) "http://evilia.cz/5ben-casa5d" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(11) "5ben-casa5d" protected _external => bool FALSE protected _params => array(0) 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) }
}404 if ($route->is_external()) { 405 continue; 406 } 407 408 // We found something suitable 409 if ($params = $route->matches($request)) { 410 return [ 411 'params' => $params, 412 'route' => $route, 413 ]; 414 }
-
APP_PATH/core/classes/Request.php [ 862 ] » Request::process(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 => string(28) "http://evilia.cz/5ben-casa5d" protected _route => NULL protected _routes => array(0) protected _header => object HTTP_Header(0)
{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => NULL protected _action => NULL protected _uri => string(11) "5ben-casa5d" protected _external => bool FALSE protected _params => array(0) 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
array(0)
857 * @uses [Profiler] 858 */ 859 public function execute() 860 { 861 if (!$this->_external) { 862 $processed = Request::process($this, $this->_routes); 863 864 if ($processed) { 865 // Store the matching route 866 $this->_route = $processed['route']; 867 $params = $processed['params'];
-
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';