/media/shnoulle/data/webdev/master/application/core/LSETwigViewRenderer.php(676)
664 { 665 /* get minimal surveyInfo if we can have a sid, used in ExpressionManager for example */ 666 if (empty($aData["aSurveyInfo"])) { 667 $aData["aSurveyInfo"] = array(); 668 if (!empty($aData["sid"]) || LimeExpressionManager::getLEMsurveyId()) { 669 $sid = empty($aData["sid"]) ? LimeExpressionManager::getLEMsurveyId() : $aData["sid"]; 670 $language = empty($aData["language"]) ? App()->getLanguage() : $aData["language"]; 671 $aData["aSurveyInfo"] = getSurveyInfo($sid, $language); 672 } 673 } 674 // We retrieve the definition of the core class and attributes 675 // (in the future, should be template dependant done via XML file) 676 $aData["aSurveyInfo"] = array_merge($aData["aSurveyInfo"], $oTemplate->getClassAndAttributes()); 677 678 $languagecode = App()->getLanguage(); 679 if (!empty($aData['aSurveyInfo']['sid']) && Survey::model()->findByPk($aData['aSurveyInfo']['sid'])) { 680 if (!in_array($languagecode, Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->getAllLanguages())) { 681 $languagecode = Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->language; 682 } 683 } 684 685 $aData["aSurveyInfo"]['languagecode'] = $languagecode; 686 $aData["aSurveyInfo"]['dir'] = (getLanguageRTL($languagecode)) ? "rtl" : "ltr"; 687 688 if (!empty($aData['aSurveyInfo']['sid'])) {
#0 |
+
–
/media/shnoulle/data/webdev/master/application/core/LSETwigViewRenderer.php(676): array_merge() 671 $aData["aSurveyInfo"] = getSurveyInfo($sid, $language); 672 } 673 } 674 // We retrieve the definition of the core class and attributes 675 // (in the future, should be template dependant done via XML file) 676 $aData["aSurveyInfo"] = array_merge($aData["aSurveyInfo"], $oTemplate->getClassAndAttributes()); 677 678 $languagecode = App()->getLanguage(); 679 if (!empty($aData['aSurveyInfo']['sid']) && Survey::model()->findByPk($aData['aSurveyInfo']['sid'])) { 680 if (!in_array($languagecode, Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->getAllLanguages())) { 681 $languagecode = Survey::model()->findByPk($aData['aSurveyInfo']['sid'])->language; |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/core/LSETwigViewRenderer.php(795): LSETwigViewRenderer->getAdditionalInfos() 790 * @throws Twig_Error_Syntax 791 */ 792 public function renderPartial($twigView, $aData) 793 { 794 $oTemplate = Template::getLastInstance(); 795 $aData = $this->getAdditionalInfos($aData, $oTemplate); 796 $this->addRecursiveTemplatesPath($oTemplate); 797 return $this->_twig->render($twigView, $aData); 798 } 799 800 /** |
#2 |
+
–
/media/shnoulle/data/webdev/GITREPO/PLUGINS/AdminBanner/AdminBanner.php(92): LSETwigViewRenderer->renderPartial() 87 */ 88 public function beforeAdminMenuRender() 89 { 90 if (!empty($this->get('textshown'))) { 91 $this->subscribe('getPluginTwigPath'); 92 $content = Yii::app()->twigRenderer->renderPartial('/admin/banner/adminbanner.twig', array( 93 'bannertext' => $this->get('textshown'), 94 'cssclass' => $this->get('cssclass', null, null, $this->settings['cssclass']['default']), 95 )); 96 $script = "if ($('#AdminBannerContent').length < 1) {\n"; 97 $script .= "\t$('nav.navbar').after('" . trim(json_encode($content), '"') ."');\n"; |
#3 |
unknown(0): AdminBanner->beforeAdminMenuRender()
|
#4 |
+
–
/media/shnoulle/data/webdev/master/application/libraries/PluginManager/PluginManager.php(269): call_user_func() 264 if ( 265 !$event->isStopped() 266 && (empty($target) || in_array(get_class($subscription[0]), $target)) 267 ) { 268 $subscription[0]->setEvent($event); 269 call_user_func($subscription); 270 } 271 } 272 } 273 274 return $event; |
#5 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/LayoutHelper.php(168): LimeSurvey\PluginManager\PluginManager->dispatchEvent() 163 { 164 //todo this is different from SurveyCommonAction (no second parameter $this ...) correct usage? 165 $event = new PluginEvent('beforeAdminMenuRender'); 166 167 $event->set('data', $aData); 168 $result = App()->getPluginManager()->dispatchEvent($event); 169 170 $extraMenus = $result->get('extraMenus'); 171 172 if ($extraMenus === null) { 173 $extraMenus = array(); |
#6 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/LayoutHelper.php(142): LayoutHelper->fetchExtraMenus() 137 $updateModel = new UpdateForm(); 138 $updateNotification = $updateModel->updateNotification; 139 $aData['showupdate'] = Yii::app()->getConfig('updatable') && $updateNotification->result && !$updateNotification->unstable_update; 140 141 // Fetch extra menus from plugins, e.g. last visited surveys 142 $aData['extraMenus'] = $this->fetchExtraMenus($aData); 143 144 // $aData['extraMenus'] = ''; //todo extraMenu should work 145 146 // Get notification menu 147 $surveyId = $aData['surveyid'] ?? null; |
#7 |
+
–
/media/shnoulle/data/webdev/master/application/views/layouts/with_sidebar.php(8): LayoutHelper->showadminmenu() 03 Yii::import('application.helpers.common_helper', true); 04 Yii::import('application.helpers.globalsettings_helper', true); 05 $aData = App()->getController()->aData; 06 $layoutHelper = new LayoutHelper(); 07 $layoutHelper->showHeaders($aData); 08 $layoutHelper->showadminmenu($aData); 09 ?> 10 11 <!-- BEGIN LAYOUT MAIN (refactored controllers) --> 12 <?= $layoutHelper->renderTopbarTemplate($aData) ?> 13 <div class='container-fluid'> |
#8 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/media/shnoulle/data/webdev/master/application/views/layouts/wit...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#9 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal() 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(787): CBaseController->renderFile() 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 791 $output=$this->processOutput($output); 792 |
#11 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/DashboardController.php(48): CController->render() 43 * View the dashboard index/index 44 */ 45 public function actionView(): void 46 { 47 $aData = $this->getData(); 48 $this->render('welcome', $aData); 49 } 50 51 /** 52 * Used to get responses data for browse etc 53 * |
#12 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): DashboardController->actionView() 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/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams() 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/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction() 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 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters() 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 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run() 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 * |
#17 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->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))); |
#18 |
+
–
/media/shnoulle/data/webdev/master/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. |
#19 |
+
–
/media/shnoulle/data/webdev/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 /** |
#20 |
+
–
/media/shnoulle/data/webdev/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 */ |