CRM_Core_Permission_Joomla
class CRM_Core_Permission_Joomla extends CRM_Core_Permission_Base
Properties
array | $permissions | permission mapping to stub check() calls | from CRM_Core_Permission_Base |
Methods
Translate permission.
Get the permissioned where clause for the user.
Get the permissioned where clause for the user when trying to see groups.
Get all groups from database, filtered by permissions for this user
Get group clause for this user.
Given a permission string, check for access requirements
Given a roles array, check for access requirements
Get all the contact emails for users that have a specific permission.
Get all the contact emails for users that have a specific role.
Determine whether the permission store allows us to store a list of permissions generated dynamically (eg by hook_civicrm_permissions.)
No description
Get the permissions defined in the hook_civicrm_permission implementation of the given module.
Get the permissions defined in the hook_civicrm_permission implementation in all enabled CiviCRM module extensions.
No description
Details
in CRM_Core_Permission_Base at line 61
NULL|string
translatePermission(string $perm, string $nativePrefix, array $map)
Translate permission.
in CRM_Core_Permission_Base at line 85
string
getPermission()
Get the current permission of this user.
in CRM_Core_Permission_Base at line 102
string
whereClause(int $type, array $tables, array $whereTables)
Get the permissioned where clause for the user.
in CRM_Core_Permission_Base at line 119
string
getPermissionedStaticGroupClause(int $type, array $tables, array $whereTables)
Get the permissioned where clause for the user when trying to see groups.
in CRM_Core_Permission_Base at line 137
array
group(string $groupType = NULL, bool $excludeHidden = TRUE)
Get all groups from database, filtered by permissions for this user
in CRM_Core_Permission_Base at line 154
string
groupClause(int $type, array $tables, array $whereTables)
Get group clause for this user.
at line 51
check(string $str, int $userId = NULL)
Given a permission string, check for access requirements
at line 140
bool
checkGroupRole(array $array)
Given a roles array, check for access requirements
in CRM_Core_Permission_Base at line 190
permissionEmails(string $permissionName)
Get all the contact emails for users that have a specific permission.
in CRM_Core_Permission_Base at line 201
roleEmails(string $roleName)
Get all the contact emails for users that have a specific role.
at line 99
bool
isModulePermissionSupported()
Determine whether the permission store allows us to store a list of permissions generated dynamically (eg by hook_civicrm_permissions.)
at line 147
upgradePermissions(array $permissions)
in CRM_Core_Permission_Base at line 245
static array
getModulePermissions($module)
Get the permissions defined in the hook_civicrm_permission implementation of the given module.
Note: At time of writing, this is only used with native extension-modules, so there's one, predictable calling convention (regardless of CMS).
in CRM_Core_Permission_Base at line 265
array
getAllModulePermissions(bool $descriptions = FALSE)
Get the permissions defined in the hook_civicrm_permission implementation in all enabled CiviCRM module extensions.