Bitrix API

DocumentSessionManager implements IErrorable

FinalYes

Table of Contents

Interfaces

IErrorable

Methods

__construct()  : mixed
addSession()  : DocumentSession|null
findOrCreateSession()  : DocumentSession|null
findSession()  : DocumentSession|null
getErrorByCode()  : Error|null
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.
getUserId()  : int
lock()  : bool
setAttachedObject()  : self
setFile()  : self
setService()  : self
setSessionContext()  : self
setSessionType()  : self
setUserId()  : self
setVersion()  : self
unlock()  : void

Methods

getErrorByCode()

Getting once error with the necessary code.

public getErrorByCode(string $code) : Error|null
Parameters
$code : string
Return values
Error|null

getErrorsByCode()

Getting array of errors with the necessary code.

public getErrorsByCode(string $code) : array<string|int, Error>
Parameters
$code : string
Return values
array<string|int, Error>

setAttachedObject()

public setAttachedObject(AttachedObject|null $attachedObject) : self
Parameters
$attachedObject : AttachedObject|null
Return values
self

setFile()

public setFile(File|null $file) : self
Parameters
$file : File|null
Return values
self

setSessionType()

public setSessionType(int $sessionType) : self
Parameters
$sessionType : int
Return values
self

setVersion()

public setVersion(Version|null $version) : self
Parameters
$version : Version|null
Return values
self

        
On this page

Search results