ShareReviewPermission
in package
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
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_CREATE
public
mixed
FILES_CREATE
= 'files:create'
Tags
FILES_DELETE
public
mixed
FILES_DELETE
= 'files:delete'
Tags
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
FILES_RESHARE
public
mixed
FILES_RESHARE
= 'files:reshare'
Tags
FILES_UPDATE
public
mixed
FILES_UPDATE
= 'files:update'
Tags
Properties
$displayName read-only
public
string
$displayName
$hint read-only
public
string|null
$hint
= null
$id read-only
public
string
$id
$priority read-only
public
int
$priority
= 50
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.