Permissions
- Full name:
\Zotlabs\Access\Permissions
Methods
version
- This method is static.
Perms
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$filter |
string | (optional) only passed to hook permissions_list |
Return Value:
Associative array with permissions and short description.
BlockedAnonPerms
- This method is static.
Return Value:
Associative array with permissions and short description.
FilledPerms
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arr |
array |
OPerms
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$arr |
array | associative perms array 'view_stream' => 1 |
Return Value:
Indexed array with elements that look like * \e string \b name the perm name (e.g. view_stream) * \e int \b value the value of the perm (e.g. 1)
FilledAutoperms
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$channel_id |
int |
PermsCompare
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$p1 |
array | The perms that have to exist in $p2 |
$p2 |
array | The perms to compare against |
Return Value:
true if all perms from $p1 exist also in $p2
connect_perms
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$channel_id |
int | A channel id |
Return Value:
Associative array with * \e array \b perms Permission array * \e int \b automatic 0 or 1
Automatically generated on 2025-03-19