MODPATH/database/classes/Kohana/Database/PostgreSQL.php [ 178 ]
173 {
174 $result = pg_query($this->_connection, $sql);
175 }
176 catch (Exception $e)
177 {
178 throw new Database_Exception(':error [ :query ]',
179 array(':error' => pg_last_error($this->_connection), ':query' => $sql));
180 }
181
182 if ( ! $result)
183 throw new Database_Exception(':error [ :query ]',
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_PostgreSQL->query()
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/Model/Article.php [ 162 ] » Kohana_Database_Query->execute()
157 158 $rows = DB::query(Database::SELECT, "select t.id, t.name_$lang as \"name\" from fm_news_tags " 159 . "left join fm_tags t on (t.id=tag_id)" 160 . "where pub_id=:pub_id") 161 ->bind(':pub_id', $id) 162 ->execute() 163 ->as_array(); 164 165 166 foreach ($rows as $row) { 167 $result [] = array(
-
APPPATH/classes/Controller/Article.php [ 49 ] » Model_Article->get_tags()
44 $this->add_run_script("MoreArticles.init();"); 45 $this->add_run_script("Rating({$id});"); 46 $this->add_run_script("ViewsInc({$id});"); 47 $this->add_run_script('Article.init(); '); 48 49 $tags = $model->get_tags($id, $lang); 50 $other = $model_articles->get_other_articles($this->article['category_id'], $lang, $id); 51 $next = $model->get_next_article($id, $lang); 52 $prev = $model->get_prev_article($id, $lang); 53 $top = $model_articles->top_of_week($lang); 54 $related = $model->get_related_articles($id, $tags, $lang);
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Article->action_index()
79 [':uri' => $this->request->uri()] 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke()
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 ] » Kohana_Request_Client_Internal->execute_request()
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 ] » Kohana_Request_Client->execute()
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/index.php [ 138 ] » Kohana_Request->execute()
133 /** 134 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 135 * If no source is specified, the URI will be automatically detected. 136 */ 137 echo Request::factory(TRUE, array(), FALSE) 138 ->execute() 139 ->send_headers(TRUE) 140 ->body(); 141 }