AccessList
- Full name:
\Zotlabs\Access\AccessList
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
REQUIRED_KEYS_CONSTRUCTOR |
private | ['channel_allow_cid', 'channel_allow_gid', 'channel_deny_cid', 'channel_deny_gid'] | |
REQUIRED_KEYS_SET |
private | ['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid'] |
Properties
allow_cid
allow_gid
deny_cid
deny_gid
explicit
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$channel |
array | A channel array, where these entries are evaluated: \e string \b channel_allow_cid => string of allowed cids \e string \b channel_allow_gid => string of allowed gids \e string \b channel_deny_cid => string of denied cids \e string \b channel_deny_gid => string of denied gids |
validate_input_array
Parameters:
Parameter | Type | Description |
---|---|---|
$arr |
array | |
$required_keys |
array |
get_explicit
set
Parameters:
Parameter | Type | Description |
---|---|---|
$arr |
array | * \e string \b allow_cid => string of allowed cids * \e string \b allow_gid => string of allowed gids * \e string \b deny_cid => string of denied cids * \e string \b deny_gid => string of denied gids |
$explicit |
bool | (optional) default true |
get
Return Value:
An associative array with: * \e string \b allow_cid => string of allowed cids * \e string \b allow_gid => string of allowed gids * \e string \b deny_cid => string of denied cids * \e string \b deny_gid => string of denied gids
set_from_array
Parameters:
Parameter | Type | Description |
---|---|---|
$arr |
array | An associative array with: \e array|string \b contact_allow => array with cids or comma-seperated string \e array|string \b group_allow => array with gids or comma-seperated string \e array|string \b contact_deny => array with cids or comma-seperated string \e array|string \b group_deny => array with gids or comma-seperated string |
$explicit |
bool | (optional) default true |
is_private
Return Value:
Return true if any of allow_ deny_ values is set.
Automatically generated on 2025-03-19