当前位置: 首页>>代码示例>>PHP>>正文


PHP DashboardController::Initialize方法代码示例

本文整理汇总了PHP中DashboardController::Initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP DashboardController::Initialize方法的具体用法?PHP DashboardController::Initialize怎么用?PHP DashboardController::Initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DashboardController的用法示例。


在下文中一共展示了DashboardController::Initialize方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Initialize

 /**
  * Hightlight menu path. Automatically run on every use.
  *
  * @since 2.0.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/dashboard/settings');
     }
 }
开发者ID:Raz0r,项目名称:Garden,代码行数:13,代码来源:class.settingscontroller.php

示例2: Initialize

 public function Initialize()
 {
     parent::Initialize();
     Gdn_Theme::Section('Dashboard');
     $this->Model = new DBAModel();
     $this->Form = new Gdn_Form();
     $this->Form->InputPrefix = '';
     $this->AddJsFile('dba.js');
 }
开发者ID:3marproof,项目名称:vanilla,代码行数:9,代码来源:class.dbacontroller.php

示例3: Initialize

 /**
  * Make this look like a dashboard page and add the resources
  *
  * @since 1.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->Application = 'Yaga';
     Gdn_Theme::Section('Dashboard');
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/badge');
     }
     $this->AddJsFile('admin.badges.js');
     $this->AddCssFile('badges.css');
 }
开发者ID:hxii,项目名称:Application-Yaga,代码行数:17,代码来源:class.badgecontroller.php

示例4: Initialize

 /**
  * Make this look like a dashboard page and add the resources
  *
  * @since 1.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->Application = 'Yaga';
     Gdn_Theme::Section('Dashboard');
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/yaga');
     }
     $this->AddSideMenu('yaga/settings');
     $this->AddCssFile('yaga.css');
 }
开发者ID:hxii,项目名称:Application-Yaga,代码行数:17,代码来源:class.yagacontroller.php

示例5: Initialize

 /**
  * Make this look like a dashboard page and add the resources
  *
  * @since 1.0
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     $this->Application = 'Yaga';
     Gdn_Theme::Section('Dashboard');
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/rank');
     }
     $this->AddJsFile('jquery-ui-1.10.0.custom.min.js');
     $this->AddJsFile('admin.ranks.js');
 }
开发者ID:hxii,项目名称:Application-Yaga,代码行数:17,代码来源:class.rankcontroller.php

示例6: Initialize

 /**
  * Highlight route and do authenticator setup.
  *
  * Always called by dispatcher before controller's requested method.
  * 
  * @since 2.0.3
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     if ($this->Menu) {
         $this->Menu->HighlightRoute('/dashboard/authentication');
     }
     $this->EnableSlicing($this);
     $Authenticators = Gdn::Authenticator()->GetAvailable();
     $this->ChooserList = array();
     $this->ConfigureList = array();
     foreach ($Authenticators as $AuthAlias => $AuthConfig) {
         $this->ChooserList[$AuthAlias] = $AuthConfig['Name'];
         $Authenticator = Gdn::Authenticator()->AuthenticateWith($AuthAlias);
         $ConfigURL = is_a($Authenticator, "Gdn_Authenticator") && method_exists($Authenticator, 'AuthenticatorConfiguration') ? $Authenticator->AuthenticatorConfiguration($this) : FALSE;
         $this->ConfigureList[$AuthAlias] = $ConfigURL;
     }
     $this->CurrentAuthenticationAlias = Gdn::Authenticator()->AuthenticateWith('default')->GetAuthenticationSchemeAlias();
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:26,代码来源:class.authenticationcontroller.php

示例7: Initialize

 public function Initialize()
 {
     parent::Initialize();
     Gdn_Theme::Section('Dashboard');
 }
开发者ID:edward-tsai,项目名称:vanilla4china,代码行数:5,代码来源:class.embedcontroller.php

示例8: Initialize

 /**
  * Always triggered first. Add Javascript files.
  *
  * @since 2.0.?
  * @access public
  */
 public function Initialize()
 {
     parent::Initialize();
     Gdn_Theme::Section('Dashboard');
     $this->AddJsFile('log.js');
     $this->AddJsFile('jquery.expander.js');
     $this->AddJsFile('jquery-ui.js');
     $this->Form->InputPrefix = '';
 }
开发者ID:bishopb,项目名称:vanilla,代码行数:15,代码来源:class.logcontroller.php

示例9: Initialize

 public function Initialize() {
    parent::Initialize();
    $this->AddJsFile('log.js');
    $this->AddJsFile('jquery.expander.js');
    $this->AddJsFile('jquery.ui.packed.js');
 }
开发者ID:nerdgirl,项目名称:Forums-ILoveBadTV,代码行数:6,代码来源:class.logcontroller.php


注:本文中的DashboardController::Initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。