/mnt/data/shnoulle/nginx/www/mastervanilla/application/models/TemplateManifest.php(281)
269 } 270 271 return $thissurvey; 272 } 273 274 275 protected function parseDefaultData($sXpath, $aArrayToFeed) 276 { 277 278 $oDataFromXML = $this->templateEditor->default_data->xpath('//'.$sXpath); 279 $oDataFromXML = end($oDataFromXML); 280 281 foreach( $oDataFromXML as $sKey => $oData){ 282 283 if (!empty($sKey)){ 284 285 $sData = (string) $oData; 286 287 if ($oData->attributes()->twig == "on") { 288 $sData = Yii::app()->twigRenderer->convertTwigToHtml($sData); 289 } 290 291 $aArrayToFeed[$sKey] = $sData; 292 } 293 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/application/models/TemplateManifest.php(236): TemplateManifest->parseDefaultData("survey", array("active" => "Y", "allowsave" => "Y", "tokenanswerspersistence" => "Y", "format" => "G", ...)) 231 232 if (empty($this->templateEditor)) { 233 return $thissurvey; 234 } 235 236 $thissurvey = $this->parseDefaultData('survey', $thissurvey); 237 $thissurvey['aGroups'][1] = $this->parseDefaultData('group', $thissurvey['aGroups'][1]); 238 $thissurvey['aGroups'][1]["aQuestions"][1] = $this->parseDefaultData('question_1', $thissurvey['aGroups'][1]["aQuestions"][1]) ; 239 $thissurvey['aGroups'][1]["aQuestions"][2] = $this->parseDefaultData('question_2', $thissurvey['aGroups'][1]["aQuestions"][2]); 240 $thissurvey['aAssessments']["datas"]["total"][0] = $this->parseDefaultData('assessments', $thissurvey['aAssessments']["datas"]["total"][0]); 241 |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/application/models/TemplateManifest.php(196): TemplateManifest->getDefaultDataForRenderingFromXml(array("active" => "Y", "allowsave" => "Y", "tokenanswerspersistence" => "Y", "format" => "G", ...)) 191 public function getDefaultDataForRendering($thissurvey=array()) 192 { 193 194 $thissurvey = empty($thissurvey)?$this->getDefaultCoreDataForRendering():$thissurvey; 195 196 $thissurvey = $this->getDefaultDataForRenderingFromXml($thissurvey); 197 198 //$thissurvey['alanguageChanger'] = $this->getDefaultDataForLanguageChanger(); 199 200 // Redundant values 201 $thissurvey['surveyls_title'] = $thissurvey['name']; |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/application/controllers/admin/themes.php(979): TemplateManifest->getDefaultDataForRendering() 974 $siteadminemail = Yii::app()->getConfig('siteadminemail'); 975 976 // NB: Used by answer print PDF layout. 977 $print = []; 978 979 $thissurvey = $oEditedTemplate->getDefaultDataForRendering(); 980 $templatedir = $oEditedTemplate->viewPath; 981 $templateurl = getTemplateURL($templatename); 982 983 // Save these variables in an array 984 // TODO: check if this aData is still used |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/application/controllers/admin/themes.php(434): themes->_initialise("skelvanilla", "welcome", "layout_global.twig", true, ...) 429 /* Keep Bootstrap Package clean after loading template : because template can update boostrap */ 430 $aBootstrapPackage = Yii::app()->clientScript->packages['bootstrap-admin']; 431 432 433 434 $aViewUrls = $this->_initialise($templatename, $screenname, $editfile, true, true); 435 436 App()->getClientScript()->reset(); 437 Yii::app()->clientScript->packages['bootstrap'] = $aBootstrapPackage; 438 App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts').'templates.js'); 439 App()->getClientScript()->registerPackage('ace'); |
#4 |
unknown(0): themes->index("", "welcome", "skelvanilla")
|
#5 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themes, array("", "welcome", "skelvanilla")) 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/mastervanilla/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(themes,
ReflectionMethod, array("r" =>
"admin/themes/sa/view/templatename/skelvanilla", "sa" => "view",
"templatename" => "skelvanilla")) 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 |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/application/controllers/admin/themes.php(33): Survey_Common_Action->runWithParams(array("r" => "admin/themes/sa/view/templatename/skelvanilla", "sa" => "view", "templatename" => "skelvanilla")) 28 public function runWithParams($params) 29 { 30 31 $sTemplateName = Yii::app()->request->getPost('templatename', ''); 32 if (Permission::model()->hasGlobalPermission('templates', 'read') || Permission::model()->hasTemplatePermission($sTemplateName)) { 33 parent::runWithParams($params); 34 } else { 35 Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); 36 $this->getController()->redirect(array("admin/themeoptions")); 37 } 38 } |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/framework/web/CController.php(308): themes->runWithParams(array("r" => "admin/themes/sa/view/templatename/skelvanilla", "sa" => "view", "templatename" => "skelvanilla")) 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; |
#9 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/framework/web/CController.php(286): CController->runAction(themes) 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(); |
#10 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/framework/web/CController.php(265): CController->runActionWithFilters(themes, 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); |
#11 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/application/controllers/AdminController.php(158): CController->run("themes") 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 * |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/framework/web/CWebApplication.php(282): AdminController->run("themes") 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))); |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themes/sa/view/templatename/skelvanilla") 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. |
#14 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/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 /** |
#15 |
+
–
/mnt/data/shnoulle/nginx/www/mastervanilla/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 */ |