MODPATH/orm/classes/Kohana/ORM.php [ 1140 ]
1135 * @return Database_Result
1136 */
1137 public function find_all()
1138 {
1139 if ($this->_loaded)
1140 throw new Kohana_Exception('Method find_all() cannot be called on loaded objects');
1141
1142 if ( ! empty($this->_load_with))
1143 {
1144 foreach ($this->_load_with as $alias)
1145 {
-
MODPATH/esup/classes/Model/Esup/Common/Language.php [ 91 ]
86 $res[$this->_default['key']] = array( 87 'title' => $this->_default['title'], 88 'visible_name' => $this->_default['visible_name'], 89 ); 90 $languages = $this->where('active', '=', 1) 91 ->find_all(); 92 foreach ($languages as $key => $item) 93 { 94 $res[$item->key] = array( 95 'title' => $item->title, 96 'visible_name' => $item->visible_name
-
MODPATH/esup/classes/Model/Esup/Common/Language.php [ 78 ]
73 { 74 $data_source = $result; 75 } 76 if (empty($data_source)) 77 { 78 $data_source = $this->get_active_as_array(); 79 $cache_instance->set(CP.'orm_languages_active', $data_source); 80 } 81 return $data_source; 82 } 83
-
APPPATH/classes/Controller/Common.php [ 29 ]
24 /* Define active languages */ 25 $lang_instance = ORM::factory('Esup_Common_Language') 26 ->get_instance($this->request->param('lang')); 27 $this->lang = $lang_instance->get_lang(); 28 $this->postfix = $lang_instance->get_postfix(); 29 $this->languages = $lang_instance->get_active(); 30 /* Define language environment for root model */ 31 Model_Esup::$postfix = $this->postfix; 32 /* Define static text based on current language */ 33 $this->text = ORM::factory('Esup_Common_Text') 34 ->get_text();
-
APPPATH/classes/Controller/Common/Site.php [ 7 ]
2 3 class Controller_Common_Site extends Controller_Common { 4 5 public function before() 6 { 7 parent::before(); 8 $header_block = ORM::factory('Block') 9 ->get_block_by_type('header'); 10 $footer_block = ORM::factory('Block') 11 ->get_block_by_type('footer'); 12 $this->template->header->set('block', $header_block);
-
SYSPATH/classes/Kohana/Controller.php [ 69 ]
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{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.
-
DOCROOT/public/index.php [ 126 ]
121 /** 122 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 123 * If no source is specified, the URI will be automatically detected. 124 */ 125 echo Request::factory(TRUE, [], FALSE) 126 ->execute() 127 ->send_headers(TRUE) 128 ->body(); 129 }