Class humhub\modules\space\widgets\AdminMenu

Inheritancehumhub\modules\space\widgets\AdminMenu » humhub\widgets\BaseMenu » yii\base\Widget
Available since version0.5
Deprecated since version since version 0.21

Deprecated Admin Menu Widget

Use humhub\module\space\modules\manage\widget\Menu instead! This is only a stub to avoid potential module errors!

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$id string Dom element id humhub\widgets\BaseMenu
$itemGroups array Of item groups humhub\widgets\BaseMenu
$items array Of items humhub\widgets\BaseMenu
$template string Template file humhub\widgets\BaseMenu
$type string Type of the navigation, optional for identifing. humhub\widgets\BaseMenu

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addItem() Adds new Item to the menu humhub\widgets\BaseMenu
addItemGroup() Adds new Item Group to the menu humhub\widgets\BaseMenu
deleteItemByUrl() Removes Item by URL humhub\widgets\BaseMenu
getActive() humhub\widgets\BaseMenu
getItemGroups() Returns all Item Groups humhub\widgets\BaseMenu
getItems() Returns Items of this Navigation humhub\widgets\BaseMenu
init() Initializes the navigation widget. humhub\widgets\BaseMenu
markAsActive() Add the active class from a menue item. humhub\widgets\BaseMenu
markAsInactive() Remove the active class from a menue item. humhub\widgets\BaseMenu
run() Executes the Menu Widget humhub\widgets\BaseMenu
setActive() Activates the menu item with the given url humhub\widgets\BaseMenu
setInactive() humhub\widgets\BaseMenu
setViewState() This function is used in combination with pjax to get sure the required menu is active humhub\widgets\BaseMenu


Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_INIT 'init' humhub\widgets\BaseMenu
EVENT_RUN 'run' humhub\widgets\BaseMenu