/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/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 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/db/CDbCommand.php(415): CDbCommand->queryInternal("fetch", array(2), array()) 410 * @return mixed the first row (in terms of an array) of the query result, false if no result. 411 * @throws CException execution failed 412 */ 413 public function queryRow($fetchAssociative=true,$params=array()) 414 { 415 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 416 } 417 418 /** 419 * Executes the SQL statement and returns the value of the first column in the first row of data. 420 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/db/ar/CActiveRecord.php(1678): CDbCommand->queryRow() 1673 $criteria->select='1'; 1674 $criteria->limit=1; 1675 $this->applyScopes($criteria); 1676 1677 if(empty($criteria->with)) 1678 return $builder->createFindCommand($table,$criteria,$this->getTableAlias(false, false))->queryRow()!==false; 1679 else 1680 { 1681 $criteria->select='*'; 1682 $finder=$this->getActiveFinder($criteria->with); 1683 return $finder->count($criteria)>0; |
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/validators/CUniqueValidator.php(111): CActiveRecord->exists(CDbCriteria) 106 $valueParamName = CDbCriteria::PARAM_PREFIX.CDbCriteria::$paramCount++; 107 $criteria->addCondition($this->caseSensitive ? "{$tableAlias}.{$columnName}={$valueParamName}" : "LOWER({$tableAlias}.{$columnName})=LOWER({$valueParamName})"); 108 $criteria->params[$valueParamName] = $value; 109 110 if(!$object instanceof CActiveRecord || $object->isNewRecord || $object->tableName()!==$finder->tableName()) 111 $exists=$finder->exists($criteria); 112 else 113 { 114 $criteria->limit=2; 115 $objects=$finder->findAll($criteria); 116 $n=count($objects); |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/validators/CValidator.php(201): CUniqueValidator->validateAttribute(Question, "title") 196 else 197 $attributes=$this->attributes; 198 foreach($attributes as $attribute) 199 { 200 if(!$this->skipOnError || !$object->hasErrors($attribute)) 201 $this->validateAttribute($object,$attribute); 202 } 203 } 204 205 /** 206 * Returns the JavaScript needed for performing client-side validation. |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/base/CModel.php(159): CValidator->validate(Question, null) 154 if($clearErrors) 155 $this->clearErrors(); 156 if($this->beforeValidate()) 157 { 158 foreach($this->getValidators() as $validator) 159 $validator->validate($this,$attributes); 160 $this->afterValidate(); 161 return !$this->hasErrors(); 162 } 163 else 164 return false; |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/db/ar/CActiveRecord.php(810): CModel->validate(null) 805 * meaning all attributes that are loaded from DB will be saved. 806 * @return boolean whether the saving succeeds 807 */ 808 public function save($runValidation=true,$attributes=null) 809 { 810 if(!$runValidation || $this->validate($attributes)) 811 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 812 else 813 return false; 814 } 815 |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/application/controllers/admin/database.php(496): CActiveRecord->save() 491 // Let's give a new to code to the answer to save it, so user entries are not lost 492 $bAnswerSave = false; 493 494 while (!$bAnswerSave) { 495 $oSubQuestion->title = rand(11111, 99999); // If the random code already exist (very low probablilty), answer will not be save and a new code will be generated 496 if ($oSubQuestion->save()) { 497 $sError = '<strong>'.sprintf(gT('A code has been updated to %s.'), $oSubQuestion->title).'</strong><br/>'; 498 Yii::app()->setFlashMessage($sError, 'error'); 499 $bAnswerSave = true; 500 } 501 } |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/application/controllers/admin/database.php(124): database->actionSubQuestions(716875) 119 } 120 if ($sAction == "updateansweroptions" && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'update')) { 121 $this->actionUpdateAnswerOptions($this->iSurveyID); 122 } 123 if ($sAction == "updatesubquestions" && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'update')) { 124 $this->actionSubQuestions($this->iSurveyID); 125 } 126 if (in_array($sAction, array('insertquestion', 'copyquestion')) && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'create')) { 127 $this->actionInsertCopyQuestion($this->iSurveyID); 128 } 129 if ($sAction == "updatequestion" && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'update')) { |
#8 |
unknown(0): database->index()
|
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(database, array()) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(database, ReflectionMethod, array()) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array()) 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 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/web/CController.php(286): CController->runAction(database) 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 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/web/CController.php(265): CController->runActionWithFilters(database, array()) 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 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/application/controllers/AdminController.php(158): CController->run("database") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#15 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/web/CWebApplication.php(282): AdminController->run("database") 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))); |
#16 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/database") 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. |
#17 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/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 /** |
#18 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey_PG/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |