Version: current

# Class Permission_Group

Permission_Group class

This class is used to group permissions together for showing on an interface.

Package: sapphire\security
Located at sapphire/security/Permission.php

## Methods summary

`public` | # `__construct( string $name, array $permissions )` Constructor Constructor #### Parameters $name string $name Text that could be used as label used in an interface $permissions array $permissions Associative array of permissions in this permission group. The array indicies are the permission codes as used in `Permission::check()`. The value is suitable for using in an interface.
`public string` | # `getName( )` Get the name of the permission group Get the name of the permission group #### Returns `string` Name (label) of the permission group
`public array` | # `getPermissions( )` Get permissions Get permissions #### Returns `array` Associative array of permissions in this permission group. The array indicies are the permission codes as used in `Permission::check()`. The value is suitable for using in an interface.

### Magic methods summary

## Properties summary

`protected string` | $name | # Name of the permission group (can be used as label in an interface) Name of the permission group (can be used as label in an interface)
`protected string` | $permissions | # Associative array of permissions in this permission group. The array indicies are the permission codes as used in `Permission::check()`. The value is suitable for using in an interface. Associative array of permissions in this permission group. The array indicies are the permission codes as used in `Permission::check()`. The value is suitable for using in an interface.

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -