PHP Класс DashboardNavModule, vanilla

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

Открытые свойства

Свойство Тип Описание
$view

Защищенные свойства (Protected)

Свойство Тип Описание
$altSectionsInfo
$dashboardNav The dashboard nav instance.
$sectionsInfo The section info for the dashboard's main nav.

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

Метод Описание
__construct ( $cssClass = '', $useCssPrefix = true )
getDashboardNav ( ) : DashboardNavModule
getSectionsInfo ( $alt = false ) : array Check user permissions, translate our translate-ables. Returns an array of the main sections ready to be put into a view.
getUrlForSection ( $sectionKey ) : string Retrieves or resolves the default url for a section link depending on the sessioned user's permissions.
handleEmpty ( )
prepare ( )
registerSection ( $section ) Adds a section to the sections info array to output in the dashboard.
toString ( )

Приватные методы

Метод Описание
getActiveSection ( )
handleUserPreferencesNav ( )
handleUserPreferencesSectionLandingPage ( )
isActiveSection ( $section )

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

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

public __construct ( $cssClass = '', $useCssPrefix = true )

getDashboardNav() публичный статический Метод

public static getDashboardNav ( ) : DashboardNavModule
Результат DashboardNavModule

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

Check user permissions, translate our translate-ables. Returns an array of the main sections ready to be put into a view.
public getSectionsInfo ( $alt = false ) : array
Результат array The sections to display in the main dashboard nav.

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

Retrieves or resolves the default url for a section link depending on the sessioned user's permissions.
public getUrlForSection ( $sectionKey ) : string
$sectionKey The section to get the url for
Результат string The url associated with the passed section key

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

public handleEmpty ( )

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

public prepare ( )

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

Adds a section to the sections info array to output in the dashboard.
public registerSection ( $section )
$section

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

public toString ( )

Описание свойств

$altSectionsInfo защищенное статическое свойство

protected static $altSectionsInfo

$dashboardNav защищенное статическое свойство

The dashboard nav instance.
protected static $dashboardNav

$sectionsInfo защищенное статическое свойство

The section info for the dashboard's main nav.
protected static $sectionsInfo

$view публичное свойство

public $view