Nextcloud PHP API (master)

IManager

Tags
since
9.1

Table of Contents

Constants

KEY_ADMIN_SECTION  = 'admin-section'
KEY_ADMIN_SETTINGS  = 'admin'
KEY_PERSONAL_SECTION  = 'personal-section'
KEY_PERSONAL_SETTINGS  = 'personal'
SETTINGS_ADMIN  = 'admin'
SETTINGS_PERSONAL  = 'personal'

Methods

getAdminSections()  : array<int, array<int, IIconSection>>
returns a list of the admin sections
getAdminSettings()  : array<int, array<int, ISettings>>
returns a list of the admin settings
getAllAllowedAdminSettings()  : array<int, ISettings>
Returns a list of admin settings that the given user can use.
getAllowedAdminSettings()  : array<int, array<int, ISettings>>
Returns a list of admin settings that the given user can use for the give section
getPersonalSections()  : array<int, array<int, IIconSection>>
returns a list of the personal sections
getPersonalSettings()  : array<int, array<int, ISettings>>
returns a list of the personal settings
getSection()  : IIconSection|null
Get a specific section by type and id
registerSection()  : mixed
registerSetting()  : mixed

Constants

KEY_ADMIN_SECTION

public mixed KEY_ADMIN_SECTION = 'admin-section'
Tags
since
9.1.0
deprecated
29.0.0

Use self::SETTINGS_ADMIN instead

KEY_ADMIN_SETTINGS

public mixed KEY_ADMIN_SETTINGS = 'admin'
Tags
since
9.1.0
deprecated
29.0.0

Use self::SETTINGS_ADMIN instead

KEY_PERSONAL_SECTION

public mixed KEY_PERSONAL_SECTION = 'personal-section'
Tags
since
13.0.0
deprecated
29.0.0

Use self::SETTINGS_PERSONAL instead

KEY_PERSONAL_SETTINGS

public mixed KEY_PERSONAL_SETTINGS = 'personal'
Tags
since
13.0.0
deprecated
29.0.0

Use self::SETTINGS_PERSONAL instead

SETTINGS_ADMIN

public mixed SETTINGS_ADMIN = 'admin'
Tags
since
29.0.0

SETTINGS_PERSONAL

public mixed SETTINGS_PERSONAL = 'personal'
Tags
since
29.0.0

Methods

getAdminSections()

returns a list of the admin sections

public getAdminSections() : array<int, array<int, IIconSection>>
Tags
since
9.1.0
Return values
array<int, array<int, IIconSection>>

list of sections with priority as key

getAdminSettings()

returns a list of the admin settings

public getAdminSettings(string $section[, bool $subAdminOnly = false ]) : array<int, array<int, ISettings>>
Parameters
$section : string

the section id for which to load the settings

$subAdminOnly : bool = false

only return settings sub admins are supposed to see (since 17.0.0)

Tags
since
9.1.0
Return values
array<int, array<int, ISettings>>

list of settings with priority as key

getAllAllowedAdminSettings()

Returns a list of admin settings that the given user can use.

public getAllAllowedAdminSettings(IUser $user) : array<int, ISettings>
Parameters
$user : IUser
Tags
since
23.0.0
Return values
array<int, ISettings>

The array of admin settings there admin delegation is allowed.

getAllowedAdminSettings()

Returns a list of admin settings that the given user can use for the give section

public getAllowedAdminSettings(string $section, IUser $user) : array<int, array<int, ISettings>>
Parameters
$section : string
$user : IUser
Tags
since
23.0.0
Return values
array<int, array<int, ISettings>>

The array of admin settings there admin delegation is allowed.

getPersonalSections()

returns a list of the personal sections

public getPersonalSections() : array<int, array<int, IIconSection>>
Tags
since
13.0.0
Return values
array<int, array<int, IIconSection>>

list of sections with priority as key

getPersonalSettings()

returns a list of the personal settings

public getPersonalSettings(string $section) : array<int, array<int, ISettings>>
Parameters
$section : string

the section id for which to load the settings

Tags
since
13.0.0
Return values
array<int, array<int, ISettings>>

list of settings with priority as key

getSection()

Get a specific section by type and id

public getSection(string $type, string $sectionId) : IIconSection|null
Parameters
$type : string
$sectionId : string
Tags
psalm-param

self::SETTINGS_* $type

since
25.0.0
Return values
IIconSection|null

registerSection()

public registerSection(string $type, IIconSection> $section) : mixed
Parameters
$type : string
$section : IIconSection>
Tags
psalm-param

self::SETTINGS_* $type

since
14.0.0

registerSetting()

public registerSetting(string $type, ISettings> $setting) : mixed
Parameters
$type : string
$setting : ISettings>
Tags
psalm-param

self::SETTINGS_* $type

since
14.0.0

        
On this page

Search results