/media/shnoulle/data/webdev/master/application/models/QuestionCreate.php(124)
112 $isTitleValid = false; 113 for ($i = 0; $i <= 999; $i++) { 114 $this->title = 115 Question::getCodePrefix('question_code_prefix', $this->sid) . 116 str_pad((safecount($survey->baseQuestions) + $i), 3, '0', STR_PAD_LEFT); 117 if ($this->validate(['title'])) { 118 $isTitleValid = true; 119 break; 120 } 121 } 122 if (!$isTitleValid) { 123 $this->title = null; 124 throw new Exception('Failed to generate title for question'); 125 } 126 } 127 }
| #0 |
+
–
/media/shnoulle/data/webdev/master/application/models/QuestionCreate.php(40): QuestionCreate->assignTemporaryTitle() 35 $oQuestion = new QuestionCreate(); 36 $oQuestion->qid = 0; 37 $oQuestion->sid = $iSurveyId; 38 $oQuestion->gid = $gid; 39 40 $oQuestion->assignTemporaryTitle(); 41 42 $aQuestionData = [ 43 'type' => $questionType, 44 'other' => 'N', 45 'mandatory' => 'N', |
| #1 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/QuestionAdministrationController.php(2292): QuestionCreate::getInstance() 2287 App()->request->getParam('surveyId'); 2288 /** @var Question|null */ 2289 $oQuestion = Question::model()->findByPk($iQuestionId); 2290 2291 if (empty($oQuestion)) { 2292 $oQuestion = QuestionCreate::getInstance($iSurveyId, $sQuestionType, $questionThemeName); 2293 } 2294 2295 if ($sQuestionType != null) { 2296 $oQuestion->type = $sQuestionType; 2297 } |
| #2 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/QuestionAdministrationController.php(2610): QuestionAdministrationController->getQuestionObject() 2605 } 2606 if ($oQuestion->sid != $sid) { 2607 throw new CHttpException(400, gT("Invalid question id")); 2608 } 2609 } else { 2610 $oQuestion = $this->getQuestionObject(); 2611 $oQuestion->parent_qid = 0; // Unsure needed it, but we need it's a parent_qid=0 2612 } 2613 $oQuestion->title = $code; 2614 header('Content-Type: application/json'); 2615 if (!$oQuestion->validate(['title'])) { |
| #3 |
unknown(0): QuestionAdministrationController->actionCheckQuestionValidateTitle()
|
| #4 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(114): ReflectionMethod->invokeArgs() 109 elseif($param->isDefaultValueAvailable()) 110 $ps[]=$param->getDefaultValue(); 111 else 112 return false; 113 } 114 $method->invokeArgs($object,$ps); 115 return true; 116 } 117 } |
| #5 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal() 42 { 43 $methodName='action'.$this->getId(); 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 } |
| #6 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->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; |
| #7 |
+
–
/media/shnoulle/data/webdev/master/vendor/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(); |
| #8 |
+
–
/media/shnoulle/data/webdev/master/vendor/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); |
| #9 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run() 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 * |
| #10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->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))); |
| #11 |
+
–
/media/shnoulle/data/webdev/master/vendor/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. |
| #12 |
+
–
/media/shnoulle/data/webdev/master/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 /** |
| #13 |
+
–
/media/shnoulle/data/webdev/master/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 */ |