/data/webdev/mastervanilla/application/models/QuestionTheme.php(738)
726 'title' => $questionMetaData['title'], 727 'creation_date' => date('Y-m-d H:i:s', strtotime($questionMetaData['creationDate'])), 728 'author' => $questionMetaData['author'] ?? '', 729 'author_email' => $questionMetaData['authorEmail'] ?? '', 730 'author_url' => $questionMetaData['authorUrl'] ?? '', 731 'copyright' => $questionMetaData['copyright'] ?? '', 732 'license' => $questionMetaData['license'] ?? '', 733 'version' => $questionMetaData['version'], 734 'api_version' => $questionMetaData['apiVersion'], 735 'description' => $questionMetaData['description'], 736 'last_update' => date('Y-m-d H:i:s'), //todo 737 'owner_id' => 1, //todo 738 'theme_type' => $questionMetaData['type'], 739 'question_type' => $questionMetaData['questionType'], 740 'core_theme' => $questionMetaData['coreTheme'], 741 'extends' => $questionMetaData['extends'], 742 'group' => $questionMetaData['group'] ?? '', 743 'settings' => $questionMetaData['settings'] ?? '' 744 ]; 745 return $questionMetaData; 746 } 747 748 /** 749 * Return the question Theme preview URL 750 *
#0 |
+
–
/data/webdev/mastervanilla/application/models/QuestionTheme.php(314): QuestionTheme::getMetaDataArray(array("name"
=> "bootstrap_dropdown", "title" => "Bootstrap Dropdown",
"creationDate" => "2021-09-29", "author" => "Adam Zammit", ...))
309 } 310 } 311 foreach ($aThemes['available_themes'] as $questionMetaData) { 312 // TODO: replace by manifest 313 $questionTheme = new QuestionTheme(); 314 $metaDataArray = self::getMetaDataArray($questionMetaData); 315 $questionTheme->setAttributes($metaDataArray, false); 316 $aAvailableThemes[] = $questionTheme; 317 } 318 } 319 |
#1 |
+
–
/data/webdev/mastervanilla/application/views/themeOptions/availablethemelist.php(5): QuestionTheme->getAvailableQuestionThemes() 01 <?php 02 /** 03 * @var QuestionTheme $oQuestionTheme 04 */ 05 $aQuestionThemes = $oQuestionTheme->getAvailableQuestionThemes(); 06 ?> 07 <?php if (!empty($aQuestionThemes['available_themes'])): ?> 08 <h3><?php eT('Available question themes:'); ?></h3> 09 <div class="row"> 10 <div class="col-sm-12 content-right"> |
#2 |
+
–
/data/webdev/mastervanilla/framework/web/CBaseController.php(126): require("/data/webdev/mastervanilla/application/views/themeOptions/availa...") 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 } |
#3 |
+
–
/data/webdev/mastervanilla/framework/web/CBaseController.php(95): CBaseController->renderInternal("/data/webdev/mastervanilla/application/views/themeOptions/./avai...",
array("oQuestionTheme" => QuestionTheme, "pageSize" => 10), true)
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); |
#4 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(872): CBaseController->renderFile("/data/webdev/mastervanilla/application/views/themeOptions/./avai...",
array("oQuestionTheme" => QuestionTheme, "pageSize" => 10), true)
867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#5 |
+
–
/data/webdev/mastervanilla/application/views/themeOptions/index.php(239): CController->renderPartial("./availablethemelist", array("oQuestionTheme" => QuestionTheme, "pageSize" => 10)) 234 'themeType' => 'question' 235 ] 236 ); ?> 237 <?php $this->renderPartial('./installedthemelist', array('oQuestionTheme' => $oQuestionTheme, 'pageSize' => $pageSize)); ?> 238 <!-- Available Quesiton Themes--> 239 <?php $this->renderPartial('./availablethemelist', array('oQuestionTheme' => $oQuestionTheme, 'pageSize' => $pageSize)); ?> 240 </div> 241 </div> 242 </div> 243 </div> 244 |
#6 |
+
–
/data/webdev/mastervanilla/framework/web/CBaseController.php(126): require("/data/webdev/mastervanilla/application/views/themeOptions/index....") 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 } |
#7 |
+
–
/data/webdev/mastervanilla/framework/web/CBaseController.php(95): CBaseController->renderInternal("/data/webdev/mastervanilla/application/views/themeOptions/index....",
array("oAdminTheme" => AdminTheme, "oQuestionTheme" =>
QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport"
=> true, ...), true) 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); |
#8 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(872): CBaseController->renderFile("/data/webdev/mastervanilla/application/views/themeOptions/index....",
array("oAdminTheme" => AdminTheme, "oQuestionTheme" =>
QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport"
=> true, ...), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
#9 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(785): CController->renderPartial("index",
array("oAdminTheme" => AdminTheme, "oQuestionTheme" =>
QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport"
=> true, ...), true) 780 */ 781 public function render($view,$data=null,$return=false) 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 |
#10 |
+
–
/data/webdev/mastervanilla/application/controllers/ThemeOptionsController.php(494): CController->render("index",
array("oAdminTheme" => AdminTheme, "oQuestionTheme" =>
QuestionTheme, "oSurveyTheme" => TemplateConfiguration, "canImport"
=> true, ...)) 489 $aData['fullpagebar']['themes']['buttons']['uploadAndInstall']['modalSurvey'] = 'importSurveyModal'; 490 $aData['fullpagebar']['themes']['buttons']['uploadAndInstall']['modalQuestion'] = 'importQuestionModal'; 491 $aData['fullpagebar']['importErrorMessage'] = $importErrorMessage; 492 $this->aData = $aData; 493 494 $this->render('index', $aData); 495 } 496 497 /** 498 * Manages all models. 499 * |
#11 |
+
–
/data/webdev/mastervanilla/framework/web/actions/CInlineAction.php(49): ThemeOptionsController->actionIndex() 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 |
+
–
/data/webdev/mastervanilla/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "themeOptions/index")) 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 |
+
–
/data/webdev/mastervanilla/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 |
+
–
/data/webdev/mastervanilla/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 |
+
–
/data/webdev/mastervanilla/application/controllers/LSBaseController.php(160): CController->run("index") 155 $this->redirect(array('/admin/authentication/sa/login')); 156 } 157 } 158 } 159 160 parent::run($action); 161 } 162 163 /** 164 * Load and set session vars 165 * |
#16 |
+
–
/data/webdev/mastervanilla/framework/web/CWebApplication.php(282): LSBaseController->run("index") 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))); |
#17 |
+
–
/data/webdev/mastervanilla/framework/web/CWebApplication.php(141): CWebApplication->runController("themeOptions/index") 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. |
#18 |
+
–
/data/webdev/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 /** |
#19 |
+
–
/data/webdev/mastervanilla/index.php(192): CApplication->run() 187 require_once APPPATH . 'core/LSYii_Application' . EXT; 188 189 $config = require_once(APPPATH . 'config/internal' . EXT); 190 191 Yii::$enableIncludePath = false; 192 Yii::createApplication('LSYii_Application', $config)->run(); 193 194 /* End of file index.php */ 195 /* Location: ./index.php */ |