PHP Класс DashboardController, vanilla

Наследование: extends AppController
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Set PageName.
addSideMenu ( string $currentUrl = '' )
initialize ( ) Include JS, CSS, and modules used by all methods.
setHighlightRoute ( string $currentUrl = '' )
userPreferenceCollapse ( ) Sets a user's preference for dashboard panel nav collapsing. Collapsed groups are stored in an list, by their 'data-key' attribute on the nav-header element.
userPreferenceDashboardLandingPage ( ) Saves the name of the section that a user has last navigated to serve as the landing page for whenever they navigate to the dashboard.
userPreferenceSectionLandingPage ( ) Sets a user's preference for the landing page for each top-level nav item. Stored in a list as SectionName->url pairs, where SectionName is the 'data-section' attribute on the panel nav link.

Описание методов

__construct() публичный Метод

Set PageName.
С версии: 2.0.0
public __construct ( )

addSideMenu() публичный Метод

public addSideMenu ( string $currentUrl = '' )
$currentUrl string

initialize() публичный Метод

Always called by dispatcher before controller's requested method.
С версии: 2.0.0
public initialize ( )

setHighlightRoute() публичный Метод

public setHighlightRoute ( string $currentUrl = '' )
$currentUrl string

userPreferenceCollapse() публичный Метод

Sets a user's preference for dashboard panel nav collapsing. Collapsed groups are stored in an list, by their 'data-key' attribute on the nav-header element.
Saves the name of the section that a user has last navigated to serve as the landing page for whenever they navigate to the dashboard.

userPreferenceSectionLandingPage() публичный Метод

Sets a user's preference for the landing page for each top-level nav item. Stored in a list as SectionName->url pairs, where SectionName is the 'data-section' attribute on the panel nav link.