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(23) "ORM::list_columns|brand"
1
array(9) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "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" ) "brand" => array(12) ( "type" => string(6) "string" "column_name" => string(5) "brand" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool TRUE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "255" "collation_name" => string(14) "utf8_slovak_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "UNI" "privileges" => string(31) "select,insert,update,references" ) "cuser" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "cuser" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 3 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "ctime" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "ctime" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 4 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "muser" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "muser" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 5 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "mtime" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(5) "mtime" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 6 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "f_no_refine" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(11) "f_no_refine" "column_default" => NULL "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "f_index_alias" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(13) "f_index_alias" "column_default" => NULL "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "display" => string(1) "1" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "f_suggestion_search" => array(13) ( "type" => string(3) "int" "min" => string(1) "0" "max" => string(3) "255" "column_name" => string(19) "f_suggestion_search" "column_default" => NULL "data_type" => string(16) "tinyint unsigned" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(1) "1" "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 [ 748 ] » ORM::factory(arguments)
0
string(12) "Manufacturer"
743 $_SERVER['precache'][$cacheKey] = []; 744 } 745 if (!$_SERVER['precache'][$cacheKey]) { 746 $_SERVER['precache'][$cacheKey] = Cache::instance()->get($cacheKey); 747 if (!$_SERVER['precache'][$cacheKey]) { 748 $co = ORM::factory('Manufacturer'); 749 $manufacturers = []; 750 foreach($co->find_all()->as_array() AS $manufacturer){ 751 $manufacturers[$manufacturer->id] = [ 752 'id' => $manufacturer->id, 753 'name' => $manufacturer->brand,
-
APP_PATH/classes/App/Search.php [ 310 ] » Precache::get_manufacturer()
305 self::$filter[self::PRODUCT]['value'] = $product; 306 } 307 } 308 if ($found == false) { 309 // skusime to s vyrobcami 310 foreach (Precache::get_manufacturer() as $item) { 311 if ($item['sef'] == $v && $v != '') { 312 $found = true; 313 self::$filter[self::MANUFACTURER]['use'] = true; 314 self::$filter[self::MANUFACTURER]['value'][] = $item['id']; 315 self::$original_url[self::MANUFACTURER]['value'][] = $v;
-
{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(13) "nueva-textura" "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 => NULL 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(13) "nueva-textura" 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(13) "nueva-textura" "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 => NULL 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(13) "nueva-textura" 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 => NULL 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(13) "nueva-textura" 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 => NULL 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(13) "nueva-textura" 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';