/home/levitr01/mebeos.ru/www/protected/extensions/DGSphinxSearch/DGSphinxSearch.php(466)
454 455 if ($this->enableResultTrace) { 456 Yii::trace("Query '$query' is performed for index '$index'", 'CEXT.DGSphinxSearch.doSearch'); 457 } 458 459 if ($this->enableProfiling) { 460 Yii::beginProfile("Search query: '{$query}' in index: '{$index}'", 'CEXT.DGSphinxSearch.doSearch'); 461 } 462 463 $res = $this->client->query($query, $index, $comment); 464 465 if ($this->getLastError()) { 466 throw new DGSphinxSearchException($this->getLastError()); 467 } 468 469 if ($this->enableProfiling) { 470 Yii::endProfile("Search query: '{$query}' in index: '{$index}'", 'CEXT.DGSphinxSearch.doSearch'); 471 } 472 473 if ($this->enableResultTrace) { 474 Yii::trace("Query result: " . substr(print_r($res, true), 500), 'CEXT.DGSphinxSearch.doSearch'); 475 } 476 477 if (!isset($res['matches'])) { 478 $res['matches'] = array();
#0 |
+
–
/home/levitr01/mebeos.ru/www/protected/extensions/DGSphinxSearch/DGSphinxSearch.php(189): DGSphinxSearch->doSearch("index_mebeos_articles", "Матрасы с независимым пружинным бл...", "") 184 * @param string $index 185 * @param string $comment 186 * @return array 187 */ 188 public function query($query, $index = '*', $comment = '') { 189 return $this->doSearch($index, $query, $comment); 190 } 191 192 /** 193 * Экранирует строку 194 * @param type $string |
#1 |
+
–
/home/levitr01/mebeos.ru/www/protected/models/ArticlesSearchForm.php(87): DGSphinxSearch->query("Матрасы с независимым пружинным бл...", "index_mebeos_articles") 82 $search->setArrayResult(false); 83 $search->setMatchMode(SPH_MATCH_EXTENDED2); 84 $search->limit($offset * $pages->pageSize, $pages->pageSize); 85 $search->orderby('id DESC'); 86 $query = $search->escapeString($this->text); 87 $result = $search->query($query, 'index_mebeos_articles'); 88 89 $articles = array(); 90 91 if ($result !== false && $result['total_found']) { 92 $ids = array_keys($result['matches']); |
#2 |
+
–
/home/levitr01/mebeos.ru/www/protected/controllers/SiteController.php(166): ArticlesSearchForm->getArticlesByText(CPagination) 161 } elseif (!empty($articlesSearchForm->text)) { 162 $pages = new CPagination(); 163 $pages->pageSize = Yii::app()->params['pages']['articles']; 164 $pages->applyLimit($criteria); 165 166 $render['articles'] = $articlesSearchForm->getArticlesByText($pages); 167 $render['pages'] = $pages; 168 } else { 169 $criteria->condition = 'is_published = ' . Articles::ARTILE_PUBLISHED; 170 171 $count = Articles::model()->count($criteria); |
#3 |
+
–
/home/levitr01/mebeos.ru/www/framework/web/actions/CInlineAction.php(50): SiteController->actionArticles() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#4 |
+
–
/home/levitr01/mebeos.ru/www/framework/web/CController.php(309): CInlineAction->runWithParams(array("text" => "Матрасы с независимым пружинным бл...")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#5 |
+
–
/home/levitr01/mebeos.ru/www/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#6 |
+
–
/home/levitr01/mebeos.ru/www/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#7 |
+
–
/home/levitr01/mebeos.ru/www/framework/web/CWebApplication.php(283): CController->run("articles") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/home/levitr01/mebeos.ru/www/framework/web/CWebApplication.php(142): CWebApplication->runController("site/articles") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/home/levitr01/mebeos.ru/www/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#10 |
+
–
/home/levitr01/mebeos.ru/www/index.php(97): CApplication->run() 92 '<!-- data_link_replace ' . '0.00' . ' -->' . $html . '<!-- data_link_replace ' . $time . ' -->' . $searchString, 93 $buffer)); 94 } 95 96 ob_start("callback"); 97 Yii::createWebApplication($config)->run(); // <--- Обычный (оригинальный запуск сайта) 98 ob_end_flush(); |