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/core/modules/orm/classes/ORM.php [ 1641 ] » Cache_File->set(arguments)
0
string(22) "ORM::list_columns|tags"
1
array(5) ( "oddelenie_id" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(10) "4294967295" "column_name" => string(12) "oddelenie_id" "column_default" => NULL "data_type" => string(12) "int unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "10" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "tag" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "tag" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "100" "collation_name" => string(14) "utf8_slovak_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "f_top" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(5) "f_top" "column_default" => NULL "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "f_no_stopline" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(13) "f_no_stopline" "column_default" => string(1) "0" "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "top_sort" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(8) "top_sort" "column_default" => NULL "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(1) "3" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) )
2
integer 86400
1636 return $ret; 1637 } 1638 1639 // Proxy to database 1640 $ret = $this->_db->list_columns($this->_table_name); 1641 $cache->set($cache_id, $ret, DAY); 1642 return $ret; 1643 } 1644 1645 /** 1646 * Returns an ORM model for the given one-one related alias
-
APP_PATH/core/modules/orm/classes/ORM.php [ 420 ] » ORM->list_columns()
415 if (isset(ORM::$_column_cache[$this->_object_name])) { 416 // Use cached column information 417 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 418 } else { 419 // Grab column information from database 420 $this->_table_columns = $this->list_columns(); 421 422 // Load column cache 423 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 424 } 425 }
-
APP_PATH/core/modules/orm/classes/ORM.php [ 371 ] » ORM->reload_columns()
366 foreach ($init as $property => $value) { 367 $this->{$property} = $value; 368 } 369 370 // Load column information 371 $this->reload_columns(); 372 373 // Clear initial model state 374 $this->clear(); 375 } 376
-
APP_PATH/core/modules/orm/classes/ORM.php [ 258 ] » ORM->_initialize()
253 * 254 * @param mixed $id Parameter for find or object to load 255 */ 256 public function __construct($id = null) 257 { 258 $this->_initialize(); 259 260 if ($id !== null) { 261 if (is_array($id)) { 262 foreach ($id as $column => $value) { 263 // Passing an array of column => values
-
APP_PATH/core/modules/orm/classes/ORM.php [ 44 ] » ORM->__construct(arguments)
0
NULL
39 public static function factory($model, $id = null) 40 { 41 // Set class name 42 $model = 'Model_' . $model; 43 44 return new $model($id); 45 } 46 47 /** 48 * "Has one" relationships 49 * @var array
-
APP_PATH/classes/Precache.php [ 435 ] » ORM::factory(arguments)
0
string(12) "CategoryTags"
430 if (!$_SERVER['precache'][$cacheKey]) { 431 $_SERVER['precache'][$cacheKey] = Cache::instance()->get($cacheKey); 432 if (!$_SERVER['precache'][$cacheKey]) { 433 $categories = []; 434 $co = ORM::factory('Category'); 435 $cto = ORM::factory('CategoryTags'); 436 $main = $co->where('depth','=','2')->find_all()->as_array(); 437 438 foreach($main AS $cat){ 439 $categories[$cat->id] = [ 440 'id' => $cat->id,
-
APP_PATH/classes/Precache.php [ 336 ] » Precache::get_categories()
331 } 332 if (!$_SERVER['precache'][$cacheKey]) { 333 $_SERVER['precache'][$cacheKey] = Cache::instance()->get($cacheKey); 334 if (!$_SERVER['precache'][$cacheKey]) { 335 $div = []; 336 $cats = self::get_categories(); 337 foreach (App_Search::get_top_division() AS $d){ 338 if(isset($cats[$d])) { 339 $div[] = [ 340 'name' => $cats[$d]['name'], 341 'sef' => $cats[$d]['sef']
-
APP_PATH/classes/Controller/App.php [ 132 ] » Precache::get_top_divisions()
127 } 128 129 $this->title = __('AppNameTitle'); 130 $this->cache = Cache::instance(); 131 $this->meta['description'] = __('meta-desc-default'); 132 $this->top_products = Precache::get_top_divisions(); 133 } 134 135 /** 136 * redirect to product from admin 137 *
-
APP_PATH/classes/Controller/Inspirations.php [ 38 ] » Controller_App->beforeFilter()
33 self::$type = self::ARTICLE; 34 } else { 35 $this->prepare_listing(); 36 self::$type = self::LISTING; 37 } 38 parent::beforeFilter(); 39 } 40 41 public function index() 42 { 43 switch(self::$type){
-
APP_PATH/core/classes/Adv/Controller.php [ 70 ] » Controller_Inspirations->beforeFilter()
65 * @return Response 66 */ 67 public function execute() 68 { 69 // Execute the "before action" method 70 $this->beforeFilter(); 71 72 // Determine the action to use 73 $action = $this->request->action(); 74 75 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Adv_Controller->execute()
-
APP_PATH/core/classes/Adv/RequestClientInternal.php [ 88 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Inspirations(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(109) "Evilia.sk vám vyberá štýlový nábytok, textílie a osvetlenie. Špičkový výrobcovia a výborné ceny!" ) protected canonical => NULL protected top_products => array(0) 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.sk - Nábytok, Textílie, Osvetlenie." 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(0) protected _uri => string(28) "inspiracie(/(<cat>(/<art>)))" protected _regex => array(2) ( "cat" => string(10) "[a-z0-9-]*" "art" => string(10) "[a-z0-9-]*" ) protected _defaults => array(2) ( "controller" => string(12) "Inspirations" "action" => string(5) "index" ) protected _route_regex => string(71) "#^inspiracie(?:/(?:(?P<cat>[a-z0-9-]*)(?:/(?P<art>[a-z0-9-]*))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(12) "Inspirations" protected _action => string(5) "index" protected _uri => string(95) "inspiracie/rozziarte-si-zivot-so-spravnym-bytovym-osvetlenim/udrzujte-oblecenie-v-satniku-ciste" protected _external => bool FALSE protected _params => array(2) ( "cat" => string(49) "rozziarte-si-zivot-so-spravnym-bytovym-osvetlenim" "art" => string(34) "udrzujte-oblecenie-v-satniku-ciste" ) 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(0) protected _uri => string(28) "inspiracie(/(<cat>(/<art>)))" protected _regex => array(2) ( "cat" => string(10) "[a-z0-9-]*" "art" => string(10) "[a-z0-9-]*" ) protected _defaults => array(2) ( "controller" => string(12) "Inspirations" "action" => string(5) "index" ) protected _route_regex => string(71) "#^inspiracie(?:/(?:(?P<cat>[a-z0-9-]*)(?:/(?P<art>[a-z0-9-]*))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(12) "Inspirations" protected _action => string(5) "index" protected _uri => string(95) "inspiracie/rozziarte-si-zivot-so-spravnym-bytovym-osvetlenim/udrzujte-oblecenie-v-satniku-ciste" protected _external => bool FALSE protected _params => array(2) ( "cat" => string(49) "rozziarte-si-zivot-so-spravnym-bytovym-osvetlenim" "art" => string(34) "udrzujte-oblecenie-v-satniku-ciste" ) 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(0) protected _uri => string(28) "inspiracie(/(<cat>(/<art>)))" protected _regex => array(2) ( "cat" => string(10) "[a-z0-9-]*" "art" => string(10) "[a-z0-9-]*" ) protected _defaults => array(2) ( "controller" => string(12) "Inspirations" "action" => string(5) "index" ) protected _route_regex => string(71) "#^inspiracie(?:/(?:(?P<cat>[a-z0-9-]*)(?:/(?P<art>[a-z0-9-]*))?)?)?$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(12) "Inspirations" protected _action => string(5) "index" protected _uri => string(95) "inspiracie/rozziarte-si-zivot-so-spravnym-bytovym-osvetlenim/udrzujte-oblecenie-v-satniku-ciste" protected _external => bool FALSE protected _params => array(2) ( "cat" => string(49) "rozziarte-si-zivot-so-spravnym-bytovym-osvetlenim" "art" => string(34) "udrzujte-oblecenie-v-satniku-ciste" ) 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';