/mnt/data/shnoulle/nginx/www/3LTS/application/models/TemplateManifest.php(285)
273 } 274 275 return $thissurvey; 276 } 277 278 279 protected function parseDefaultData($sXpath, $aArrayToFeed) 280 { 281 282 $oDataFromXML = $this->templateEditor->default_data->xpath('//'.$sXpath); 283 $oDataFromXML = end($oDataFromXML); 284 285 foreach( $oDataFromXML as $sKey => $oData){ 286 287 if (!empty($sKey)){ 288 289 $sData = (string) $oData; 290 291 if ($oData->attributes()->twig == "on") { 292 $sData = Yii::app()->twigRenderer->convertTwigToHtml($sData); 293 } 294 295 $aArrayToFeed[$sKey] = $sData; 296 } 297 }
#0 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/application/models/TemplateManifest.php(240): TemplateManifest->parseDefaultData("survey", array("active" => "Y", "allowsave" => "Y", "tokenanswerspersistence" => "Y", "format" => "G", ...)) 235 236 if (empty($this->templateEditor)) { 237 return $thissurvey; 238 } 239 240 $thissurvey = $this->parseDefaultData('survey', $thissurvey); 241 $thissurvey['aGroups'][1] = $this->parseDefaultData('group', $thissurvey['aGroups'][1]); 242 $thissurvey['aGroups'][1]["aQuestions"][1] = $this->parseDefaultData('question_1', $thissurvey['aGroups'][1]["aQuestions"][1]) ; 243 $thissurvey['aGroups'][1]["aQuestions"][2] = $this->parseDefaultData('question_2', $thissurvey['aGroups'][1]["aQuestions"][2]); 244 $thissurvey['aAssessments']["datas"]["total"][0] = $this->parseDefaultData('assessments', $thissurvey['aAssessments']["datas"]["total"][0]); 245 |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/application/models/TemplateManifest.php(200): TemplateManifest->getDefaultDataForRenderingFromXml(array("active" => "Y", "allowsave" => "Y", "tokenanswerspersistence" => "Y", "format" => "G", ...)) 195 public function getDefaultDataForRendering($thissurvey=array()) 196 { 197 198 $thissurvey = empty($thissurvey)?$this->getDefaultCoreDataForRendering():$thissurvey; 199 200 $thissurvey = $this->getDefaultDataForRenderingFromXml($thissurvey); 201 202 //$thissurvey['alanguageChanger'] = $this->getDefaultDataForLanguageChanger(); 203 204 // Redundant values 205 $thissurvey['surveyls_title'] = $thissurvey['name']; |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/themes.php(1032): TemplateManifest->getDefaultDataForRendering() 1027 $siteadminemail = Yii::app()->getConfig('siteadminemail'); 1028 1029 // NB: Used by answer print PDF layout. 1030 $print = []; 1031 1032 $thissurvey = $oEditedTemplate->getDefaultDataForRendering(); 1033 $templatedir = $oEditedTemplate->viewPath; 1034 $templateurl = getTemplateURL($templatename); 1035 1036 // Save these variables in an array 1037 // TODO: check if this aData is still used |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/application/controllers/admin/themes.php(493): themes->_initialise("skelvanilla_512", "welcome", "layout_global.twig", true, ...) 488 /* Keep Bootstrap Package clean after loading template : because template can update boostrap */ 489 $aBootstrapPackage = Yii::app()->clientScript->packages['bootstrap-admin']; 490 491 492 493 $aViewUrls = $this->_initialise($templatename, $screenname, $editfile, true, true); 494 495 App()->getClientScript()->reset(); 496 Yii::app()->clientScript->packages['bootstrap'] = $aBootstrapPackage; 497 App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts').'templates.js'); 498 App()->getClientScript()->registerPackage('ace'); |
#4 |
unknown(0): themes->index("", "welcome", "skelvanilla_512")
|
#5 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(themes, array("", "welcome", "skelvanilla_512")) 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/3LTS/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(themes, ReflectionMethod, array("r" => "admin/themes/sa/view/templatename/skelvanilla_512", "sa" => "view", "templatename" => "skelvanilla_512")) 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/3LTS/application/controllers/admin/themes.php(33): Survey_Common_Action->runWithParams(array("r" => "admin/themes/sa/view/templatename/skelvanilla_512", "sa" => "view", "templatename" => "skelvanilla_512")) 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/3LTS/framework/web/CController.php(308): themes->runWithParams(array("r" => "admin/themes/sa/view/templatename/skelvanilla_512", "sa" => "view", "templatename" => "skelvanilla_512")) 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/3LTS/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/3LTS/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/3LTS/application/controllers/AdminController.php(165): CController->run("themes") 160 $this->redirect(array('/admin/authentication/sa/login')); 161 } 162 } 163 } 164 165 return parent::run($action); 166 } 167 168 /** 169 * Routes all the actions to their respective places 170 * |
#12 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/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===''?substr($this->defaultController,0,20).'...':substr($route,0,20).'...'))); |
#13 |
+
–
/mnt/data/shnoulle/nginx/www/3LTS/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/themes/sa/view/templatename/skelvanilla_512") 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/3LTS/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/3LTS/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 */ |