MODPATH/cache/classes/Kohana/Cache/File.php [ 470 ]
465 */
466 protected function _is_expired(SplFileInfo $file)
467 {
468 // Open the file and parse data
469 $created = $file->getMTime();
470 $data = $file->openFile("r");
471 $lifetime = (int) $data->fgets();
472
473 // If we're at the EOF at this point, corrupted!
474 if ($data->eof())
475 {
-
MODPATH/cache/classes/Kohana/Cache/File.php [ 470 ]
465 */ 466 protected function _is_expired(SplFileInfo $file) 467 { 468 // Open the file and parse data 469 $created = $file->getMTime(); 470 $data = $file->openFile("r"); 471 $lifetime = (int) $data->fgets(); 472 473 // If we're at the EOF at this point, corrupted! 474 if ($data->eof()) 475 { -
MODPATH/cache/classes/Kohana/Cache/File.php [ 144 ]
139 return $default; 140 } 141 else 142 { 143 // Test the expiry 144 if ($this->_is_expired($file)) 145 { 146 // Delete the file 147 $this->_delete_file($file, FALSE, TRUE); 148 return $default; 149 } -
APPPATH/classes/Model/Product/Category.php [ 69 ]
64 else 65 { 66 $cache_instance = Cache::instance(CACHE_DRIVER); 67 $cache_key = CP.'catalog_top_'.$current_category->id.Model_Esup::$postfix; 68 } 69 $result = $cache_instance->get($cache_key); 70 if ($result) 71 { 72 $data_source = $result; 73 } 74 if (empty($data_source)) -
APPPATH/views/category/show.php [ 11 ]
6 'category' => $category, 7 'feature_groups' => $feature_groups 8 )) ?> 9 <?php 10 echo ORM::factory('Product_Category') 11 ->get_catalog_html('left', $category, $open_category_ids); 12 ?> 13 </div> 14 <main class="body_right"> 15 <?php echo $breadcrumbs_html ?> 16 <div class="category_page_tabs_cont"> -
SYSPATH/classes/Kohana/View.php [ 62 ]
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 359 ]
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 } -
SYSPATH/classes/Kohana/View.php [ 236 ]
231 */ 232 public function __toString() 233 { 234 try 235 { 236 return $this->render(); 237 } 238 catch (Exception $e) 239 { 240 /** 241 * Display the exception message. -
APPPATH/views/_layouts/main.php [ 268 ]
263 <?php endif ?> 264 </div> 265 </div> 266 <div class="footer_down"> 267 <?php echo $header ?> 268 <?php echo $content ?> 269 </div> 270 <?php echo $footer ?> 271 272 273 <script type="text/javascript"> -
SYSPATH/classes/Kohana/View.php [ 62 ]
57 ob_start(); 58 59 try 60 { 61 // Load the view within the current scope 62 include $kohana_view_filename; 63 } 64 catch (Exception $e) 65 { 66 // Delete the output buffer 67 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 359 ]
354 { 355 throw new View_Exception('You must set the file to use within your view before rendering'); 356 } 357 358 // Combine local and global data and capture the output 359 return View::capture($this->_file, $this->_data); 360 } 361 362 } -
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ]
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49 -
SYSPATH/classes/Kohana/Controller.php [ 87 ]
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92 -
{PHP internal call}
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ]
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 ]
109 $orig_response = $response = Response::factory(['_protocol' => $request->protocol()]); 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/Kohana/Request.php [ 993 ]
988 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 989 ':uri' => $this->_uri, 990 ]); 991 } 992 993 return $this->_client->execute($this); 994 } 995 996 /** 997 * Returns whether this request is the initial request Kohana received. 998 * Can be used to test for sub requests. -
135 /** 136 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 137 * If no source is specified, the URI will be automatically detected. 138 */ 139 echo Request::factory(TRUE, [], FALSE) 140 ->execute() 141 ->send_headers(TRUE) 142 ->body(); 143 }