Bitrix API

UserCollaber extends UserExtranet

Table of Contents

Constants

ONLINE_DATA_SELECTED_FIELDS  = ['USER_ID' => 'ID', 'IDLE' => 'STATUS.IDLE', 'DESKTOP_LAST_DATE' => 'STATUS.DESKTOP_LAST_DATE', 'MOBILE_LAST_DATE' => 'STATUS.MOBILE_LAST_DATE', 'LAST_ACTIVITY_DATE']
ONLINE_DATA_SELECTED_FIELDS_WITHOUT_STATUS  = ['USER_ID' => 'ID', 'LAST_ACTIVITY_DATE']
PERSONAL_PHONE  = 'PERSONAL_PHONE'
PHONE_INNER  = 'INNER_PHONE'
PHONE_MOBILE  = 'PERSONAL_MOBILE'
PHONE_WORK  = 'WORK_PHONE'

Methods

checkAccess()  : Result
clearStaticCache()  : void
getAbsent()  : DateTime|null
getArray()  : array<string|int, mixed>
getAvatar()  : string
getAvatarHr()  : string
getAvatarId()  : int
getBirthday()  : string
getChatWith()  : PrivateChat|null
Return chat with user AND create chat if it does not exist
getColor()  : string
getContext()  : Context
Returns the local or global context for the action.
getCurrent()  : self
getDepartmentIds()  : array<string|int, mixed>
getDepartments()  : Departments
getDesktopLastDate()  : DateTime|null
getEmail()  : string
getExternalAuthId()  : string
getFirstAdmin()  : int
getFirstName()  : string|null
getGender()  : string
getId()  : int|null
Returns the id of the entity
getIdle()  : DateTime|null
getInstance()  : self
getLanguageId()  : string|null
getLastActivityDate()  : DateTime|null
getLastName()  : string|null
getMobileLastDate()  : DateTime|null
getName()  : string|null
getPhoneDevice()  : bool
getPhones()  : array<string|int, mixed>
getRestEntityName()  : string
Returns the name of the entity that will be used in the rest response
getServices()  : array<string|int, mixed>
getStatus()  : string|null
getType()  : UserType
getTzOffset()  : string
getWebsite()  : string
getWorkPosition()  : string|null
initByArray()  : self
isActive()  : bool
isAdmin()  : bool
isBot()  : bool
isConnector()  : bool
isExist()  : bool
isExtranet()  : bool
isNetwork()  : bool
isOnlineDataFilled()  : bool
isSuperAdmin()  : bool
setContext()  : self
Sets new context for operations.
setContextUser()  : self
setOnlineData()  : void
toRestFormat()  : array<string|int, mixed>|null
Returns an array in JSON like format to return the entity as a rest response.
unsetOnlineData()  : void
withContext()  : static
Provides local context for the action.
withContextUser()  : static
Provides local context for the action.

Constants

ONLINE_DATA_SELECTED_FIELDS

public mixed ONLINE_DATA_SELECTED_FIELDS = ['USER_ID' => 'ID', 'IDLE' => 'STATUS.IDLE', 'DESKTOP_LAST_DATE' => 'STATUS.DESKTOP_LAST_DATE', 'MOBILE_LAST_DATE' => 'STATUS.MOBILE_LAST_DATE', 'LAST_ACTIVITY_DATE']

ONLINE_DATA_SELECTED_FIELDS_WITHOUT_STATUS

public mixed ONLINE_DATA_SELECTED_FIELDS_WITHOUT_STATUS = ['USER_ID' => 'ID', 'LAST_ACTIVITY_DATE']

PERSONAL_PHONE

public mixed PERSONAL_PHONE = 'PERSONAL_PHONE'

PHONE_INNER

public mixed PHONE_INNER = 'INNER_PHONE'

PHONE_MOBILE

public mixed PHONE_MOBILE = 'PERSONAL_MOBILE'

PHONE_WORK

public mixed PHONE_WORK = 'WORK_PHONE'

Methods

checkAccess()

public final checkAccess([int|null $idOtherUser = null ]) : Result
Parameters
$idOtherUser : int|null = null
Return values
Result

clearStaticCache()

public static clearStaticCache(int $id) : void
Parameters
$id : int

getArray()

