Bitrix API

DocumentSessionContext implements Jsonable

FinalYes

Table of Contents

Interfaces

Jsonable

Methods

__construct()  : mixed
buildByAttachedObject()  : self
buildByExternalLink()  : self
buildByFile()  : self
buildByObject()  : self
buildFromJson()  : self|null
getAttachedObject()  : AttachedObject|null
getAttachedObjectId()  : int|null
getExternalLink()  : ExternalLink|null
getExternalLinkId()  : int|null
getFile()  : File|null
getObject()  : File|null
getObjectId()  : int
toJson()  : array<string|int, mixed>
tryBuildByAttachedObject()  : self

Methods

__construct()

public __construct(int $objectId[, int $attachedObjectId = null ][, int $externalLinkId = null ]) : mixed
Parameters
$objectId : int
$attachedObjectId : int = null
$externalLinkId : int = null

buildByAttachedObject()

public static buildByAttachedObject(AttachedObject $attachedObject) : self
Parameters
$attachedObject : AttachedObject
Return values
self
public static buildByExternalLink(ExternalLink $externalLink) : self
Parameters
$externalLink : ExternalLink
Return values
self

buildByFile()

public static buildByFile(File $file) : self
Parameters
$file : File
Return values
self

buildByObject()

public static buildByObject(BaseObject $baseObject) : self
Parameters
$baseObject : BaseObject
Return values
self

buildFromJson()

public static buildFromJson(string $json) : self|null
Parameters
$json : string
Return values
self|null

getAttachedObject()

public getAttachedObject() : AttachedObject|null
Return values
AttachedObject|null

toJson()

public toJson([mixed $options = 0 ]) : array<string|int, mixed>
Parameters
$options : mixed = 0
Return values
array<string|int, mixed>

tryBuildByAttachedObject()

public static tryBuildByAttachedObject(AttachedObject|null $attachedObject, File $file) : self
Parameters
$attachedObject : AttachedObject|null
$file : File
Return values
self

        
On this page

Search results