CRM_ACL_API
class CRM_ACL_API
Constants
EDIT |
The various type of permissions. |
VIEW |
|
DELETE |
|
CREATE |
|
SEARCH |
|
ALL |
|
Methods
static bool
check(string $str, int $contactID = NULL)
Given a permission string, check for access requirements
static string
whereClause(int $type, array $tables, array $whereTables, int $contactID = NULL, bool $onlyDeleted = FALSE, bool $skipDeleteClause = FALSE, bool $skipOwnContactClause = FALSE)
Get the permissioned where clause for the user.
static array
group(int $type, int $contactID = NULL, string $tableName = 'civicrm_saved_search', null $allGroups = NULL, null $includedGroups = NULL)
Get all the groups the user has access to for the given operation.
static bool
groupPermission(int $type, int $groupID, int $contactID = NULL, string $tableName = 'civicrm_saved_search', null $allGroups = NULL, null $includedGroups = NULL)
Check if the user has access to this group for operation $type
Details
at line 58
static bool
check(string $str, int $contactID = NULL)
Given a permission string, check for access requirements
at line 95
static string
whereClause(int $type, array $tables, array $whereTables, int $contactID = NULL, bool $onlyDeleted = FALSE, bool $skipDeleteClause = FALSE, bool $skipOwnContactClause = FALSE)
Get the permissioned where clause for the user.
at line 159
static array
group(int $type, int $contactID = NULL, string $tableName = 'civicrm_saved_search', null $allGroups = NULL, null $includedGroups = NULL)
Get all the groups the user has access to for the given operation.
at line 192
static bool
groupPermission(int $type, int $groupID, int $contactID = NULL, string $tableName = 'civicrm_saved_search', null $allGroups = NULL, null $includedGroups = NULL)
Check if the user has access to this group for operation $type