/mnt/data/shnoulle/nginx/www/permission/application/models/QuestionTheme.php(649)
637 { 638 $criteria = new CDbCriteria(); 639 // $criteria->condition = 'extends = :extends'; 640 $criteria->addCondition('visible = :visible', 'AND'); 641 $criteria->params = [':visible' => 'Y']; 642 643 $baseQuestions = self::model()->query($criteria, true, false); 644 645 $bOldEntityLoaderState = libxml_disable_entity_loader(true); 646 $baseQuestionsModified = []; 647 foreach ($baseQuestions as $baseQuestion) { 648 //TODO: should be moved into DB column (question_theme_settings table) 649 $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 650 $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); 651 $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); 652 $showAsQuestionType = $questionEngineData['show_as_question_type']; 653 654 // if an extended Question should not be shown as a selectable questiontype skip it 655 if (!empty($baseQuestion['extends'] && !$showAsQuestionType)) { 656 continue; 657 } 658 659 // language settings 660 $baseQuestion['title'] = gT($baseQuestion['title'], "html"); 661 $baseQuestion['group'] = gT($baseQuestion['group'], "html");
#0 |
+
–
/mnt/data/shnoulle/nginx/www/permission/application/models/QuestionTheme.php(649): file_get_contents("/mnt/data/shnoulle/nginx/www/permission/upload/themes/question/L...") 644 645 $bOldEntityLoaderState = libxml_disable_entity_loader(true); 646 $baseQuestionsModified = []; 647 foreach ($baseQuestions as $baseQuestion) { 648 //TODO: should be moved into DB column (question_theme_settings table) 649 $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 650 $oQuestionConfig = simplexml_load_string($sQuestionConfigFile); 651 $questionEngineData = json_decode(json_encode($oQuestionConfig->engine), true); 652 $showAsQuestionType = $questionEngineData['show_as_question_type']; 653 654 // if an extended Question should not be shown as a selectable questiontype skip it |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/permission/application/controllers/admin/useraction.php(721): QuestionTheme::findAllQuestionMetaDataForSelector() 716 717 $currentPreselectedQuestiontype = array_key_exists('preselectquestiontype', $aUserSettings) ? $aUserSettings['preselectquestiontype'] : App()->getConfig('preselectquestiontype'); 718 719 $aData['currentPreselectedQuestiontype'] = $currentPreselectedQuestiontype; 720 $aData['aUserSettings'] = $aUserSettings; 721 $aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector(); 722 $aData['selectedQuestion'] = QuestionTheme::findQuestionMetaData($currentPreselectedQuestiontype); 723 724 $aData['surveymenu_data']['model'] = $oSurveymenu; 725 $aData['surveymenuentry_data']['model'] = $oSurveymenuEntries; 726 // Render personal settings view |
#2 |
unknown(0): UserAction->personalsettings()
|
#3 |
+
–
/mnt/data/shnoulle/nginx/www/permission/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(UserAction, array()) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/permission/application/core/Survey_Common_Action.php(86): CAction->runWithParamsInternal(UserAction, ReflectionMethod, array("r" => "admin/user/sa/personalsettings", "sa" => "personalsettings")) 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 |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/permission/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/user/sa/personalsettings", "sa" => "personalsettings")) 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; |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/permission/framework/web/CController.php(286): CController->runAction(UserAction) 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(); |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/permission/framework/web/CController.php(265): CController->runActionWithFilters(UserAction, 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); |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/permission/application/controllers/AdminController.php(180): CController->run("user") 175 } 176 177 $this->runModuleController($action); 178 179 180 return parent::run($action); 181 } 182 183 /** 184 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 185 * |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/permission/framework/web/CWebApplication.php(282): AdminController->run("user") 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))); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/permission/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/user/sa/personalsettings") 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. |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/permission/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 /** |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/permission/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 */ |