/media/shnoulle/data/webdev/master/application/models/Survey.php(635)
623 return $this; 624 } 625 626 627 /** 628 * Returns additional languages formatted into a string 629 * 630 * @access public 631 * @return array 632 */ 633 public function getAdditionalLanguages() 634 { 635 $sLanguages = trim($this->additional_languages); 636 if ($sLanguages != '') { 637 return explode(' ', $sLanguages); 638 } else { 639 return array(); 640 } 641 } 642 643 /** 644 * Returns all languages array 645 * 646 * @access public 647 * @return array
#0 |
+
–
/media/shnoulle/data/webdev/master/application/models/Survey.php(635): trim(null) 630 * @access public 631 * @return array 632 */ 633 public function getAdditionalLanguages() 634 { 635 $sLanguages = trim($this->additional_languages); 636 if ($sLanguages != '') { 637 return explode(' ', $sLanguages); 638 } else { 639 return array(); 640 } |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/models/Survey.php(651): Survey->getAdditionalLanguages() 646 * @access public 647 * @return array 648 */ 649 public function getAllLanguages() 650 { 651 $sLanguages = self::getAdditionalLanguages(); 652 array_unshift($sLanguages, $this->language); 653 return $sLanguages; 654 } 655 656 /** |
#2 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/base/CComponent.php(111): Survey->getAllLanguages() 106 */ 107 public function __get($name) 108 { 109 $getter='get'.$name; 110 if(method_exists($this,$getter)) 111 return $this->$getter(); 112 elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name)) 113 { 114 // duplicating getEventHandlers() here for performance 115 $name=strtolower($name); 116 if(!isset($this->_e[$name])) |
#3 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(145): CComponent->__get("allLanguages") 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** 149 * PHP setter magic method. 150 * This method is overridden so that AR attributes can be accessed like properties. |
#4 |
+
–
/media/shnoulle/data/webdev/master/application/models/services/QuestionAttributeFetcher.php(101): CActiveRecord->__get("allLanguages") 096 } else { 097 $attributeValues = $questionAttributeHelper->getUserDefaultsForQuestionType($this->question->type); 098 } 099 100 // Fill attributes with values 101 $languages = is_null($language) ? $survey->allLanguages : [$language]; 102 $attributesWithValues = $questionAttributeHelper->fillAttributesWithValues($attributeDefinitions, $attributeValues, $languages); 103 104 return $attributesWithValues; 105 } 106 |
#5 |
+
–
/media/shnoulle/data/webdev/master/application/models/services/QuestionAttributeHelper.php(217): LimeSurvey\Models\Services\QuestionAttributeFetcher->populateValues(array("random_group"
=> array("name" => "random_group", "caption" => "Randomization
group name", "inputtype" => "text", "options" => null, ...),
"em_validation_q" => array("name" => "em_validation_q", "caption"
=> "Question validation equation", "inputtype" => "textarea",
"options" => null, ...), "em_validation_q_tip" => array("name"
=> "em_validation_q_tip", "caption" => "Question validation tip",
"inputtype" => "textarea", "options" => null, ...), "hide_tip"
=> array("name" => "hide_tip", "caption" => "Hide tip",
"inputtype" => "switch", "options" => array("No", "Yes"), ...),
...), null) 212 if (!empty($questionThemeOverride)) { 213 $questionAttributeFetcher->setTheme($questionThemeOverride); 214 } 215 216 $questionAttributeDefinitions = $questionAttributeFetcher->fetch(); 217 $questionAttributesWithValues = $questionAttributeFetcher->populateValues($questionAttributeDefinitions, $language); 218 219 return $questionAttributesWithValues; 220 } 221 222 /** |
#6 |
+
–
/media/shnoulle/data/webdev/master/application/models/Question.php(352): LimeSurvey\Models\Services\QuestionAttributeHelper->getQuestionAttributesWithValues(Question, null, null, true) 347 * @return array 348 */ 349 public function getAdvancedSettingsWithValues($sLanguage = null, $sQuestionThemeOverride = null) 350 { 351 $questionAttributeHelper = new LimeSurvey\Models\Services\QuestionAttributeHelper(); 352 $aAttributes = $questionAttributeHelper->getQuestionAttributesWithValues($this, $sLanguage, $sQuestionThemeOverride, true); 353 return $aAttributes; 354 } 355 356 /** 357 * Add custom attributes (if there are any custom attributes). It also removes all attributeNames where inputType is |
#7 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/QuestionAdministrationController.php(2477): Question->getAdvancedSettingsWithValues() 2472 { 2473 //here we get a Question object (also if question is new --> QuestionCreate) 2474 $oQuestion = $this->getQuestionObject($iQuestionId, $sQuestionType, null, $sQuestionTheme); 2475 2476 // Get the advanced settings array 2477 $advancedSettings = $oQuestion->getAdvancedSettingsWithValues(); 2478 2479 // Group the array in categories 2480 $questionAttributeHelper = new LimeSurvey\Models\Services\QuestionAttributeHelper(); 2481 $advancedSettings = $questionAttributeHelper->groupAttributesByCategory($advancedSettings); 2482 |
#8 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/QuestionAdministrationController.php(190): QuestionAdministrationController->getAdvancedOptions(1041, "T", "longfreetext") 185 $this->aData['sidemenu']['landOnSideMenuTab'] = 'structure'; 186 $this->aData['title_bar']['title'] = 187 $question->survey->currentLanguageSettings->surveyls_title 188 . " (" . gT("ID") . ":" . $question->sid . ")"; 189 $this->aData['aQuestionTypeList'] = QuestionTheme::findAllQuestionMetaDataForSelector(); 190 $advancedSettings = $this->getAdvancedOptions($question->qid, $question->type, $question->question_theme_name); 191 // Remove general settings from this array. 192 unset($advancedSettings['Attribute']); 193 194 // Add <input> with JSON as value, used by JavaScript. 195 $jsVariablesHtml = $this->renderPartial( |
#9 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/QuestionAdministrationController.php(150): QuestionAdministrationController->renderFormAux(Question) 145 'qid' => $question->qid, 146 'landOnSideMenuTab' => 'structure' 147 ] 148 ); 149 $this->aData['tabOverviewEditor'] = $tabOverviewEditor; 150 $this->renderFormAux($question); 151 } 152 153 /** 154 * Helper function to render form. 155 * Used by create and edit actions. |
#10 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/QuestionAdministrationController.php(70): QuestionAdministrationController->actionEdit(1041) 65 * 66 * @throws CException 67 */ 68 public function actionView($surveyid, $gid = null, $qid = null, $landOnSideMenuTab = 'structure') 69 { 70 $this->actionEdit($qid); 71 } 72 73 /** 74 * Show form to create new question. 75 * |
#11 |
unknown(0): QuestionAdministrationController->actionView("891546", "92", "1041", "structure")
|
#12 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(QuestionAdministrationController, array("891546", "92", "1041", "structure")) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#13 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(QuestionAdministrationController,
ReflectionMethod, array("r" => "questionAdministration/view",
"surveyid" => "891546", "gid" => "92", "qid" => "1041", ...))
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 } |
#14 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "questionAdministration/view", "surveyid" => "891546", "gid" => "92", "qid" => "1041", ...)) 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; |
#15 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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(); |
#16 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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); |
#17 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run("view") 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 * |
#18 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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))); |
#19 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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. |
#20 |
+
–
/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 /** |
#21 |
+
–
/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 */ |