/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1249)
1237 { 1238 $aAttributesThatCanBeInherited = array('files_css', 'files_js', 'options', 'cssframework_name', 'cssframework_css', 'cssframework_js', 'packages_to_load'); 1239 1240 if (in_array($name, $aAttributesThatCanBeInherited) && $this->bUseMagicInherit) { 1241 // Full inheritance of the whole field 1242 $sAttribute = parent::__get($name); 1243 if ($sAttribute === 'inherit') { 1244 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.) 1245 if(!isset($this->getParentConfiguration()->$name)) { 1246 // recursive but no parent, return null. Mantis issue #14250 (quick fix) 1247 return null; 1248 } 1249 $sAttribute = $this->getParentConfiguration()->$name; 1250 } 1251 } else { 1252 $sAttribute = parent::__get($name); 1253 } 1254 1255 return $sAttribute; 1256 } 1257 1258 /** 1259 * @return string 1260 */ 1261 public function getTemplateAndMotherNames()
#0 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1249): TemplateConfiguration->__get("cssframework_css") 1244 // NOTE: this is object recursive (if parent configuration field is set to inherit, then it will lead to this method again.) 1245 if(!isset($this->getParentConfiguration()->$name)) { 1246 // recursive but no parent, return null. Mantis issue #14250 (quick fix) 1247 return null; 1248 } 1249 $sAttribute = $this->getParentConfiguration()->$name; 1250 } 1251 } else { 1252 $sAttribute = parent::__get($name); 1253 } 1254 |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1128): TemplateConfiguration->__get("cssframework_css") 1123 } 1124 1125 $this->aFrameworkAssetsToReplace[$sType] = array(); 1126 1127 $sFieldName = 'cssframework_'.$sType; 1128 $aFieldValue = (array) json_decode($this->$sFieldName); 1129 1130 if (!empty($aFieldValue) && !empty($aFieldValue['replace'])) { 1131 $this->aFrameworkAssetsToReplace[$sType] = (array) $aFieldValue['replace']; 1132 1133 // Inner field inheritance |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfiguration.php(1164): TemplateConfiguration->getFrameworkAssetsToReplace("css") 1159 if (empty($this->aReplacements)) { 1160 $this->aReplacements = array(); 1161 } 1162 $this->aReplacements[$sType] = array(); 1163 1164 $aFrameworkAssetsToReplace = $this->getFrameworkAssetsToReplace($sType); 1165 1166 foreach ($aFrameworkAssetsToReplace as $key => $aAsset) { 1167 $aReplace = $aAsset[1]; 1168 $this->aReplacements[$sType][] = $aReplace; 1169 } |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfig.php(256): TemplateConfiguration->getFrameworkAssetsReplacement("css") 251 252 Yii::setPathOfAlias($sPathName, $oTemplate->path); 253 Yii::setPathOfAlias($sViewName, $oTemplate->viewPath); 254 255 // First we add the framework replacement (bootstrap.css must be loaded before template.css) 256 $aCssFiles = $this->getFrameworkAssetsReplacement('css'); 257 $aJsFiles = $this->getFrameworkAssetsReplacement('js'); 258 259 // This variable will be used to add the variation name to the body class via $aClassAndAttributes['class']['body'] 260 $this->aCssFrameworkReplacement = $aCssFiles; 261 |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/TemplateConfig.php(155): TemplateConfig->createTemplatePackage(TemplateConfiguration) 150 151 152 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 153 $this->setMotherTemplates(); // Recursive mother templates configuration 154 $this->setThisTemplate(); // Set the main config values of this template 155 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 156 $this->removeFiles(); 157 $this->getshowpopups(); 158 159 if (!empty ($sTemplateName) && !empty ($iSurveyId) ){ 160 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = $this; |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/models/Template.php(505): TemplateConfig->prepareTemplateRendering("vanilla", null) 500 return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); 501 } 502 503 if (empty(self::$instance)) { 504 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 505 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 506 } 507 508 509 return self::$instance; 510 } |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/replacements_helper.php(120): Template::getInstance("vanilla") 115 * oTemplate is defined in controller/survey/index 116 * 117 * If templatereplace is called from the template editor, a $oTemplate is provided. 118 */ 119 if ($oTemplate === '') { 120 $oTemplate = Template::model()->getInstance($templatename); 121 } 122 123 // surveyformat 124 if (isset($thissurvey['format'])) { 125 $surveyformat = str_replace(array("A", "S", "G"), array("allinone", "questionbyquestion", "groupbygroup"), $thissurvey['format']); |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(3662): templatereplace("{SID}") 3657 'jsName_on'=>'', 3658 'jsName'=>'', 3659 'readWrite'=>'N', 3660 ); 3661 /* Add the core replacement before question code : needed if use it in equation , use SID to never send error */ 3662 templatereplace("{SID}"); 3663 3664 // Since building array of allowable answers, need to know preset values for certain question types 3665 $presets = array(); 3666 $presets['G'] = array( //GENDER drop-down list 3667 'M' => $this->gT("Male"), |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(5000): LimeExpressionManager->setVariableAndTokenMappingsForExpressionManager("847323", true, "N") 4995 $LEM->allOnOnePage=false; 4996 $LEM->surveyMode = 'group'; 4997 break; 4998 } 4999 5000 $LEM->setVariableAndTokenMappingsForExpressionManager($surveyid,$forceRefresh,$LEM->surveyOptions['anonymized']); 5001 $LEM->currentGroupSeq=-1; 5002 $LEM->currentQuestionSeq=-1; // for question-by-question mode 5003 $LEM->indexGseq=array(); 5004 $LEM->indexQseq=array(); 5005 $LEM->qrootVarName2arrayFilter=array(); |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/surveyadmin.php(1399): LimeExpressionManager::StartSurvey("847323",
"survey", array("htmlemail" => "Y", "format" => "S", "template"
=> "vanilla", "language" => "en", ...), true) 1394 LimeExpressionManager::singleton(); 1395 // Why this @ ! 1396 LimeExpressionManager::SetSurveyId($aImportResults['newsid']); 1397 LimeExpressionManager::RevertUpgradeConditionsToRelevance($aImportResults['newsid']); 1398 LimeExpressionManager::UpgradeConditionsToRelevance($aImportResults['newsid']); 1399 LimeExpressionManager::StartSurvey($oSurvey->sid, 'survey', $oSurvey->attributes, true); 1400 LimeExpressionManager::StartProcessingPage(true, true); 1401 $aGrouplist = QuestionGroup::model()->findAllByAttributes(['sid'=>$aImportResults['newsid']]); 1402 foreach ($aGrouplist as $aGroup) { 1403 LimeExpressionManager::StartProcessingGroup($aGroup['gid'], $oSurvey->anonymized != 'Y', $aImportResults['newsid']); 1404 LimeExpressionManager::FinishProcessingGroup(); |
#10 |
unknown(0): SurveyAdmin->copy()
|
#11 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(SurveyAdmin, 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 } |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("r" => "admin/survey/sa/copy", "sa" => "copy")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/survey/sa/copy", "sa" => "copy")) 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 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): CController->runAction(SurveyAdmin) 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(); |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): CController->runActionWithFilters(SurveyAdmin, 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); |
#16 |
+
–
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(158): CController->run("survey") 153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#17 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): AdminController->run("survey") 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))); |
#18 |
+
–
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/survey/sa/copy") 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. |
#19 |
+
–
/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 /** |
#20 |
+
–
/mnt/data/shnoulle/nginx/www/master/index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |