MODPATH/cache/classes/Kohana/Cache/File.php [ 483 ]
478 $lifetime = (int) $data->fgets();
479
480 // If we're at the EOF at this point, corrupted!
481 if ($data->eof())
482 {
483 throw new Cache_Exception(__METHOD__ . ' corrupted cache file!');
484 }
485
486 //close file
487 $data = null;
488
-
MODPATH/cache/classes/Kohana/Cache/File.php [ 143 ]
138 return $default; 139 } 140 else 141 { 142 // Test the expiry 143 if ($this->_is_expired($file)) 144 { 145 // Delete the file 146 $this->_delete_file($file, FALSE, TRUE); 147 return $default; 148 }
-
APPPATH/classes/ORM.php [ 14 ]
9 */ 10 public function list_columns() 11 { 12 $cache_instance = Cache::instance(CACHE_DRIVER); 13 14 if ($table_structure = $cache_instance->get($this->_table_name . '_structure')) 15 { 16 return json_decode($table_structure, TRUE); 17 } 18 19 $table_structure = $this->_db->list_columns($this->_table_name);
-
MODPATH/orm/classes/Kohana/ORM.php [ 473 ]
468 $this->_table_columns = ORM::$_column_cache[$this->_object_name]; 469 } 470 else 471 { 472 // Grab column information from database 473 $this->_table_columns = $this->list_columns(); 474 475 // Load column cache 476 ORM::$_column_cache[$this->_object_name] = $this->_table_columns; 477 } 478 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 412 ]
407 { 408 $this->{$property} = $value; 409 } 410 411 // Load column information 412 $this->reload_columns(); 413 414 // Clear initial model state 415 $this->clear(); 416 417 // Create the behaviors classes
-
MODPATH/orm/classes/Kohana/ORM.php [ 270 ]
265 * 266 * @param mixed $id Parameter for find or object to load 267 */ 268 public function __construct($id = NULL) 269 { 270 $this->_initialize(); 271 272 // Invoke all behaviors 273 foreach ($this->_behaviors as $behavior) 274 { 275 if (( ! $behavior->on_construct($this, $id)) OR $this->_loaded)
-
MODPATH/orm/classes/Kohana/ORM.php [ 50 ]
45 public static function factory($model, $id = NULL) 46 { 47 // Set class name 48 $model = 'Model_'.$model; 49 50 return new $model($id); 51 } 52 53 /** 54 * "Has one" relationships 55 * @var array
-
MODPATH/orm/classes/Kohana/ORM.php [ 1872 ]
1867 { 1868 return $this->_related[$alias] = ORM::factory($this->_has_one[$alias]['model']); 1869 } 1870 elseif (isset($this->_belongs_to[$alias])) 1871 { 1872 return $this->_related[$alias] = ORM::factory($this->_belongs_to[$alias]['model']); 1873 } 1874 else 1875 { 1876 return FALSE; 1877 }
-
MODPATH/orm/classes/Kohana/ORM.php [ 658 ]
653 // Return related model that has already been fetched 654 return $this->_related[$column]; 655 } 656 elseif (isset($this->_belongs_to[$column])) 657 { 658 $model = $this->_related($column); 659 660 // Use this model's column and foreign model's primary key 661 $col = $model->_object_name.'.'.$model->_primary_key; 662 $val = $this->_object[$this->_belongs_to[$column]['foreign_key']]; 663
-
MODPATH/orm/classes/Kohana/ORM.php [ 632 ]
627 * @param string $column Column name 628 * @return mixed 629 */ 630 public function __get($column) 631 { 632 return $this->get($column); 633 } 634 635 /** 636 * Handles getting of column 637 * Override this method to add custom get behavior
-
MODPATH/esup/classes/Model/Esup.php [ 116 ]
111 } 112 113 /* Возвращает сслыку для внутренней страницы, либо на внешний ресурс */ 114 public function get_link($default = FALSE, $link_field = 'link') 115 { 116 if (isset($this->page) AND $this->page->loaded()) 117 { 118 return '/' . self::$lang . '/' . $this->page->link; 119 } 120 121 if (strpos($this->{$link_field}, 'http://') === 0 OR strpos($this->{$link_field}, 'https://') === 0)
-
APPPATH/views/_partial/header/menu_closure.php [ 16 ]
11 <?php 12 echo View::factory('_partial/header/menu_closure') 13 ->set('menu', $children); 14 ?> 15 <?php else: ?> 16 <a href="<?php echo $item->get_link() ?>" 17 class="uk-position-relative"><?php echo $item->get_prop('title') ?> 18 </a> 19 <?php endif ?> 20 </li> 21 <?php endforeach ?>
-
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/_partial/header/menu.php [ 12 ]
7 <?php if (count($children)): ?> 8 <li class="uk-margin-half-medium-right"> 9 <a href="#"><?php echo $item->get_prop('title') ?><span uk-icon="icon: chevron-down;"></span></a> 10 <?php 11 echo View::factory('_partial/header/menu_closure') 12 ->set('menu', $children); 13 ?> 14 </li> 15 <?php else: ?> 16 <li class="uk-margin-half-medium-right"> 17 <a href="<?php echo $item->get_link() ?>"><?php echo $item->get_prop('title') ?></a>
-
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/_partial/header.php [ 27 ]
22 </li> 23 <li class="uk-visible@l"> 24 <?php 25 if ( ! Fragment::load('header_menu', Date::HOUR)) { 26 echo View::factory('_partial/header/menu') 27 ->set('menu', $menu); 28 29 Fragment::save(); 30 } 31 ?> 32 </li>
-
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 [ 65 ]
60 const lang = '<?php echo $lang ?>'; 61 const token = '<?php echo Security::token() ?>'; 62 </script> 63 </head> 64 <body> 65 <?php echo $header ?> 66 <?php echo $content ?> 67 <?php echo $footer ?> 68 <?php echo $modals ?> 69 <?php 70 echo $assets->body_close->css();
-
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 }
-
APPPATH/classes/Controller/Common/Site.php [ 99 ]
94 95 public function after() 96 { 97 if ( ! $this->response->body()) 98 { 99 $this->response->body($this->template->render()); 100 } 101 102 parent::after(); 103 } 104
-
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 [ 94 ]
89 90 // Create a new instance of the controller 91 $controller = $class->newInstance($request, $response); 92 93 // Run the controller's execute() method 94 $response = $class->getMethod('execute')->invoke($controller); 95 96 if ( ! $response instanceof Response) 97 { 98 // Controller failed to return a Response. 99 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 [ 1000 ]
995 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', [ 996 ':uri' => $this->_uri, 997 ]); 998 } 999 1000 return $this->_client->execute($this); 1001 } 1002 1003 /** 1004 * Returns whether this request is the initial request Kohana received. 1005 * Can be used to test for sub requests.
-
/var/www/kudan.kz/data/www/kudan.kz/public/index.php [ 135 ]
130 /** 131 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 132 * If no source is specified, the URI will be automatically detected. 133 */ 134 echo Request::factory(TRUE, [], FALSE) 135 ->execute() 136 ->send_headers(TRUE) 137 ->body(); 138 }