Bitrix API

TemplateModel implements AccessibleTask

Table of Contents

Interfaces

AccessibleTask

Constants

ROLE_OWNER  = 'OWNER'

Methods

createFromArray()  : AccessibleItem
createFromId()  : AccessibleItem
createNew()  : static
getChecklist()  : array<string|int, mixed>
getDescription()  : string
getGroupId()  : int
getId()  : int
getMembers()  : array<string|int, mixed>
getStatus()  : int|null
getTemplatePermission()  : int
getUserRoles()  : array<string|int, mixed>
invalidateCache()  : mixed
isClosed()  : bool
isDeleted()  : bool
isInDepartment()  : bool
isMember()  : bool
isRegular()  : bool
setGroupId()  : $this
setId()  : $this
setMembers()  : $this
setRegular()  : bool

Constants

Methods

createNew()

public static createNew() : static
Return values
static

getChecklist()

public getChecklist() : array<string|int, mixed>
Tags
throws
ArgumentException
throws
NotImplementedException
throws
SystemException
Return values
array<string|int, mixed>

getDescription()

public getDescription() : string
Return values
string

getMembers()

public getMembers([string|null $role = null ]) : array<string|int, mixed>
Parameters
$role : string|null = null
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

getStatus()

public getStatus() : int|null
Return values
int|null

getUserRoles()

public getUserRoles(int $userId) : array<string|int, mixed>
Parameters
$userId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

invalidateCache()

public static invalidateCache(int $templateId) : mixed
Parameters
$templateId : int

isInDepartment()

public isInDepartment(int $userId[, bool $recursive = false ][, array<string|int, mixed> $roles = [] ]) : bool
Parameters
$userId : int
$recursive : bool = false
$roles : array<string|int, mixed> = []
Return values
bool

isMember()

public isMember(int $userId[, string|null $role = null ]) : bool
Parameters
$userId : int
$role : string|null = null
Return values
bool

isRegular()

public isRegular() : bool
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
bool

setGroupId()

public setGroupId(int $groupId) : $this
Parameters
$groupId : int
Return values
$this

setId()

public setId(int $id) : $this
Parameters
$id : int
Return values
$this

setMembers()

public setMembers(array<string|int, mixed> $members) : $this
Parameters
$members : array<string|int, mixed>
Return values
$this

setRegular()

public setRegular(bool $value) : bool
Parameters
$value : bool
Return values
bool

        
On this page

Search results