E:\IIS\website\vendor\yiisoft\yii\framework\db\CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\db\CDbCommand.php(433): CDbCommand->queryInternal("fetchColumn", 0, array()) 428 * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. 429 * @throws CException execution failed 430 */ 431 public function queryScalar($params=array()) 432 { 433 $result=$this->queryInternal('fetchColumn',0,$params); 434 if(is_resource($result) && get_resource_type($result)==='stream') 435 return stream_get_contents($result); 436 else 437 return $result; 438 } |
#1 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\db\ar\CActiveFinder.php(766): CDbCommand->queryScalar() 761 else 762 $query->selects=array("COUNT(*)"); 763 764 $query->orders=$query->groups=$query->havings=array(); 765 $command=$query->createCommand($this->_builder); 766 return $command->queryScalar(); 767 } 768 } 769 770 /** 771 * Calls {@link CActiveRecord::afterFind} of all the records. |
#2 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\db\ar\CActiveFinder.php(151): CJoinElement->count(LSDbCriteria) 146 147 $alias=$criteria->alias===null ? 't' : $criteria->alias; 148 $this->_joinTree->tableAlias=$alias; 149 $this->_joinTree->rawTableAlias=$this->_builder->getSchema()->quoteTableName($alias); 150 151 $n=$this->_joinTree->count($criteria); 152 $this->destroyJoinTree(); 153 return $n; 154 } 155 156 /** |
#3 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\db\ar\CActiveRecord.php(1613): CActiveFinder->count(LSDbCriteria) 1608 if(empty($criteria->with)) 1609 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1610 else 1611 { 1612 $finder=$this->getActiveFinder($criteria->with); 1613 return $finder->count($criteria); 1614 } 1615 } 1616 1617 /** 1618 * Finds the number of rows that have the specified attribute values. |
#4 |
+
–
E:\IIS\website\application\models\Survey.php(1686): CActiveRecord->count(LSDbCriteria) 1681 'pagination' => array( 1682 'pageSize' => $pageSize, 1683 ), 1684 )); 1685 1686 $dataProvider->setTotalItemCount($this->count($criteria)); 1687 1688 return $dataProvider; 1689 } 1690 1691 /** |
#5 |
+
–
E:\IIS\website\application\extensions\admin\survey\ListSurveysWidget\views\listSurveys.php(21): Survey->search() 16 <!-- Grid --> 17 <div class="row"> 18 <div class="col-lg-12 content-right"> 19 <?php 20 $surveyGrid = $this->widget('bootstrap.widgets.TbGridView', array( 21 'dataProvider' => $this->model->search(), 22 23 // Number of row per page selection 24 'id' => 'survey-grid', 25 'emptyText'=>gT('No surveys found.'), 26 'summaryText'=>gT('Displaying {start}-{end} of {count} result(s).').' '. sprintf(gT('%s rows per page'), |
#6 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CBaseController.php(130): require("E:\IIS\website\application\extensions\admin\survey\ListSurveysWi...") 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } 132 133 /** 134 * Creates a widget and initializes it. 135 * This method first creates the specified widget instance. |
#7 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal("E:\IIS\website\application\extensions\admin\survey\ListSurveysWi...", null, false) 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); |
#8 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\widgets\CWidget.php(244): CBaseController->renderFile("E:\IIS\website\application\extensions\admin\survey\ListSurveysWi...", null, false) 239 * @see getViewFile 240 */ 241 public function render($view,$data=null,$return=false) 242 { 243 if(($viewFile=$this->getViewFile($view))!==false) 244 return $this->renderFile($viewFile,$data,$return); 245 else 246 throw new CException(Yii::t('yii','{widget} cannot find the view "{view}".', 247 array('{widget}'=>get_class($this), '{view}'=>$view))); 248 } 249 } |
#9 |
+
–
E:\IIS\website\application\extensions\admin\survey\ListSurveysWidget\ListSurveysWidget.php(72): CWidget->render("listSurveys") 67 68 if ($this->bRenderSearchBox) { 69 $this->render('searchBox'); 70 } 71 72 $this->render('listSurveys'); 73 } 74 } |
#10 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CBaseController.php(182): ListSurveysWidget->run() 177 return ob_get_clean(); 178 } 179 else 180 { 181 $widget=$this->createWidget($className,$properties); 182 $widget->run(); 183 return $widget; 184 } 185 } 186 187 /** |
#11 |
+
–
E:\IIS\website\application\views\surveyAdministration\listSurveys_view.php(23): CBaseController->widget("ext.admin.survey.ListSurveysWidget.ListSurveysWidget", array("pageSize" => 10, "model" => Survey)) 18 <div class="tab-content"> 19 <div id="surveys" class="tab-pane active"> 20 <!-- Survey List widget --> 21 <?php $this->widget('ext.admin.survey.ListSurveysWidget.ListSurveysWidget', array( 22 'pageSize' => Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']), 23 'model' => $model 24 )); 25 ?> 26 </div> 27 28 <div id="surveygroups" class="tab-pane"> |
#12 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CBaseController.php(126): require("E:\IIS\website\application\views\surveyAdministration\listSurvey...") 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 } |
#13 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CBaseController.php(95): CBaseController->renderInternal("E:\IIS\website\application\views\surveyAdministration\listSurvey...", array("issuperadmin" => true, "model" => Survey, "groupModel" => SurveysGroups, "pageTitle" => "Survey list", ...), true) 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); |
#14 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CController.php(872): CBaseController->renderFile("E:\IIS\website\application\views\surveyAdministration\listSurvey...", array("issuperadmin" => true, "model" => Survey, "groupModel" => SurveysGroups, "pageTitle" => "Survey list", ...), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#15 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CController.php(785): CController->renderPartial("listSurveys_view", array("issuperadmin" => true, "model" => Survey, "groupModel" => SurveysGroups, "pageTitle" => "Survey list", ...), true) 780 */ 781 public function render($view,$data=null,$return=false) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 |
#16 |
+
–
E:\IIS\website\application\controllers\SurveyAdministrationController.php(248): CController->render("listSurveys_view", array("issuperadmin" => true, "model" => Survey, "groupModel" => SurveysGroups, "pageTitle" => "Survey list", ...)) 243 // Return Button 244 $aData['fullpagebar']['returnbutton']['url'] = 'admin/index'; 245 $aData['fullpagebar']['returnbutton']['text'] = gT('Back'); 246 247 $this->aData = $aData; 248 $this->render('listSurveys_view', $aData); 249 } 250 251 /** 252 * Delete multiple survey 253 * |
#17 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\actions\CInlineAction.php(49): SurveyAdministrationController->actionListsurveys() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#18 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CController.php(308): CInlineAction->runWithParams(array("r" => "surveyAdministration/listsurveys", "Survey" => array("searched_value" => ""), "active" => "", "gsid" => "3", ...)) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#19 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\filters\CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#20 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#21 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array("postOnly + copy")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#22 |
+
–
E:\IIS\website\application\controllers\LSBaseController.php(145): CController->run("listsurveys") 140 $this->redirect(array('/admin/authentication/sa/login')); 141 } 142 } 143 } 144 145 parent::run($action); 146 } 147 148 /** 149 * Load and set session vars 150 * |
#23 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CWebApplication.php(282): LSBaseController->run("listsurveys") 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))); |
#24 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\web\CWebApplication.php(141): CWebApplication->runController("surveyAdministration/listsurveys") 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. |
#25 |
+
–
E:\IIS\website\vendor\yiisoft\yii\framework\base\CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#26 |
+
–
E:\IIS\website\index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |