/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/admin/database.php(1446)
1434 } else { 1435 $validAttributes=\ls\helpers\questionHelper::getQuestionAttributesSettings(Yii::app()->request->getPost('type')); 1436 1437 // If the question has a custom template, we first check if it provides custom attributes 1438 $aAttributeValues['question_template'] = 'core'; 1439 if (isset($cqr)){ 1440 $oAttributeValues = QuestionAttribute::model()->find("qid=:qid and attribute='question_template'",array('qid'=>$cqr->qid)); 1441 if (is_object($oAttributeValues && $oAttributeValues->value)){ 1442 $aAttributeValues['question_template'] = $oAttributeValues->value; 1443 } 1444 } 1445 1446 $validAttributes = Question::getQuestionTemplateAttributes($validAttributes, $aAttributeValues, $cqr ); 1447 1448 $aLanguages=array_merge(array(Survey::model()->findByPk($iSurveyID)->language),Survey::model()->findByPk($iSurveyID)->additionalLanguages); 1449 /* Start to fix some param before save (TODO : use models directly ?) */ 1450 /* Date management */ 1451 Yii::app()->loadHelper('surveytranslator'); 1452 $formatdata=getDateFormatData(Yii::app()->session['dateformat']); 1453 $startdate = App()->request->getPost('startdate'); 1454 if (trim($startdate)=="") 1455 { 1456 $startdate=null; 1457 } 1458 else
#0 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/admin/database.php(115): database->actionInsertCopyQuestion("343761") 110 } 111 if ($sAction == "updatesubquestions" && Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent','update')){ 112 $this->actionSubQuestions($iSurveyID); 113 } 114 if (in_array($sAction, array('insertquestion', 'copyquestion')) && Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent','create')){ 115 $this->actionInsertCopyQuestion($iSurveyID); 116 } 117 if ($sAction == "updatequestion" && Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent','update')){ 118 $this->actionUpdateQuestion($iSurveyID); 119 } 120 if (($sAction == "updatesurveylocalesettings") && (Permission::model()->hasSurveyPermission($iSurveyID,'surveylocale','update') || Permission::model()->hasSurveyPermission($iSurveyID,'surveysettings','update'))){ |
#1 |
unknown(0): database->index("index")
|
#2 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(database, array("index")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#3 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(database, ReflectionMethod, array("sa" => "index")) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
#4 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "index")) 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; |
#5 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/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(); |
#6 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/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); |
#7 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/AdminController.php(179): CController->run("database") 174 $this->redirect(array('/admin/authentication/sa/login')); 175 } 176 } 177 } 178 179 return parent::run($action); 180 } 181 182 /** 183 * Routes all the actions to their respective places 184 * |
#8 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/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))); |
#9 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/database/sa/index") 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. |
#10 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/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 /** |
#11 |
+
–
/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/index.php(205): CApplication->run() 200 require_once APPPATH . 'core/LSYii_Application' . EXT; 201 202 $config = require_once(APPPATH . 'config/internal' . EXT); 203 204 Yii::$enableIncludePath = false; 205 Yii::createApplication('LSYii_Application', $config)->run(); 206 207 /* End of file index.php */ 208 /* Location: ./index.php */ |