/data/webdev/pgsql/third_party/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 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/framework/db/CDbCommand.php(433): CDbCommand->queryInternal() 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 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/framework/db/ar/CActiveRecord.php(1637): CDbCommand->queryScalar() 1632 $this->beforeCount(); 1633 $criteria=$builder->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1634 $this->applyScopes($criteria); 1635 1636 if(empty($criteria->with)) 1637 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1638 else 1639 { 1640 $finder=$this->getActiveFinder($criteria->with); 1641 return $finder->count($criteria); 1642 } |
#2 |
+
–
/data/webdev/pgsql/application/helpers/frontend_helper.php(1868): CActiveRecord->countByAttributes() 1863 1864 // Condition to count quota : 1865 // Answers are the same in quota + an answer is submitted at this time (bPostedField) 1866 // OR all questions is hidden (bAllHidden) 1867 $bAllHidden = QuestionAttribute::model() 1868 ->countByAttributes(array('qid' => $aQuotaQid), 'attribute=:attribute AND value=:value', array(':attribute' => 'hidden',':value' => 1)) == count($aQuotaQid); 1869 1870 if ($iMatchedAnswers == count($aQuotaFields) && ($bPostedField || $bAllHidden)) { 1871 if ($oQuota->qlimit == 0) { 1872 // Always add the quota if qlimit==0 1873 $aMatchedQuotas[] = $oQuota->viewArray; |
#3 |
+
–
/data/webdev/pgsql/application/helpers/expressions/em_manager_helper.php(5198): checkCompletedQuota() 5193 } 5194 } elseif ($this->surveyOptions['allowsave'] && isset($_SESSION[$this->sessid]['scid'])) { 5195 SavedControl::model()->updateByPk($_SESSION[$this->sessid]['scid'], ['saved_thisstep' => $_SESSION[$this->sessid]['step']]); 5196 } 5197 // Check Quotas 5198 $aQuotas = checkCompletedQuota($this->sid, true); 5199 if ($aQuotas && !empty($aQuotas)) { 5200 checkCompletedQuota($this->sid); // will create a page and quit: why not use it directly ? 5201 } else { 5202 if ($finished && ($oResponse->submitdate == null || Survey::model()->findByPk($this->sid)->alloweditaftercompletion == 'Y')) { 5203 /* Less update : just do what you need to to */ |
#4 |
+
–
/data/webdev/pgsql/application/helpers/expressions/em_manager_helper.php(4899): LimeExpressionManager->_UpdateValuesInDatabase() 4894 if (!$result['relevant'] || $result['hidden']) { 4895 // then skip this group 4896 continue; 4897 } else { 4898 // display new group 4899 $message .= $LEM->_UpdateValuesInDatabase(); 4900 $LEM->runtimeTimings[] = [__METHOD__, (microtime(true) - $now)]; 4901 $LEM->lastMoveResult = [ 4902 'finished' => false, 4903 'message' => $message, 4904 'gseq' => $LEM->currentGroupSeq, |
#5 |
+
–
/data/webdev/pgsql/application/helpers/SurveyRuntimeHelper.php(952): LimeExpressionManager::NavigateForwards() 947 $this->aMoveResult = false; // so display welcome page again 948 } 949 } 950 951 if ($this->sMove == "movenext") { 952 $this->aMoveResult = LimeExpressionManager::NavigateForwards(); 953 } 954 955 if (($this->sMove == 'movesubmit')) { 956 if ($this->sSurveyMode == 'survey') { 957 $this->aMoveResult = LimeExpressionManager::NavigateForwards(); |
#6 |
+
–
/data/webdev/pgsql/application/helpers/SurveyRuntimeHelper.php(647): SurveyRuntimeHelper->setMoveResult() 642 $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM 643 $this->initTotalAndMaxSteps(); 644 $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page 645 if ($this->sMove != 'clearcancel' && $this->sMove != 'confirmquota') { 646 $this->checkPrevStep(); // Check if prev step is set, else set it 647 $this->setMoveResult(); 648 $this->checkClearCancel(); 649 $this->setPrevStep(); 650 $this->checkIfFinished(); 651 $this->setStep(); 652 |
#7 |
+
–
/data/webdev/pgsql/application/helpers/SurveyRuntimeHelper.php(203): SurveyRuntimeHelper->initMove() 198 // 1: We check if token and/or captcha form shouls be shown 199 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 200 $this->showTokenOrCaptchaFormsIfNeeded(); 201 } 202 if (!$this->previewgrp && !$this->previewquestion) { 203 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 204 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 205 if (EmCacheHelper::useCache()) { 206 $this->aSurveyInfo['emcache'] = true; 207 } 208 $this->checkQuotas(); // check quotas (then the process will stop here) |
#8 |
+
–
/data/webdev/pgsql/application/controllers/survey/index.php(618): SurveyRuntimeHelper->run() 613 unset($redata); 614 $redata = compact(array_keys(get_defined_vars())); 615 Yii::import('application.helpers.SurveyRuntimeHelper'); 616 $tmp = new SurveyRuntimeHelper(); 617 // try { 618 $tmp->run($surveyid, $redata); 619 // } catch (WrongTemplateVersionException $ex) { 620 // echo $ex->getMessage(); 621 // } 622 } 623 |
#9 |
+
–
/data/webdev/pgsql/application/controllers/survey/index.php(22): Index->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 public function action() 26 { 27 global $surveyid; |
#10 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/framework/web/actions/CAction.php(76): Index->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#11 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams() 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; |
#12 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/framework/web/CController.php(286): CController->runAction() 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#13 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters() 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); |
#14 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/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))); |
#15 |
+
–
/data/webdev/pgsql/third_party/yiisoft/yii/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. |
#16 |
+
–
/data/webdev/pgsql/third_party/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 /** |
#17 |
+
–
/data/webdev/pgsql/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |