Версия: 6.x
burger close
Класс ModuleRights
Граф наследования:ModuleRights:
DefaultModuleRights AbstractModuleRights

Подробное описание

Класс описывает права, которые есть у данного модуля

Поля данных

const INTERACTION_CREATE = 'interaction_create'
 
const INTERACTION_READ = 'interaction_read'
 
const INTERACTION_UPDATE = 'interaction_update'
 
const INTERACTION_DELETE = 'interaction_delete'
 
const INTERACTION_OTHER_READ = 'interaction_other_read'
 
const DEAL_CREATE = 'deal_create'
 
const DEAL_READ = 'deal_read'
 
const DEAL_UPDATE = 'deal_update'
 
const DEAL_DELETE = 'deal_delete'
 
const DEAL_OTHER_READ = 'deal_other_read'
 
const AUTOTASK_CREATE = 'autotask_create'
 
const AUTOTASK_READ = 'autotask_read'
 
const AUTOTASK_UPDATE = 'autotask_update'
 
const AUTOTASK_DELETE = 'autotask_delete'
 
const TASK_CREATE = 'task_create'
 
const TASK_READ = 'task_read'
 
const TASK_UPDATE = 'task_update'
 
const TASK_DELETE = 'task_delete'
 
const TASK_FILTER_CREATE = 'task_filter_create'
 
const TASK_FILTER_UPDATE = 'task_filter_update'
 
const TASK_FILTER_DELETE = 'task_filter_delete'
 
const TASK_OTHER_READ = 'task_other_read'
 
const TASK_OTHER_CREATE = 'task_other_create'
 
const TASK_OTHER_UPDATE = 'task_other_update'
 
const TASK_OTHER_DELETE = 'task_other_delete'
 
const TASK_CHANGE_IMPLEMENTER_USER = 'task_change_implementer_user'
 
const TASK_CHANGE_CREATOR_USER = 'task_change_creator_user'
 
const TASK_CHANGE_PLANNED_END = 'task_change_planned_end'
 
const STATUS_CREATE = 'status_create'
 
const STATUS_READ = 'status_read'
 
const STATUS_UPDATE = 'status_update'
 
const STATUS_DELETE = 'status_delete'
 
const CALL_HISTORY_READ = 'call_history_read'
 
const CALL_HISTORY_DELETE = 'call_history_delete'
 
const CALL_HISTORY_OTHER_READ = 'call_history_other_read'
 
const CALL_HISTORY_OTHER_DELETE = 'call_history_other_delete'
 
- Поля данных унаследованные от DefaultModuleRights
const RIGHT_READ = 'read'
 
const RIGHT_CREATE = 'create'
 
const RIGHT_UPDATE = 'update'
 
const RIGHT_DELETE = 'delete'
 
- Поля данных унаследованные от AbstractModuleRights
 $rights = []
 
 $right_groups = []
 
 $root_items
 
 $auto_checkers
 

Защищенные члены

 getSelfModuleRights ()
 
 getSelfAutoCheckers ()
 
- Защищенные члены унаследованные от DefaultModuleRights
 getSelfModuleRights ()
 
 getSelfAutoCheckers ()
 
- Защищенные члены унаследованные от AbstractModuleRights
 __construct ($module)
 
 getSelfModuleRights ()
 
 getSelfAutoCheckers ()
 
 addRights ($rights, $parents=[])
 

Дополнительные унаследованные члены

- Открытые члены унаследованные от AbstractModuleRights
 getRights ()
 
 getRightsTree ()
 
 hasRight ($alias)
 
 getRightTitleWithPath ($alias)
 
 checkErrorAutoCheckers ($type, $params)
 
- Открытые статические члены унаследованные от AbstractModuleRights
static getInstance (\RS\Orm\ConfigObject $config)
 
- Защищенные данные унаследованные от AbstractModuleRights
 $module
 
- Статические защищенные данные унаследованные от AbstractModuleRights
static $instance = []
 

Методы

getSelfAutoCheckers ( )
protected

Возвращает собственные инструкции для автоматических проверок

Возвращает
[]
getSelfModuleRights ( )
protected

Возвращает возможные права модуля

Возвращает
(Right|RightGroup)[]

Поля

const AUTOTASK_CREATE = 'autotask_create'
const AUTOTASK_DELETE = 'autotask_delete'
const AUTOTASK_READ = 'autotask_read'
const AUTOTASK_UPDATE = 'autotask_update'
const CALL_HISTORY_DELETE = 'call_history_delete'
const CALL_HISTORY_OTHER_DELETE = 'call_history_other_delete'
const CALL_HISTORY_OTHER_READ = 'call_history_other_read'
const CALL_HISTORY_READ = 'call_history_read'
const DEAL_CREATE = 'deal_create'
const DEAL_DELETE = 'deal_delete'
const DEAL_OTHER_READ = 'deal_other_read'
const DEAL_READ = 'deal_read'
const DEAL_UPDATE = 'deal_update'
const INTERACTION_CREATE = 'interaction_create'
const INTERACTION_DELETE = 'interaction_delete'
const INTERACTION_OTHER_READ = 'interaction_other_read'
const INTERACTION_READ = 'interaction_read'
const INTERACTION_UPDATE = 'interaction_update'
const STATUS_CREATE = 'status_create'
const STATUS_DELETE = 'status_delete'
const STATUS_READ = 'status_read'
const STATUS_UPDATE = 'status_update'
const TASK_CHANGE_CREATOR_USER = 'task_change_creator_user'
const TASK_CHANGE_IMPLEMENTER_USER = 'task_change_implementer_user'
const TASK_CHANGE_PLANNED_END = 'task_change_planned_end'
const TASK_CREATE = 'task_create'
const TASK_DELETE = 'task_delete'
const TASK_FILTER_CREATE = 'task_filter_create'
const TASK_FILTER_DELETE = 'task_filter_delete'
const TASK_FILTER_UPDATE = 'task_filter_update'
const TASK_OTHER_CREATE = 'task_other_create'
const TASK_OTHER_DELETE = 'task_other_delete'
const TASK_OTHER_READ = 'task_other_read'
const TASK_OTHER_UPDATE = 'task_other_update'
const TASK_READ = 'task_read'
const TASK_UPDATE = 'task_update'