Nextcloud PHP API (master)

ShareReviewPermission
in package

FinalYes

A single permission granted by an app-managed share, as exposed to a share-review app through {@see ShareReviewEntry::$permissions}.

Permissions are identified by an opaque, namespaced string owned by the emitting app and carry their own localized display metadata, so a share-review app can render any app-specific permission without interpreting it.

Tags
since
34.0.2
Attributes
#[Consumable]
$since: '34.0.2'

Table of Contents

Constants

FILES_CREATE  : mixed = 'files:create'
FILES_DELETE  : mixed = 'files:delete'
FILES_READ  : mixed = 'files:read'
Identifiers for the permissions of files/folder shares, owned by the files app. Other apps MUST NOT emit these — every app uses its own namespace, even for permissions with the same name (e.g. "deck:edit").
FILES_RESHARE  : mixed = 'files:reshare'
FILES_UPDATE  : mixed = 'files:update'

Properties

$displayName  : string
$hint  : string|null
$id  : string
$priority  : int

Methods

__construct()  : mixed

Constants

FILES_READ

Identifiers for the permissions of files/folder shares, owned by the files app. Other apps MUST NOT emit these — every app uses its own namespace, even for permissions with the same name (e.g. "deck:edit").

public mixed FILES_READ = 'files:read'
Tags
since
34.0.2

Properties

Methods

__construct()

public __construct(string $id, string $displayName[, string|null $hint = null ][, int $priority = 50 ]) : mixed
Parameters
$id : string

Opaque, stable identifier owned by the emitting app, prefixed with the emitting app's ID ("<appId>:", e.g. "deck:manage"). Apps never share identifiers, even for permissions with the same name. Consumers must not parse or interpret the identifier beyond equality checks (e.g. for icon or translation lookup).

$displayName : string

Localized, human readable label.

$hint : string|null = null

Optional localized description.

$priority : int = 50

1-100, higher is listed first.

Tags
since
34.0.2
On this page

Search results