$Permission
- is system object, that provides permissions manipulating interface, instance can be obtained in such way:
<?php
$Permission = \cs\Permission::instance();
$Permission
object has next public methods:
- add()
- get()
- set()
- del()
- get_all()
Add permission
get($id = null : int|null, $group = null : null|string, $label = null : null|string, $condition = 'and' : string) : array|false
Get permission data
Set permission
Deletion of permission or array of permissions
Returns array of all permissions grouped by permissions groups
###[Up](#) \cs\Permission\AllThis trait has several protected methods and is used by cs\Group
and cs\User
classes. Usually there is no need to use it somewhere else.