UserPermissionsManager
Table of Contents
Constants
-
ACTION_READ
= 'READ'
-
ACTION_UPDATE
= 'UPDATE'
-
ENTITY_SCHEDULE
= 'SCHEDULE'
-
ENTITY_SHIFT_PLAN
= 'SHIFT_PLAN'
-
ENTITY_WORKTIME_RECORD
= 'WORKTIME_RECORD'
-
OP_MANAGE_WORKTIME
= 'tm_manage'
-
OP_MANAGE_WORKTIME_ALL
= 'tm_manage_all'
-
OP_READ_SCHEDULES_ALL
= 'tm_read_schedules_all'
-
OP_READ_SHIFT_PLANS_ALL
= 'tm_read_shift_plans_all'
-
OP_READ_WORKTIME_ALL
= 'tm_read'
-
OP_READ_WORKTIME_SUBORDINATE
= 'tm_read_subordinate'
-
OP_UPDATE_SCHEDULES_ALL
= 'tm_update_schedules_all'
-
OP_UPDATE_SETTINGS
= 'tm_settings'
-
OP_UPDATE_SHIFT_PLANS_ALL
= 'tm_update_shift_plans_all'
-
OP_UPDATE_WORKTIME_ALL
= 'tm_write'
-
OP_UPDATE_WORKTIME_SUBORDINATE
= 'tm_write_subordinate'
Methods
-
__construct()
: mixed
-
canApproveWorktime()
: bool
-
canCreateSchedule()
: mixed
-
canCreateViolationRules()
: mixed
-
canDeleteSchedule()
: mixed
-
canDeleteSchedules()
: mixed
-
canManageWorktime()
: mixed
-
canManageWorktimeAll()
: mixed
-
canReadSchedule()
: mixed
-
canReadSchedules()
: mixed
-
canReadShiftPlan()
: mixed
-
canReadWorktime()
: mixed
-
canReadWorktimeAll()
: mixed
-
canReadWorktimeSubordinate()
: mixed
-
canUpdateSchedule()
: mixed
-
canUpdateSchedules()
: mixed
-
canUpdateSettings()
: mixed
-
canUpdateShiftPlan()
: mixed
-
canUpdateShiftPlans()
: mixed
-
canUpdateViolationRules()
: mixed
-
canUpdateWorktime()
: mixed
-
canUpdateWorktimeAll()
: mixed
-
canUpdateWorktimeSubordinate()
: mixed
-
getActionTitle()
: mixed
-
getActionTitles()
: mixed
-
getEntityTitle()
: mixed
-
getInstanceByUser()
: mixed
-
getMap()
: mixed
-
getOperationsNames()
: mixed
-
getUserCodesAccessibleToRead()
: mixed
-
getUserIdsAccessibleToRead()
: mixed
ACTION_READ
public
mixed
ACTION_READ
= 'READ'
ACTION_UPDATE
public
mixed
ACTION_UPDATE
= 'UPDATE'
ENTITY_SCHEDULE
public
mixed
ENTITY_SCHEDULE
= 'SCHEDULE'
ENTITY_SHIFT_PLAN
public
mixed
ENTITY_SHIFT_PLAN
= 'SHIFT_PLAN'
ENTITY_WORKTIME_RECORD
public
mixed
ENTITY_WORKTIME_RECORD
= 'WORKTIME_RECORD'
OP_MANAGE_WORKTIME
public
mixed
OP_MANAGE_WORKTIME
= 'tm_manage'
OP_MANAGE_WORKTIME_ALL
public
mixed
OP_MANAGE_WORKTIME_ALL
= 'tm_manage_all'
OP_READ_SCHEDULES_ALL
public
mixed
OP_READ_SCHEDULES_ALL
= 'tm_read_schedules_all'
OP_READ_SHIFT_PLANS_ALL
public
mixed
OP_READ_SHIFT_PLANS_ALL
= 'tm_read_shift_plans_all'
OP_READ_WORKTIME_ALL
public
mixed
OP_READ_WORKTIME_ALL
= 'tm_read'
OP_READ_WORKTIME_SUBORDINATE
public
mixed
OP_READ_WORKTIME_SUBORDINATE
= 'tm_read_subordinate'
OP_UPDATE_SCHEDULES_ALL
public
mixed
OP_UPDATE_SCHEDULES_ALL
= 'tm_update_schedules_all'
OP_UPDATE_SETTINGS
public
mixed
OP_UPDATE_SETTINGS
= 'tm_settings'
OP_UPDATE_SHIFT_PLANS_ALL
public
mixed
OP_UPDATE_SHIFT_PLANS_ALL
= 'tm_update_shift_plans_all'
OP_UPDATE_WORKTIME_ALL
public
mixed
OP_UPDATE_WORKTIME_ALL
= 'tm_write'
OP_UPDATE_WORKTIME_SUBORDINATE
public
mixed
OP_UPDATE_WORKTIME_SUBORDINATE
= 'tm_write_subordinate'
__construct()
public
__construct(IUserOperationChecker $userOperationChecker, mixed $userId) : mixed
Parameters
-
$userOperationChecker
: IUserOperationChecker
-
-
$userId
: mixed
-
canApproveWorktime()
public
canApproveWorktime(mixed $recordOwnerUserId) : bool
Parameters
-
$recordOwnerUserId
: mixed
-
canCreateSchedule()
public
canCreateSchedule() : mixed
canCreateViolationRules()
public
canCreateViolationRules(mixed $entityCode) : mixed
Parameters
-
$entityCode
: mixed
-
canDeleteSchedule()
public
canDeleteSchedule(mixed $scheduleId) : mixed
Parameters
-
$scheduleId
: mixed
-
canDeleteSchedules()
public
canDeleteSchedules() : mixed
canManageWorktime()
public
canManageWorktime() : mixed
canManageWorktimeAll()
public
canManageWorktimeAll() : mixed
canReadSchedule()
public
canReadSchedule(mixed $scheduleId) : mixed
Parameters
-
$scheduleId
: mixed
-
canReadSchedules()
public
canReadSchedules() : mixed
canReadShiftPlan()
public
canReadShiftPlan(mixed $scheduleId) : mixed
Parameters
-
$scheduleId
: mixed
-
canReadWorktime()
public
canReadWorktime(mixed $recordOwnerUserId) : mixed
Parameters
-
$recordOwnerUserId
: mixed
-
canReadWorktimeAll()
public
canReadWorktimeAll() : mixed
canReadWorktimeSubordinate()
public
canReadWorktimeSubordinate() : mixed
canUpdateSchedule()
public
canUpdateSchedule(mixed $scheduleId) : mixed
Parameters
-
$scheduleId
: mixed
-
canUpdateSchedules()
public
canUpdateSchedules() : mixed
canUpdateSettings()
public
canUpdateSettings() : mixed
canUpdateShiftPlan()
public
canUpdateShiftPlan(mixed $scheduleId) : mixed
Parameters
-
$scheduleId
: mixed
-
canUpdateShiftPlans()
public
canUpdateShiftPlans() : mixed
canUpdateViolationRules()
public
canUpdateViolationRules(mixed $entityCode) : mixed
Parameters
-
$entityCode
: mixed
-
canUpdateWorktime()
public
canUpdateWorktime(mixed $recordOwnerUserId) : mixed
Parameters
-
$recordOwnerUserId
: mixed
-
canUpdateWorktimeAll()
public
canUpdateWorktimeAll() : mixed
canUpdateWorktimeSubordinate()
public
canUpdateWorktimeSubordinate() : mixed
getActionTitle()
public
getActionTitle(mixed $action) : mixed
Parameters
-
$action
: mixed
-
getActionTitles()
public
getActionTitles() : mixed
getEntityTitle()
public
getEntityTitle(mixed $entity) : mixed
Parameters
-
$entity
: mixed
-
getInstanceByUser()
public
static getInstanceByUser(CUser $user) : mixed
Parameters
-
$user
: CUser
-
getMap()
public
getMap() : mixed
getOperationsNames()
public
static getOperationsNames() : mixed
getUserCodesAccessibleToRead()
public
getUserCodesAccessibleToRead() : mixed
getUserIdsAccessibleToRead()
public
getUserIdsAccessibleToRead() : mixed