/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/web/auth/CDbAuthManager.php(485): CDbCommand->queryRow() 480 { 481 $row=$this->db->createCommand() 482 ->select() 483 ->from($this->itemTable) 484 ->where('name=:name', array(':name'=>$name)) 485 ->queryRow(); 486 487 if($row!==false) 488 { 489 if(($data=@unserialize($row['data']))===false) 490 $data=null; |
| #2 |
+
–
/var/www/hosts/framework/web/auth/CDbAuthManager.php(93): CDbAuthManager->getAuthItem() 88 * @return boolean whether the operations can be performed by the user. 89 * @since 1.1.3 90 */ 91 protected function checkAccessRecursive($itemName,$userId,$params,$assignments) 92 { 93 if(($item=$this->getAuthItem($itemName))===null) 94 return false; 95 Yii::trace('Checking permission "'.$item->getName().'"','system.web.auth.CDbAuthManager'); 96 if(!isset($params['userId'])) 97 $params['userId'] = $userId; 98 if($this->executeBizRule($item->getBizRule(),$params,$item->getData())) |
| #3 |
+
–
/var/www/hosts/framework/web/auth/CDbAuthManager.php(75): CDbAuthManager->checkAccessRecursive() 70 * @return boolean whether the operations can be performed by the user. 71 */ 72 public function checkAccess($itemName,$userId,$params=array()) 73 { 74 $assignments=$this->getAuthAssignments($userId); 75 return $this->checkAccessRecursive($itemName,$userId,$params,$assignments); 76 } 77 78 /** 79 * Performs access check for the specified user. 80 * This method is internally called by {@link checkAccess}. |
| #4 |
+
–
/var/www/hosts/framework/web/auth/CWebUser.php(815): CDbAuthManager->checkAccess() 810 public function checkAccess($operation,$params=array(),$allowCaching=true) 811 { 812 if($allowCaching && $params===array() && isset($this->_access[$operation])) 813 return $this->_access[$operation]; 814 815 $access=Yii::app()->getAuthManager()->checkAccess($operation,$this->getId(),$params); 816 if($allowCaching && $params===array()) 817 $this->_access[$operation]=$access; 818 819 return $access; 820 } |
| #5 |
+
–
/var/www/hosts/lk.usoft.ru/protected/components/AccessBehavior.php(47): CWebUser->checkAccess() 42 $criteria->compare($alias . $this->deleted_field, 0); 43 } 44 // unpublished 45 if ($this->publish_field) { 46 $rule = get_class($model); // News and banners 47 if (!Yii::app()->user->checkAccess($rule . '.unpublished')) { 48 $criteria->compare($alias . $this->publish_field, 1); 49 } 50 } 51 52 // role |
| #6 |
+
–
/var/www/hosts/framework/base/CComponent.php(261): AccessBehavior->isAccess() 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
| #7 |
+
–
/var/www/hosts/framework/db/ar/CActiveRecord.php(227): CComponent->__call() 222 { 223 $this->getDbCriteria()->mergeWith($scopes[$name]); 224 return $this; 225 } 226 227 return parent::__call($name,$parameters); 228 } 229 230 /** 231 * Returns the related record(s). 232 * This method will return the related record(s) of the current record. |
| #8 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/attendance/components/ServiceByIdWidget.php(43): CActiveRecord->__call() 38 39 )); 40 41 $criteria = array('limit' => $this->limit, 'condition' => 'pid = 0'); 42 43 $models = $service_instance->isAccess()->isPoolAccess()->findAllByPk($this->ids); 44 if (!empty($models)) { 45 $this->render($this->view, array( 46 'models' => $models, 47 'show_text' => $this->show_text, 48 )); |
| #9 |
+
–
/var/www/hosts/framework/web/CBaseController.php(173): ServiceByIdWidget->run() 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 178 /** |
| #10 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/beo/views/expertbank/questionDetails.php(83): CBaseController->widget() 78 </a> 79 </div> 80 81 <?php 82 if(isset($serviceElements) and !empty($serviceElements)){ 83 Yii::app()->controller->widget('application.modules.attendance.components.ServiceByIdWidget', array('ids' => $serviceElements)); 84 } 85 ?> 86 87 <?php $this->widget('news.components.NewsTop5Widget');?> 88 </div> |
| #11 |
+
–
/var/www/hosts/framework/web/CBaseController.php(126): require("/var/www/hosts/lk.usoft.ru/protected/modules/beo/views/expertban...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
| #12 |
+
–
/var/www/hosts/framework/web/CBaseController.php(95): CBaseController->renderInternal() 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
| #13 |
+
–
/var/www/hosts/framework/web/CController.php(874): CBaseController->renderFile() 869 */ 870 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 871 { 872 if(($viewFile=$this->getViewFile($view))!==false) 873 { 874 $output=$this->renderFile($viewFile,$data,true); 875 if($processOutput) 876 $output=$this->processOutput($output); 877 if($return) 878 return $output; 879 else |
| #14 |
+
–
/var/www/hosts/framework/web/CController.php(787): CController->renderPartial() 782 */ 783 public function render($view,$data=null,$return=false) 784 { 785 if($this->beforeRender($view)) 786 { 787 $output=$this->renderPartial($view,$data,true); 788 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 789 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 790 791 $this->afterRender($view,$output); 792 |
| #15 |
+
–
/var/www/hosts/lk.usoft.ru/protected/fcomponents/Controller.php(390): CController->render() 385 echo $this->externalTemplate($content); 386 return true; 387 } 388 } else { 389 390 return parent::render($view, $data, $return); // TODO: Change the autogenerated stub 391 } 392 } 393 394 } |
| #16 |
+
–
/var/www/hosts/lk.usoft.ru/protected/modules/beo/controllers/ExpertbankController.php(196): Controller->render() 191 'activeElement' => $id, 192 'serviceElements' => $serviceElements, 193 'pageInQuery' => $pageInQuery, 194 'tags' => $modelBankQuestion->bq_tags, 195 'also' => Tag::findAlso($modelBankQuestion->bq_tags, $modelBankQuestion->id, 'blk'), 196 'modelSearch' => $modelSearch 197 )); 198 199 } else { 200 201 $this->render('expertBankNew', array( |
| #17 |
+
–
/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 } |
| #18 |
+
–
/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 } |
| #19 |
+
–
/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 } |
| #20 |
+
–
/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 /** |
| #21 |
+
–
/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 } |
| #22 |
+
–
/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))); |
| #23 |
+
–
/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. |
| #24 |
+
–
/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 /** |
| #25 |
+
–
/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(); |