/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(812)
800 } 801 802 if ($name == 'core') { 803 $questionTheme = self::model()->findByAttributes([], 'question_type=:question_type AND extends=:extends', ['question_type' => $type, 'extends' => '']); 804 } else { 805 $questionTheme = self::model()->findByAttributes([], 'name=:name AND question_type=:question_type', ['name' => $name, 'question_type' => $type]); 806 } 807 808 $answerColumnDefinition = ''; 809 if (isset($questionTheme['xml_path'])) { 810 $bOldEntityLoaderState = libxml_disable_entity_loader(true); 811 812 $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $questionTheme['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string 813 $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); 814 if (isset($oQuestionConfig->metadata->answercolumndefinition)) { 815 // TODO: Check json_last_error. 816 $answerColumnDefinition = json_decode(json_encode($oQuestionConfig->metadata->answercolumndefinition), true)[0]; 817 } 818 819 libxml_disable_entity_loader($bOldEntityLoaderState); 820 } 821 822 $cacheMemo[$cacheKey] = $answerColumnDefinition; 823 return $answerColumnDefinition; 824 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(812): file_get_contents("/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Socia...") 807 808 $answerColumnDefinition = ''; 809 if (isset($questionTheme['xml_path'])) { 810 $bOldEntityLoaderState = libxml_disable_entity_loader(true); 811 812 $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $questionTheme['xml_path'] . DIRECTORY_SEPARATOR . 'config.xml'); // @see: Now that entity loader is disabled, we can't use simplexml_load_file; so we must read the file with file_get_contents and convert it as a string 813 $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); 814 if (isset($oQuestionConfig->metadata->answercolumndefinition)) { 815 // TODO: Check json_last_error. 816 $answerColumnDefinition = json_decode(json_encode($oQuestionConfig->metadata->answercolumndefinition), true)[0]; 817 } |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/common_helper.php(1471): QuestionTheme::getAnswerColumnDefinition("Social-Value-Orientation", "L") 1466 $conditions = 'N'; 1467 $usedinconditions = 'N'; 1468 1469 // Check if answertable has custom setting for current question 1470 if (isset($arow['attribute']) && isset($arow['type']) && $arow['attribute'] == 'question_template') { 1471 $answerColumnDefinition = QuestionTheme::getAnswerColumnDefinition($arow['value'], $arow['type']); 1472 } 1473 1474 // Field identifier 1475 // GXQXSXA 1476 // G=Group Q=Question S=Subquestion A=Answer Option |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/frontend_helper.php(693): createFieldMap(Survey, "full", true, false, ...) 688 689 if ($thissurvey['anonymized'] == "N") { 690 $_SESSION['survey_' . $surveyid]['insertarray'][] = "token"; 691 } 692 693 $fieldmap = $_SESSION['survey_' . $surveyid]['fieldmap'] = createFieldMap($survey, 'full', true, false, $_SESSION['survey_' . $surveyid]['s_lang']); 694 695 // first call to initFieldArray 696 initFieldArray($surveyid, $fieldmap); 697 698 // Prefill questions/answers from command line params |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(1711): buildsurveysession("436344", true) 1706 } 1707 1708 private function setPreview() 1709 { 1710 $this->sSurveyMode = ($this->previewgrp) ? 'group' : 'question'; // Can be great to have a survey here … 1711 buildsurveysession($this->iSurveyid, true); // Preview part disable SurveyURLParameter , why ? Work without 1712 1713 /* Set steps for PHP notice */ 1714 $_SESSION[$this->LEMsessid]['prevstep'] = 2; 1715 $_SESSION[$this->LEMsessid]['maxstep'] = 0; 1716 $_SESSION[$this->LEMsessid]['step'] = 0; |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(215): SurveyRuntimeHelper->setPreview() 210 $this->saveAllIfNeeded(); 211 $this->saveSubmitIfNeeded(); 212 // TODO: move somewhere else 213 $this->setNotAnsweredAndNotValidated(); 214 } else { 215 $this->setPreview(); 216 } 217 $this->moveSubmitIfNeeded(); 218 $this->setGroup(); 219 $this->fixMaxStep(); 220 |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(604): SurveyRuntimeHelper->run("436344",
array("surveyid" => "436344", "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "tokenencryptionoptions" => "",
"template" => "vanilla", ...), "thisstep" => null, "tokensexist"
=> 0, ...)) 599 unset($redata); 600 $redata = compact(array_keys(get_defined_vars())); 601 Yii::import('application.helpers.SurveyRuntimeHelper'); 602 $tmp = new SurveyRuntimeHelper(); 603 // try { 604 $tmp->run($surveyid, $redata); 605 // } catch (WrongTemplateVersionException $ex) { 606 // echo $ex->getMessage(); 607 // } 608 } 609 |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(26): index->action() 21 public $oTemplate; 22 23 public function run() 24 { 25 useFirebug(); 26 $this->action(); 27 } 28 29 public function action() 30 { 31 global $surveyid; |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/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. |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): CAction->runWithParams(array("action" => "previewquestion", "sid" => "436344", "gid" => "387", "qid" => "5626")) 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; |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(index) 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(); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(index, 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); |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/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))); |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/action/previewquestion/sid/436344/gid/387/qid/5626") 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. |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/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 /** |
#14 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(182): CApplication->run() 177 require_once APPPATH . 'core/LSYii_Application' . EXT; 178 179 $config = require_once(APPPATH . 'config/internal' . EXT); 180 181 Yii::$enableIncludePath = false; 182 Yii::createApplication('LSYii_Application', $config)->run(); 183 184 /* End of file index.php */ 185 /* Location: ./index.php */ |