MailTemplateAccess
Table of Contents
Constants
-
ALL_USERS_ENTITY
= ['meta-user', 'all-users']
-
DEPARTMENT_ENTITY_TYPE
= 'department'
-
DEPARTMENT_ENTITY_TYPE_CODE
= 2
-
USER_ENTITY_TYPE
= 'user'
-
USER_ENTITY_TYPE_CODE
= 1
Methods
-
addAccessEntity()
: void
-
checkAccessToLimitedTemplate()
: bool
-
deleteAccessEntity()
: void
-
deleteAccessRelationsByTemplateID()
: void
-
getAccessDataByTemplateID()
: array<string|int, AccessEntity>
-
getAllAvailableSharedTemplatesId()
: array<string|int, mixed>
-
getCodeByType()
: int
-
getTypeByCode()
: string|null
-
setLimitedAccessToTemplate()
: void
ALL_USERS_ENTITY
public
mixed
ALL_USERS_ENTITY
= ['meta-user', 'all-users']
DEPARTMENT_ENTITY_TYPE
public
mixed
DEPARTMENT_ENTITY_TYPE
= 'department'
DEPARTMENT_ENTITY_TYPE_CODE
public
mixed
DEPARTMENT_ENTITY_TYPE_CODE
= 2
USER_ENTITY_TYPE
public
mixed
USER_ENTITY_TYPE
= 'user'
USER_ENTITY_TYPE_CODE
public
mixed
USER_ENTITY_TYPE_CODE
= 1
addAccessEntity()
public
static addAccessEntity(int $templateId, AccessEntity $entity) : void
Parameters
-
$templateId
: int
-
-
$entity
: AccessEntity
-
checkAccessToLimitedTemplate()
public
static checkAccessToLimitedTemplate(int $templateId[, int $userId = 0 ]) : bool
Parameters
-
$templateId
: int
-
-
$userId
: int
= 0
-
deleteAccessEntity()
public
static deleteAccessEntity(int $templateId, AccessEntity $entity) : void
Parameters
-
$templateId
: int
-
-
$entity
: AccessEntity
-
deleteAccessRelationsByTemplateID()
public
static deleteAccessRelationsByTemplateID(int $templateId) : void
Parameters
-
$templateId
: int
-
getAccessDataByTemplateID()
public
static getAccessDataByTemplateID(int $templateId) : array<string|int, AccessEntity>
Parameters
-
$templateId
: int
-
getAllAvailableSharedTemplatesId()
public
static getAllAvailableSharedTemplatesId([int $userId = 0 ]) : array<string|int, mixed>
Parameters
-
$userId
: int
= 0
-
Return values
array<string|int, mixed>
getCodeByType()
public
static getCodeByType(string $type) : int
Parameters
-
$type
: string
-
getTypeByCode()
public
static getTypeByCode(int $type) : string|null
Parameters
-
$type
: int
-
Return values
string|null
setLimitedAccessToTemplate()
public
static setLimitedAccessToTemplate(int $templateId, array<string|int, mixed> $newAccessEntities[, array<string|int, mixed> $curAccessEntities = [] ]) : void
Parameters
-
$templateId
: int
-
-
$newAccessEntities
: array<string|int, mixed>
-
-
$curAccessEntities
: array<string|int, mixed>
= []
-
-
throws
-
Exception