Class humhub\modules\admin\widgets\AdminMenu

Inheritancehumhub\modules\admin\widgets\AdminMenu » humhub\widgets\BaseMenu » yii\base\Widget

Description of AdminMenu

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addItem() humhub\modules\admin\widgets\AdminMenu
addItemGroup() Adds new Item Group to the menu humhub\widgets\BaseMenu
canAccess() humhub\modules\admin\widgets\AdminMenu
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() humhub\modules\admin\widgets\AdminMenu
markAsActive() Add the active class from a menue item. humhub\widgets\BaseMenu
markAsInactive() Remove the active class from a menue item. humhub\widgets\BaseMenu
reset() humhub\modules\admin\widgets\AdminMenu
run() Executes the Menu Widget humhub\modules\admin\widgets\AdminMenu
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

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_INIT 'init' humhub\widgets\BaseMenu
EVENT_RUN 'run' humhub\widgets\BaseMenu
SESSION_CAN_SEE_ADMIN_SECTION 'user.canSeeAdminSection' humhub\modules\admin\widgets\AdminMenu

Property Details

$id public property
public $id "admin-menu"
$template public property
public $template "@humhub/widgets/views/leftNavigation"
$type public property
public $type "adminNavigation"

Method Details

addItem() public method

public void addItem ( $item )
$item
canAccess() public static method

public static void canAccess ( )
init() public method

public void init ( )
reset() public static method

public static void reset ( )
run() public method

Executes the Menu Widget

public void run ( )