本文整理汇总了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');
}
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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();
}
示例7: Initialize
public function Initialize()
{
parent::Initialize();
Gdn_Theme::Section('Dashboard');
}
示例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 = '';
}
示例9: Initialize
public function Initialize() {
parent::Initialize();
$this->AddJsFile('log.js');
$this->AddJsFile('jquery.expander.js');
$this->AddJsFile('jquery.ui.packed.js');
}