Property | Type | Description | |
---|---|---|---|
$_appPerms | array | Caches information about application permissions. | |
$_perms | Horde_Perms_Base | A permissions instance. | |
$_registry | Horde_Registry | A registry instance. |
Method | Description | |
---|---|---|
__construct ( Horde_Registry $registry, Horde_Perms_Base $perms ) | Constructor. | |
getApplicationPermissions ( string $app ) : array | Returns information about permissions implemented by an application. | |
getAvailable ( string $name ) : array | Returns the available permissions for a given level. | |
getParams ( string $name ) : array | Given a permission name, returns the parameters for that permission. | |
getTitle ( string $name ) : string | Given a permission name, returns the title for that permission by looking it up in the applications's permission api. | |
getType ( string $name ) : string | Given a permission name, returns the type for that permission. | |
hasAppPermission ( string $permission, array $opts = [] ) : mixed | Finds out if the user has the specified rights to the given object, specific to a certain application. | |
newPermission ( string $name ) : Horde_Perms_Permission | Returns a new permissions object. |
public __construct ( Horde_Registry $registry, Horde_Perms_Base $perms ) | ||
$registry | Horde_Registry | |
$perms | Horde_Perms_Base |
public getApplicationPermissions ( string $app ) : array | ||
$app | string | An application name. |
return | array | Hash with permissions information. |
public getAvailable ( string $name ) : array | ||
$name | string | The permission's name. |
return | array | An array of available permissions and their titles or false if not sub permissions exist for this level. |
public hasAppPermission ( string $permission, array $opts = [] ) : mixed | ||
$permission | string | The permission to check. |
$opts | array | Additional options:
'app' - (string) The app to check. DEFAULT: The current pushed app. 'opts' - (array) Additional options to pass to the app function. DEFAULT: None |
return | mixed | The specified permissions. |
public newPermission ( string $name ) : Horde_Perms_Permission | ||
$name | string | The permission's name. |
return | Horde_Perms_Permission | A new permissions object. |
protected array $_appPerms | ||
return | array |
protected Horde_Perms_Base $_perms | ||
return | Horde_Perms_Base |