E:\WEB\limesurvey\www\application\models\Template.php(433)
421 if (!is_null($aTemplateList)) { 422 return $aTemplateList; 423 } 424 $aTemplateList = []; 425 /* Get the template name by TemplateConfiguration and fiolder by template , no need other data */ 426 $criteria = new CDBCriteria(); 427 $criteria->select = 'template_name'; 428 $criteria->with = ['template' => ['select' => 'folder']]; 429 $oTemplateList = TemplateConfiguration::model()->with('template')->findAll($criteria); 430 $aTemplateInStandard = SurveyThemeHelper::getTemplateInStandard(); 431 $aTemplateInUpload = SurveyThemeHelper::getTemplateInUpload(); 432 foreach ($oTemplateList as $oTemplate) { 433 if (isset($aTemplateInStandard[$oTemplate->template->folder])) { 434 $aTemplateList[$oTemplate->template_name] = $aTemplateInStandard[$oTemplate->template->folder]; 435 } elseif (isset($aTemplateInUpload[$oTemplate->template->folder])) { 436 $aTemplateList[$oTemplate->template_name] = $aTemplateInUpload[$oTemplate->template->folder]; 437 } 438 } 439 return $aTemplateList; 440 } 441 442 /** 443 * @return array 444 * TODO: replace the calls to that function by a data provider based on search 445 */
#0 |
+
–
E:\WEB\limesurvey\www\application\models\Template.php(263): Template::getTemplateList() 258 * @return bool 259 */ 260 public static function checkIfTemplateExists($sTemplateName) 261 { 262 // isset is faster, and we need a value, no need array_key_exist here 263 return isset(self::getTemplateList()[$sTemplateName]); 264 } 265 266 /** 267 * Get the template path for any template : test if template if exist 268 * |
#1 |
+
–
E:\WEB\limesurvey\www\application\models\Template.php(366): Template::checkIfTemplateExists("vanilla") 361 * @return string template url 362 */ 363 public static function getTemplateURL($sTemplateName = "") 364 { 365 // Make sure template name is valid 366 if (!self::checkIfTemplateExists($sTemplateName)) { 367 throw new \CException("Invalid {$sTemplateName} template directory"); 368 } 369 370 static $aTemplateUrl = array(); 371 if (isset($aTemplateUrl[$sTemplateName])) { |
#2 |
+
–
E:\WEB\limesurvey\www\application\models\TemplateConfig.php(110): Template::getTemplateURL("vanilla") 105 * @return string template url 106 */ 107 public function getTemplateURL() 108 { 109 if (!isset($this->sTemplateurl)) { 110 $this->sTemplateurl = Template::getTemplateURL($this->sTemplateName); 111 } 112 return $this->sTemplateurl; 113 } 114 115 |
#3 |
+
–
E:\WEB\limesurvey\www\application\models\TemplateConfiguration.php(1763): TemplateConfig->getTemplateURL() 1758 1759 // Then we add the direction files if they exist 1760 // TODO: attribute system rather than specific fields for RTL 1761 1762 $this->sPackageName = 'survey-template-' . $this->sTemplateName; 1763 $sTemplateurl = $oTemplate->getTemplateURL(); 1764 1765 $aDepends = empty($oTemplate->depends) ? array() : $oTemplate->depends; 1766 1767 // The package "survey-template-{sTemplateName}" will be available from anywhere in the app now. 1768 // To publish it : Yii::app()->clientScript->registerPackage( 'survey-template-{sTemplateName}' ); |
#4 |
+
–
E:\WEB\limesurvey\www\application\models\TemplateConfiguration.php(1707): TemplateConfiguration->createTemplatePackage(TemplateConfiguration) 1702 } 1703 1704 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 1705 $this->setMotherTemplates(); // Recursive mother templates configuration 1706 $this->setThisTemplate(); // Set the main config values of this template 1707 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 1708 $this->removeFiles(); 1709 $this->getshowpopups(); 1710 1711 if (!empty($sTemplateName) && !empty($iSurveyId)) { 1712 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = $this; |
#5 |
+
–
E:\WEB\limesurvey\www\application\models\TemplateConfiguration.php(1197): TemplateConfiguration->prepareTemplateRendering("vanilla", "") 1192 { 1193 if (!empty($this->template->extends)) { 1194 $sMotherTemplateName = $this->template->extends; 1195 $instance = TemplateConfiguration::getInstanceFromTemplateName($sMotherTemplateName); 1196 $instance->template->checkTemplate(); 1197 $this->oMotherTemplate = $instance->prepareTemplateRendering($sMotherTemplateName, ''); 1198 } 1199 } 1200 1201 /** 1202 * Get the closest template in the hierarchy that has the definition for $attribute |
#6 |
+
–
E:\WEB\limesurvey\www\application\models\TemplateConfiguration.php(1705): TemplateConfiguration->setMotherTemplates() 1700 self::$aPreparedToRender[$sTemplateName][$iSurveyId][$bUseMagicInherit] = array(); 1701 } 1702 } 1703 1704 $this->setBasics($sTemplateName, $iSurveyId, $bUseMagicInherit); 1705 $this->setMotherTemplates(); // Recursive mother templates configuration 1706 $this->setThisTemplate(); // Set the main config values of this template 1707 $this->createTemplatePackage($this); // Create an asset package ready to be loaded 1708 $this->removeFiles(); 1709 $this->getshowpopups(); 1710 |
#7 |
+
–
E:\WEB\limesurvey\www\application\models\Template.php(513): TemplateConfiguration->prepareTemplateRendering("oecd", null) 508 return self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML, true); 509 } 510 511 if (empty(self::$instance) || ! self::isCorrectInstance($sTemplateName)) { 512 self::$instance = self::getTemplateConfiguration($sTemplateName, $iSurveyId, $iSurveyGroupId, $bForceXML); 513 self::$instance->prepareTemplateRendering($sTemplateName, $iSurveyId); 514 } 515 516 return self::getLastInstance(false); 517 } 518 |
#8 |
+
–
E:\WEB\limesurvey\www\application\controllers\SurveysController.php(34): Template::getInstance("oecd") 29 $lang = App()->getConfig('defaultlang'); 30 } 31 App()->setLanguage($lang); 32 33 34 $oTemplate = Template::model()->getInstance(getGlobalSetting('defaulttheme')); 35 $this->sTemplate = $oTemplate->sTemplateName; 36 37 $aData = array( 38 'publicSurveys' => Survey::model()->active()->open()->with('languagesettings')->findAllPublic(), 39 'futureSurveys' => Survey::model()->active()->registration()->with('languagesettings')->findAllPublic(), |
#9 |
unknown(0): SurveysController->actionPublicList("en")
|
#10 |
+
–
E:\WEB\limesurvey\www\vendor\yiisoft\yii\framework\web\actions\CAction.php(115): ReflectionMethod->invokeArgs(SurveysController, array(null)) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#11 |
+
–
E:\WEB\limesurvey\www\vendor\yiisoft\yii\framework\web\actions\CInlineAction.php(47): CAction->runWithParamsInternal(SurveysController, ReflectionMethod, array()) 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 } |
#12 |
+
–
E:\WEB\limesurvey\www\vendor\yiisoft\yii\framework\web\CController.php(308): CInlineAction->runWithParams(array()) 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; |
#13 |
+
–
E:\WEB\limesurvey\www\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(); |
#14 |
+
–
E:\WEB\limesurvey\www\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); |
#15 |
+
–
E:\WEB\limesurvey\www\vendor\yiisoft\yii\framework\web\CWebApplication.php(282): CController->run("") 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))); |
#16 |
+
–
E:\WEB\limesurvey\www\vendor\yiisoft\yii\framework\web\CWebApplication.php(141): CWebApplication->runController("") 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. |
#17 |
+
–
E:\WEB\limesurvey\www\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 /** |
#18 |
+
–
E:\WEB\limesurvey\www\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 */ |