Property | Type | Description | |
---|---|---|---|
$view |
Property | Type | Description | |
---|---|---|---|
$altSectionsInfo | |||
$dashboardNav | The dashboard nav instance. | ||
$sectionsInfo | The section info for the dashboard's main nav. |
Method | Description | |
---|---|---|
__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 ( ) |
Method | Description | |
---|---|---|
getActiveSection ( ) | ||
handleUserPreferencesNav ( ) | ||
handleUserPreferencesSectionLandingPage ( ) | ||
isActiveSection ( $section ) |
public getSectionsInfo ( $alt = false ) : array | ||
return | array | The sections to display in the main dashboard nav. |
public getUrlForSection ( $sectionKey ) : string | ||
$sectionKey | The section to get the url for | |
return | string | The url associated with the passed section key |
public registerSection ( $section ) | ||
$section |
protected static $sectionsInfo |