/media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1481)
1469 // Full inheritance of the whole field 1470 $sAttribute = parent::__get($name); 1471 if ($sAttribute === 'inherit') { 1472 // NOTE: this is object recursive (if parent configuration field is set to inherit, 1473 // then it will lead to this method again.) 1474 $oParentConfiguration = $this->getParentConfiguration(); 1475 /** 1476 * We check if $oParentConfiguration is the same as $this because if it is, $oParentConfiguration->$name will 1477 * try to directly access the property instead of calling the magic method, and it will fail for dynamic properties. 1478 * @todo: Review the behavior of getParentConfiguration(). Returning the same object seems to be a bug. 1479 */ 1480 if ($oParentConfiguration !== $this) { 1481 $sAttribute = $oParentConfiguration->$name; 1482 } else { 1483 $sAttribute = $oParentConfiguration->getAttribute($name); 1484 } 1485 } 1486 } else { 1487 $sAttribute = parent::__get($name); 1488 } 1489 1490 return $sAttribute; 1491 } 1492 1493 /**
| #0 |
+
–
/media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1481): TemplateConfiguration->__get("options") 1476 * We check if $oParentConfiguration is the same as $this because if it is, $oParentConfiguration->$name will 1477 * try to directly access the property instead of calling the magic method, and it will fail for dynamic properties. 1478 * @todo: Review the behavior of getParentConfiguration(). Returning the same object seems to be a bug. 1479 */ 1480 if ($oParentConfiguration !== $this) { 1481 $sAttribute = $oParentConfiguration->$name; 1482 } else { 1483 $sAttribute = $oParentConfiguration->getAttribute($name); 1484 } 1485 } 1486 } else { |
| #1 |
+
–
/media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1255): TemplateConfiguration->__get("options") 1250 * @return void 1251 */ 1252 public function setOptions() 1253 { 1254 $this->oOptions = new stdClass(); 1255 if (!empty($this->options)) { 1256 $this->oOptions = json_decode($this->options); 1257 } 1258 // unset "comment" property which is auto generated from HTML comments in xml file 1259 unset($this->oOptions->comment); 1260 |
| #2 |
+
–
/media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1209): TemplateConfiguration->setOptions() 1204 $this->apiVersion = (!empty($this->template->api_version)) ? $this->template->api_version : null; 1205 $this->viewPath = $this->path . $this->getTemplateConfigurationForAttribute($this, 'view_folder')->template->view_folder . DIRECTORY_SEPARATOR; 1206 $this->filesPath = $this->path . $this->getTemplateConfigurationForAttribute($this, 'files_folder')->template->files_folder . DIRECTORY_SEPARATOR; 1207 $this->generalFilesPath = App()->getConfig("userthemerootdir") . DIRECTORY_SEPARATOR . 'generalfiles' . DIRECTORY_SEPARATOR; 1208 // Options are optional 1209 $this->setOptions(); 1210 1211 // Not mandatory (use package dependances) 1212 $this->setCssFramework(); 1213 $this->packages = $this->getDependsPackages($this); 1214 if (!empty($this->packages_to_load)) { |
| #3 |
+
–
/media/shnoulle/data/www/master/application/models/TemplateConfiguration.php(1665): TemplateConfiguration->setThisTemplate() 1660 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = []; 1661 } 1662 1663 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 1664 $this->setMotherTemplates(); // Recursive mother templates configuration 1665 $this->setThisTemplate(); // Set the main config values of this template 1666 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 1667 $this->removeFiles(); 1668 $this->getshowpopups(); 1669 1670 if (!empty($sTemplateName) && !empty($iSurveyId)) { |
| #4 |
+
–
/media/shnoulle/data/www/master/application/models/Template.php(598): TemplateConfiguration->prepareTemplateRendering("fruity_twentythree", null) 593 // if the current instance name does not match the requested, generate a new one 594 $getNewInstance = true; 595 } 596 if ($getNewInstance) { 597 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 598 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 599 } 600 601 return self::getLastInstance(false); 602 } 603 |
| #5 |
+
–
/media/shnoulle/data/www/master/application/helpers/replacements_helper.php(130): Template::getInstance("fruity_twentythree") 125 * oTemplate is defined in controller/survey/index 126 * 127 * If templatereplace is called from the template editor, a $oTemplate is provided. 128 */ 129 if ($oTemplate === '') { 130 $oTemplate = Template::model()->getInstance($templatename); 131 } 132 133 // surveyformat 134 if (isset($thissurvey['format'])) { 135 $surveyformat = str_replace(array("A", "S", "G"), array("allinone", "questionbyquestion", "groupbygroup"), (string) $thissurvey['format']); |
| #6 |
+
–
/media/shnoulle/data/www/master/application/helpers/expressions/em_manager_helper.php(3378): templatereplace("{SID}") 3373 'readWrite' => 'N', 3374 ]; 3375 } 3376 /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */ 3377 /* Added replacement can not be used in condition, only for replacement */ 3378 templatereplace("{SID}"); 3379 3380 // Since building array of allowable answers, need to know preset values for certain question types 3381 $presets = []; 3382 $presets['G'] = [ //GENDER drop-down list 3383 'M' => $this->gT("Male"), |
| #7 |
+
–
/media/shnoulle/data/www/master/application/helpers/expressions/em_manager_helper.php(889): LimeExpressionManager->setVariableAndTokenMappingsForExpressionManager(191886) 884 $LEM =& LimeExpressionManager::singleton(); 885 $LEM->SetSurveyId($iSurveyId); // This update session only if needed 886 if (!in_array(Yii::app()->session['LEMlang'], Survey::model()->findByPk($iSurveyId)->getAllLanguages())) { 887 $LEM->SetEMLanguage(Survey::model()->findByPk($iSurveyId)->language);// Reset language only if needed 888 } 889 $LEM->setVariableAndTokenMappingsForExpressionManager($iSurveyId); 890 return $LEM->qcode2sgqa; 891 } 892 893 /** 894 * If $qid is set, returns the relevance equation generated from conditions (or NULL if there are no conditions for that $qid) |
| #8 |
+
–
/media/shnoulle/data/www/master/application/helpers/expressions/em_manager_helper.php(904): LimeExpressionManager::getLEMqcode2sgqa(191886) 899 */ 900 public static function ConvertConditionsToRelevance($surveyId, $qid = null) 901 { 902 $aDictionary = []; 903 if (!is_null($surveyId)) { 904 $aDictionary = LimeExpressionManager::getLEMqcode2sgqa($surveyId); 905 if (!is_null($aDictionary)) { 906 $aDictionary = array_flip($aDictionary); 907 } 908 } 909 $query = LimeExpressionManager::getConditionsForEM($surveyId, $qid); |
| #9 |
+
–
/media/shnoulle/data/www/master/application/helpers/expressions/em_manager_helper.php(859): LimeExpressionManager::ConvertConditionsToRelevance(191886, null) 854 * @return int 855 */ 856 public static function RevertUpgradeConditionsToRelevance($surveyId = null, $qid = null) 857 { 858 LimeExpressionManager::SetDirtyFlag(); // set dirty flag even if not conditions, since must have had a DB change 859 $releqns = self::ConvertConditionsToRelevance($surveyId, $qid); 860 if (!is_array($releqns)) { 861 return null; 862 } 863 $num = count($releqns); 864 if ($num == 0) { |
| #10 |
+
–
/media/shnoulle/data/www/master/application/controllers/SurveyAdministrationController.php(2654): LimeExpressionManager::RevertUpgradeConditionsToRelevance(191886) 2649 { 2650 LimeExpressionManager::SetDirtyFlag(); 2651 LimeExpressionManager::singleton(); 2652 // Why this @ ! 2653 LimeExpressionManager::SetSurveyId($oSurvey->sid); 2654 LimeExpressionManager::RevertUpgradeConditionsToRelevance($oSurvey->sid); 2655 LimeExpressionManager::UpgradeConditionsToRelevance($oSurvey->sid); 2656 @LimeExpressionManager::StartSurvey($oSurvey->sid, 'survey', $oSurvey->attributes, true); 2657 LimeExpressionManager::StartProcessingPage(true, true); 2658 foreach ($aGrouplist as $aGroup) { 2659 LimeExpressionManager::StartProcessingGroup( |
| #11 |
+
–
/media/shnoulle/data/www/master/application/controllers/SurveyAdministrationController.php(2498): SurveyAdministrationController->resetExpressionManager(Survey, array(QuestionGroup)) 2493 2494 if (!empty($aImportResults['newsid'])) { 2495 $oSurvey = Survey::model()->findByPk($aImportResults['newsid']); 2496 $aGrouplist = QuestionGroup::model()->findAllByAttributes(['sid' => $aImportResults['newsid']]); 2497 2498 $this->resetExpressionManager($oSurvey, $aGrouplist); 2499 2500 // Make the link point to the first group/question if available 2501 if (!empty($aGrouplist)) { 2502 $oFirstGroup = $aGrouplist[0]; 2503 $oFirstQuestion = Question::model()->primary()->findByAttributes( |
| #12 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): SurveyAdministrationController->actionImport() 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 } |
| #13 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "surveyAdministration/import")) 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; |
| #14 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #15 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
| #16 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("postOnly + copy")) 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/www/master/application/controllers/LSBaseController.php(145): CController->run("import") 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/www/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->run("import") 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/www/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("surveyAdministration/import") 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/www/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/www/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 */ |