Nextcloud PHP API (master)

INavigationManager

Manages the ownCloud navigation

Tags
since
6.0.0

Table of Contents

Constants

TYPE_APPS  = 'link'
Navigation entries of the app navigation
TYPE_GUEST  = 'guest'
Navigation entries for public page footer navigation
TYPE_SETTINGS  = 'settings'
Navigation entries of the settings navigation

Methods

add()  : void
Creates a new navigation entry
getActiveEntry()  : string
Get the current navigation entry of the currently running app
getAll()  : array<string|int, mixed>
Get a list of navigation entries
setActiveEntry()  : void
Sets the current navigation entry of the currently running app
setUnreadCounter()  : void
Set an unread counter for navigation entries

Constants

TYPE_APPS

Navigation entries of the app navigation

public mixed TYPE_APPS = 'link'
Tags
since
16.0.0

TYPE_GUEST

Navigation entries for public page footer navigation

public mixed TYPE_GUEST = 'guest'
Tags
since
16.0.0

TYPE_SETTINGS

Navigation entries of the settings navigation

public mixed TYPE_SETTINGS = 'settings'
Tags
since
16.0.0

Methods

add()

Creates a new navigation entry

public add(mixed $entry) : void
Parameters
$entry : mixed
Tags
psalm-param

NavigationEntry|callable():NavigationEntry $entry

since
6.0.0

getActiveEntry()

Get the current navigation entry of the currently running app

public getActiveEntry() : string
Tags
since
20.0.0
Return values
string

getAll()

Get a list of navigation entries

public getAll([string $type = self::TYPE_APPS ]) : array<string|int, mixed>
Parameters
$type : string = self::TYPE_APPS

type of the navigation entries

Tags
since
14.0.0
Return values
array<string|int, mixed>

setActiveEntry()

Sets the current navigation entry of the currently running app

public setActiveEntry(string $appId) : void
Parameters
$appId : string

id of the app entry to activate (from added $entry)

Tags
since
6.0.0

setUnreadCounter()

Set an unread counter for navigation entries

public setUnreadCounter(string $id, int $unreadCounter) : void
Parameters
$id : string

id of the navigation entry

$unreadCounter : int

Number of unread entries (0 to hide the counter which is the default)

Tags
since
22.0.0

        
On this page

Search results