MailSecurityContext extends SecurityContext
Table of Contents
Constants
- GUEST_USER = 'guest_user'
Methods
- __construct() : mixed
- Creates new instance of SecurityContext specific by user.
- canAdd() : bool
- canChangeRights() : bool
- canChangeSettings() : bool
- canCreateWorkflow() : bool
- canDelete() : bool
- canMarkDeleted() : bool
- canMove() : bool
- canRead() : bool
- canRename() : bool
- canRestore() : bool
- canShare() : bool
- canStartBizProc() : bool
- canUpdate() : bool
- getErrorByCode() : array<string|int, Error>
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getErrorsByCode() : array<string|int, Error>
- Getting array of errors with the necessary code.
- getSqlExpressionForList() : string
- getUserId() : mixed
- preloadOperationsForChildren() : void
- Load operations if we show one level with objects.
- preloadOperationsForSpecifiedObjects() : mixed
Constants
GUEST_USER
public
mixed
GUEST_USER
= 'guest_user'
Methods
__construct()
Creates new instance of SecurityContext specific by user.
public
__construct(CUser|int $user) : mixed
Parameters
- $user : CUser|int
-
User.
canAdd()
public
canAdd(mixed $targetId) : bool
Parameters
- $targetId : mixed
Return values
boolcanChangeRights()
public
canChangeRights(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanChangeSettings()
public
canChangeSettings(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanCreateWorkflow()
public
canCreateWorkflow(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanDelete()
public
canDelete(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanMarkDeleted()
public
canMarkDeleted(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanMove()
public
canMove(mixed $objectId, mixed $targetId) : bool
Parameters
- $objectId : mixed
- $targetId : mixed
Return values
boolcanRead()
public
canRead(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanRename()
public
canRename(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanRestore()
public
canRestore(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanShare()
public
canShare(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanStartBizProc()
public
canStartBizProc(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolcanUpdate()
public
canUpdate(mixed $objectId) : bool
Parameters
- $objectId : mixed
Return values
boolgetErrorByCode()
Getting once error with the necessary code.
public
getErrorByCode(mixed $code) : array<string|int, Error>
Parameters
- $code : mixed
-
Code of error.
Tags
Return values
array<string|int, Error>getErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getErrorsByCode()
Getting array of errors with the necessary code.
public
getErrorsByCode(mixed $code) : array<string|int, Error>
Parameters
- $code : mixed
-
Code of error.
Tags
Return values
array<string|int, Error>getSqlExpressionForList()
public
getSqlExpressionForList(mixed $columnObjectId, mixed $columnCreatedBy) : string
Parameters
- $columnObjectId : mixed
- $columnCreatedBy : mixed
Return values
stringgetUserId()
public
getUserId() : mixed
preloadOperationsForChildren()
Load operations if we show one level with objects.
public
preloadOperationsForChildren(mixed $parentObjectId) : void
Parameters
- $parentObjectId : mixed
preloadOperationsForSpecifiedObjects()
public
preloadOperationsForSpecifiedObjects(mixed $parentObjectId, array<string|int, mixed> $objectIds) : mixed
Parameters
- $parentObjectId : mixed
- $objectIds : array<string|int, mixed>