public getArray([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>
Parameters
$option : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getAvatar()

public getAvatar([bool $forRest = true ]) : string
Parameters
$forRest : bool = true
Return values
string

getAvatarHr()

public getAvatarHr([bool $forRest = true ]) : string
Parameters
$forRest : bool = true
Return values
string

getAvatarId()

public getAvatarId() : int
Return values
int

getBirthday()

public getBirthday() : string
Return values
string

getChatWith()

Return chat with user AND create chat if it does not exist

public getChatWith(int $userId[, bool $createIfNotExist = true ]) : PrivateChat|null
Parameters
$userId : int
$createIfNotExist : bool = true
Return values
PrivateChat|null

getColor()

public getColor() : string
Return values
string

getCurrent()

public static getCurrent() : self
Return values
self

getDepartmentIds()

public getDepartmentIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDesktopLastDate()

public getDesktopLastDate([bool $real = false ]) : DateTime|null
Parameters
$real : bool = false
Return values
DateTime|null

getEmail()

public getEmail() : string
Return values
string

getExternalAuthId()

public getExternalAuthId() : string
Return values
string

getFirstAdmin()

public static getFirstAdmin() : int
Return values
int

getFirstName()

public getFirstName() : string|null
Return values
string|null

getGender()

public getGender() : string
Return values
string

getId()

Returns the id of the entity

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

getIdle()

public getIdle([bool $real = false ]) : DateTime|null
Parameters
$real : bool = false
Return values
DateTime|null

getInstance()

public static getInstance(int|null $id) : self
Parameters
$id : int|null
Return values
self

getLanguageId()

public getLanguageId() : string|null
Return values
string|null

getLastName()

public getLastName() : string|null
Return values
string|null

getMobileLastDate()

public getMobileLastDate([bool $real = false ]) : DateTime|null
Parameters
$real : bool = false
Return values
DateTime|null

getName()

public getName() : string|null
Return values
string|null

getPhoneDevice()

public getPhoneDevice() : bool
Return values
bool

getPhones()

public getPhones() : array<string|int, mixed>
Return values
array<string|int, mixed>

getRestEntityName()

Returns the name of the entity that will be used in the rest response

public static getRestEntityName() : string
Return values
string

getServices()

public getServices() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStatus()

public getStatus([bool $real = false ]) : string|null
Parameters
$real : bool = false
Return values
string|null

getTzOffset()

public getTzOffset() : string
Return values
string

getWebsite()

public getWebsite() : string
Return values
string

getWorkPosition()

public getWorkPosition() : string|null
Return values
string|null

initByArray()

public static initByArray(array<string|int, mixed> $userData) : self
Parameters
$userData : array<string|int, mixed>
Return values
self

isActive()

public isActive() : bool
Return values
bool

isAdmin()

public isAdmin() : bool
Return values
bool

isBot()

public isBot() : bool
Return values
bool

isConnector()

public isConnector() : bool
Return values
bool

isExist()

public isExist() : bool
Return values
bool

isExtranet()

public isExtranet() : bool
Return values
bool

isNetwork()

public isNetwork() : bool
Return values
bool

isOnlineDataFilled()

public isOnlineDataFilled(bool $withStatus) : bool
Parameters
$withStatus : bool
Return values
bool

isSuperAdmin()

public isSuperAdmin() : bool
Return values
bool

setContext()

Sets new context for operations.

public setContext(Context|null $context) : self
Parameters
$context : Context|null
Return values
self

setContextUser()

public setContextUser(mixed $user) : self
Parameters
$user : mixed
Return values
self

setOnlineData()

public setOnlineData(array<string|int, mixed> $onlineData, bool $withStatus) : void
Parameters
$onlineData : array<string|int, mixed>
$withStatus : bool

toRestFormat()

Returns an array in JSON like format to return the entity as a rest response.

public toRestFormat([array<string|int, mixed> $option = [] ]) : array<string|int, mixed>|null
Parameters
$option : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

unsetOnlineData()

public unsetOnlineData() : void

withContext()

Provides local context for the action.

public withContext(Context|null $context) : static
Parameters
$context : Context|null
Return values
static

withContextUser()

Provides local context for the action.

public withContextUser(int|User|User $user) : static
Parameters
$user : int|User|User
Return values
static

        
On this page

Search results