MODPATH/database/classes/database/mysqli.php [ 174 ]
169 {
170 // This benchmark is worthless
171 Profiler::delete($benchmark);
172 }
173
174 throw new Database_Exception(':error [ :query ]',
175 array(':error' => mysqli_error($this->_connection), ':query' => $sql),
176 mysqli_errno($this->_connection));
177 }
178
179 if (isset($benchmark))
-
MODPATH/dao/classes/kohana/dao.php [ 133 ] » Database_MySQLi->query()
128 $count = 0; 129 if ($isCount) { 130 $query = $db->__toString(); 131 132 $res = Database::instance()->query(Database::SELECT, 133 'select count(*) as counter from('.$query.') as table_counter')->current(); 134 135 $query = preg_replace('/order by .* (asc|desc)/i', '', $query); 136 $res = Database::instance()->query(Database::SELECT, 137 'select count(*) as counter from('.$query.') as table_counter')->current(); 138 $count = $res['counter'];
-
MODPATH/products/classes/model/products.php [ 400 ] » Kohana_DAO::pageQuery()
395 $model->order_by('products.add_date','desc'); 396 $model->order_by('products.number','desc'); 397 } 398 399 if (!empty($page) && !empty($per_page)) { 400 $result = DAO::pageQuery($model, $page, $per_page); 401 402 $result['data'] = self::format($result['data']); 403 $result['is_visual'] = 0; 404 foreach ($result['data'] as $p) { 405 if (!empty($p['material_is_visual'])) {
-
APPPATH/classes/boxes/category.php [ 27 ] » Model_Products::get()
22 if (!empty($category['products_type'])) { 23 $products = Model_Products::get(null, $page, $perPage, 24 null,null,null,null,null,$category['products_type'],$category['products_material_id'],@$_GET['sort']); 25 } else { 26 $products = Model_Products::get($cid, $page, $perPage, 27 null,null,null,null,null,null,null,@$_GET['sort']); 28 } 29 30 $subcats = array(); 31 if (!empty($products)) { 32 $subcats = Model_Categories::get($cid, true);
-
MODPATH/webpage/classes/boxes.php [ 117 ] » Boxes_Category->get()
112 if (!empty($data)) { 113 return $data; 114 } 115 } 116 117 $data = $this->get(); 118 119 if ($this->getFullCacheKey() != null && (!class_exists('Fotolia') || Fotolia::$isLoad)) { 120 Cache::instance($this->cacheName)->set( $this->getFullCacheKey(), $data); 121 } 122 if (isset($benchmark)) {
-
MODPATH/webpage/classes/controller/webpage.php [ 121 ] » Boxes->getData()
116 foreach ($this->boxes as $val) { 117 118 $lib = Boxes::factory('boxes/'.$val); 119 if (!empty($lib)) { 120 $lib->setController($this); 121 $this->addData($lib->getData()); 122 $this->addHeaders($lib->getHeaders()); 123 } 124 } 125 126 $initData = array(
-
MODPATH/webpage/classes/controller/webpage.php [ 164 ] » Controller_Webpage->parse()
159 160 echo $this->view; 161 } 162 163 public function action_index() { 164 $this->parse(); 165 } 166 167 public function beforeData() {} 168 public function afterData() { 169
-
{PHP internal call} » Controller_Webpage->action_index()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke()
113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request()
59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute()
1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
MODPATH/webpage/classes/controller/filter.php [ 37 ] » Kohana_Request->execute()
32 } 33 34 ErrorF::get404(); 35 } 36 37 $html = Request::factory($pageStr.$link.$amp)->execute(); 38 $this->request->response = $html; 39 echo $html; 40 } 41 42 public function action_index() {
-
{PHP internal call} » Controller_Filter->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 103 ] » ReflectionMethod->invoke()
98 } 99 100 // Create a new instance of the controller 101 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 102 103 $class->getMethod('before')->invoke($controller); 104 105 // Determine the action to use 106 $action = $request->action(); 107 108 $params = $request->param();
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request()
59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute()
1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 119 ] » Kohana_Request->execute()
114 define('PROTOCOL', 'https'); 115 define('RECAPTCHA', '6LfUje8UAAAAAJt50zqvSrBNG5Zoud2gVtE_RNRk'); 116 define('RECAPTCHAS', '6LfUje8UAAAAAAOOrWSp8hrfOoUb5d7xc1uH-2TL'); 117 118 Theme::createMinCss(); 119 echo $req->execute()->send_headers()->body(); 120 121 122 123 124