/media/shnoulle/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(1797)
1785 if ($gseq == -1) { 1786 $sMessage = gT('Invalid group number for this survey: ') . $_gid; 1787 renderError('', $sMessage, $this->aSurveyInfo, $this->sTemplateViewPath); 1788 } 1789 1790 $this->aMoveResult = LimeExpressionManager::JumpTo($gseq + 1, 'group', false, true); 1791 if (is_null($this->aMoveResult)) { 1792 $sMessage = gT('This group contains no questions. You must add questions to this group before you can preview it'); 1793 renderError('', $sMessage, $this->aSurveyInfo, $this->sTemplateViewPath); 1794 } 1795 1796 $_SESSION[$this->LEMsessid]['step'] = $this->aMoveResult['seq'] + 1; // step is index base 1? 1797 $_SESSION[$this->LEMsessid]['hiddenSteps'] = $this->aMoveResult['hiddenSteps']; 1798 1799 $this->aStepInfo = LimeExpressionManager::GetStepIndexInfo($this->aMoveResult['seq']); 1800 1801 // #14595 1802 if (empty($this->aStepInfo)) { 1803 $sMessage = gT('This group is empty'); 1804 renderError('', $sMessage, $this->aSurveyInfo, $this->sTemplateViewPath); 1805 } 1806 } elseif ($this->previewquestion) { 1807 $_qid = sanitize_int($this->param['qid']); 1808 LimeExpressionManager::StartSurvey($this->iSurveyid, $this->sSurveyMode, $this->aSurveyOptions, true, $this->LEMdebugLevel); 1809 $qSec = LimeExpressionManager::GetQuestionSeq($_qid);
#0 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(217): SurveyRuntimeHelper->setPreview() 212 $this->saveAllIfNeeded(); 213 $this->saveSubmitIfNeeded(); 214 // TODO: move somewhere else 215 $this->setNotAnsweredAndNotValidated(); 216 } else { 217 $this->setPreview(); 218 } 219 $this->moveSubmitIfNeeded(); 220 $this->setGroup(); 221 $this->fixMaxStep(); 222 |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/survey/SurveyIndex.php(662): SurveyRuntimeHelper->run(948651,
array("surveyid" => 948651, "thissurvey" => array("sid" =>
948651, "owner_id" => 1, "gsid" => 1, "admin" =>
"Amministratore OpenSurvey.it", ...), "thisstep" => 0, "tokensexist"
=> 0, ...)) 657 unset($redata); 658 $redata = compact(array_keys(get_defined_vars())); 659 Yii::import('application.helpers.SurveyRuntimeHelper'); 660 $tmp = new SurveyRuntimeHelper(); 661 // try { 662 $tmp->run($surveyid, $redata); 663 // } catch (WrongTemplateVersionException $ex) { 664 // echo $ex->getMessage(); 665 // } 666 } 667 |
#2 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
#3 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->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. |
#4 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r"
=> "survey/index/action/previewgroup/sid/948651/gid/248/lang/en",
"action" => "previewgroup", "sid" => "948651", "gid" => "248",
...)) 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 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(SurveyIndex) 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 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(SurveyIndex, 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 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#8 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/action/previewgroup/sid/948651/gid/248/lang/en") 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. |
#9 |
+
–
/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 /** |
#10 |
+
–
/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 */ |