/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(682)
670 { 671 $criteria = new CDbCriteria(); 672 // $criteria->condition = 'extends = :extends'; 673 $criteria->addCondition('visible = :visible', 'AND'); 674 $criteria->params = [':visible' => 'Y']; 675 676 $baseQuestions = self::model()->query($criteria, true, false); 677 678 $bOldEntityLoaderState = libxml_disable_entity_loader(true); 679 $baseQuestionsModified = []; 680 foreach ($baseQuestions as $baseQuestion) { 681 //TODO: should be moved into DB column (question_theme_settings table) 682 $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['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 683 $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); 684 $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); 685 $showAsQuestionType = $questionEngineData['show_as_question_type']; 686 687 // if an extended Question should not be shown as a selectable questiontype skip it 688 if (!empty($baseQuestion['extends'] && !$showAsQuestionType)) { 689 continue; 690 } 691 692 // language settings 693 $baseQuestion['title'] = gT($baseQuestion['title'], "html"); 694 $baseQuestion['group'] = gT($baseQuestion['group'], "html");
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/QuestionTheme.php(682): file_get_contents("/mnt/data/shnoulle/nginx/www/master/upload/themes/question/Socia...") 677 678 $bOldEntityLoaderState = libxml_disable_entity_loader(true); 679 $baseQuestionsModified = []; 680 foreach ($baseQuestions as $baseQuestion) { 681 //TODO: should be moved into DB column (question_theme_settings table) 682 $sQuestionConfigFile = file_get_contents(App()->getConfig('rootdir') . DIRECTORY_SEPARATOR . $baseQuestion['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 683 $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); 684 $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); 685 $showAsQuestionType = $questionEngineData['show_as_question_type']; 686 687 // if an extended Question should not be shown as a selectable questiontype skip it |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(190): QuestionTheme::findAllQuestionMetaDataForSelector() 185 $this->aData['questionbar']['buttons']['view'] = true; 186 $this->aData['sidemenu']['landOnSideMenuTab'] = 'structure'; 187 $this->aData['title_bar']['title'] = 188 $question->survey->currentLanguageSettings->surveyls_title 189 . " (" . gT("ID") . ":" . $question->sid . ")"; 190 $this->aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector(); 191 $advancedSettings = $this->getAdvancedOptions($question->qid, $question->type, $questionTemplate); 192 // Remove general settings from this array. 193 unset($advancedSettings['Attribute']); 194 195 // Add <input> with JSON as value, used by JavaScript. |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(146): QuestionAdministrationController->renderFormAux(Question) 141 'qid' => $question->qid, 142 'landOnSideMenuTab' => 'structure' 143 ] 144 ); 145 $this->aData['tabOverviewEditor'] = $tabOverviewEditor; 146 $this->renderFormAux($question); 147 } 148 149 /** 150 * Helper function to render form. 151 * Used by create and edit actions. |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/QuestionAdministrationController.php(68): QuestionAdministrationController->actionEdit(5626) 63 * 64 * @throws CException 65 */ 66 public function actionView($surveyid, $gid = null, $qid = null, $landOnSideMenuTab = 'structure') 67 { 68 $this->actionEdit($qid); 69 } 70 71 /** 72 * Show form to create new question. 73 * |
#4 |
unknown(0): QuestionAdministrationController->actionView("436344", "387", "5626", "structure")
|
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(QuestionAdministrationController, array("436344", "387", "5626", "structure")) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(QuestionAdministrationController,
ReflectionMethod, array("surveyid" => "436344", "gid" => "387",
"qid" => "5626")) 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 } |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): CInlineAction->runWithParams(array("surveyid" => "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; |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(CInlineAction) 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(); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, 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); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/LSBaseController.php(160): CController->run("view") 155 $this->redirect(array('/admin/authentication/sa/login')); 156 } 157 } 158 } 159 160 parent::run($action); 161 } 162 163 /** 164 * Load and set session vars 165 * |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): LSBaseController->run("view") 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("questionAdministration/view") 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 */ |