/var/www/hosts/framework/db/CDbCommand.php(548)
536 { 537 if($this->_connection->enableProfiling) 538 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 539 540 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 541 $message=$e->getMessage(); 542 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 543 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 544 545 if(YII_DEBUG) 546 $message.='. The SQL statement executed was: '.$this->getText().$par; 547 548 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 549 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 550 } 551 } 552 553 /** 554 * Builds a SQL SELECT statement from the given query specification. 555 * @param array $query the query specification in name-value pairs. The following 556 * query options are supported: {@link select}, {@link distinct}, {@link from}, 557 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 558 * {@link limit}, {@link offset} and {@link union}. 559 * @throws CDbException if "from" key is not present in given query parameter 560 * @return string the SQL statement
| #0 |
+
–
/var/www/hosts/framework/db/CDbCommand.php(420): CDbCommand->queryInternal() 415 * @return mixed the first row (in terms of an array) of the query result, false if no result. 416 * @throws CException execution failed 417 */ 418 public function queryRow($fetchAssociative=true,$params=array()) 419 { 420 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 421 } 422 423 /** 424 * Executes the SQL statement and returns the value of the first column in the first row of data. 425 * This is a convenient method of {@link query} when only a single scalar |
| #1 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(1352): CDbCommand->queryRow() 1347 if(empty($criteria->with)) 1348 { 1349 if(!$all) 1350 $criteria->limit=1; 1351 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria,$this->getTableAlias()); 1352 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1353 } 1354 else 1355 { 1356 $finder=$this->getActiveFinder($criteria->with); 1357 return $finder->query($criteria,$all); |
| #2 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(1457): CActiveRecord->query() 1452 */ 1453 public function find($condition='',$params=array()) 1454 { 1455 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1456 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1457 return $this->query($criteria); 1458 } 1459 1460 /** 1461 * Finds all active records satisfying the specified condition. 1462 * See {@link find()} for detailed explanation about $condition and $params. |
| #3 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/navigator/components/pageTree.php(58): CActiveRecord->find() 53 $pagePid = 0; 54 $i = 0; 55 $REQ = is_array($REQ) ? $REQ : array($REQ); 56 foreach ($REQ as $url) { 57 58 $modelPage = Pages::model()->find('page_url=:page_url AND page_pid=:page_pid', array('page_url' => $url, 'page_pid' => $pagePid)); 59 60 if ($modelPage) { 61 62 $lnk .= '/' . $modelPage->page_url; 63 $bread_nuts[$i] = self::breadItem($lnk, $modelPage->page_title, $modelPage->page_type); |
| #4 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/navigator/NavigatorModule.php(58): pageTree::getBreadcrumbs() 53 * @return array|bool 54 */ 55 public function getBreadcrumbs() 56 { 57 if ($this->_bread === false) { 58 $this->_bread = pageTree::getBreadcrumbs($this->REQ); 59 } 60 return $this->_bread; 61 } 62 63 public function addBreadItem($link, $title) |
| #5 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/navigator/NavigatorModule.php(75): NavigatorModule->getBreadcrumbs() 70 $this->_bread[] = pageTree::breadItem($last_link . $link, $title); 71 } 72 73 public function delLastBreadItem() 74 { 75 $this->getBreadcrumbs(); 76 77 unset($this->_bread[count($this->_bread) - 1]); 78 if($this->_bread){ 79 $temp = $this->_bread; 80 $this->_bread = array(); |
| #6 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/beo/controllers/ExpertbankController.php(174): NavigatorModule->delLastBreadItem() 169 170 $title = $question_data['title']? $question_data['title'] : $question_data['theme']; 171 172 $navigator = Yii::app()->getModule('navigator'); 173 174 $navigator->delLastBreadItem(); 175 $navigator->addBreadItem('/bank_expert_opinions/view/'.$question_data['bank_id'], $expertbank->theme); 176 177 Yii::app()->controller->pageTitle = $title; 178 179 //if($question_data['title']){ |
| #7 |
+
–
/var/www/hosts/framework/web/actions/CInlineAction.php(49): ExpertbankController->actionView() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
| #8 |
+
–
/var/www/hosts/framework/web/CController.php(312): CInlineAction->runWithParams() 307 $priorAction=$this->_action; 308 $this->_action=$action; 309 310 if ($this->beforeAction($action)) { 311 312 if ($action->runWithParams($this->getActionParams())===false) { 313 $this->invalidActionParams($action); 314 } else { 315 $this->afterAction($action); 316 } 317 } |
| #9 |
+
–
/var/www/hosts/framework/web/filters/CFilterChain.php(133): CController->runAction() 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
| #10 |
+
–
/var/www/hosts/framework/web/CController.php(294): CFilterChain->run() 289 if(empty($filters)) { 290 $this->runAction($action); 291 } else { 292 $priorAction=$this->_action; 293 $this->_action=$action; 294 CFilterChain::create($this,$action,$filters)->run(); 295 $this->_action=$priorAction; 296 } 297 } 298 299 /** |
| #11 |
+
–
/var/www/hosts/framework/web/CController.php(268): CController->runActionWithFilters() 263 if (($parent=$this->getModule())===null) { 264 $parent=Yii::app(); 265 } 266 267 if ($parent->beforeControllerAction($this,$action)) { 268 $this->runActionWithFilters($action,$this->filters()); 269 $parent->afterControllerAction($this,$action); 270 } 271 } else { 272 $this->missingAction($actionID); 273 } |
| #12 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(282): CController->run() 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #13 |
+
–
/var/www/hosts/framework/web/CWebApplication.php(141): CWebApplication->runController() 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
| #14 |
+
–
/var/www/hosts/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
| #15 |
+
–
/var/www/hosts/lk.usoft.ru/index.php(58): CApplication->run() 53 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates'); 54 Yii::setPathOfAlias('core',INDEX_DIR.DIRECTORY_SEPARATOR.'core'); 55 require_once(__DIR__.DIRECTORY_SEPARATOR.'protected' .DIRECTORY_SEPARATOR.'vendors' .DIRECTORY_SEPARATOR.'Loader.php'); 56 Yii::registerAutoloader(array('Loader','systemMainAutoload')); 57 58 Yii::createWebApplication($config_yii_path)->run(); |