Bitrix API

DocumentInfo extends Model

FinalYes

Table of Contents

Constants

CONTENT_STATUS_EDITING  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_EDITING
CONTENT_STATUS_FORCE_SAVED  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_FORCE_SAVED
CONTENT_STATUS_FORCE_SAVED_WITH_ERROR  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_FORCE_SAVED_WITH_ERROR
CONTENT_STATUS_INIT  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_INIT
CONTENT_STATUS_NO_CHANGES  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_NO_CHANGES
CONTENT_STATUS_SAVED  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_SAVED
CONTENT_STATUS_SAVED_WITH_ERROR  = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_SAVED_WITH_ERROR
ERROR_INTERNAL_ADD  = 'DISK_MO_28000'
ERROR_INTERNAL_DELETE  = 'DISK_MO_28002'
ERROR_INTERNAL_UPDATE  = 'DISK_MO_28001'
REF_OBJECT  = 'object'
REF_OWNER  = 'owner'
REF_VERSION  = 'version'
SECONDS_TO_MARK_AS_STILL_WORKING  = 60

Methods

__call()  : mixed
We have to normalize getMapReferenceAttributes() and use lower case.
actualizeUpdateTime()  : bool
buildFromResult()  : static
Builds model from \Bitrix\Main\Entity\Result.
buildFromRow()  : Model
Builds model from row which received from database.
className()  : string
Returns the fully qualified name of this class.
getById()  : static
getContentStatus()  : int
getCreateTime()  : DateTime
getErrorByCode()  : array<string|int, Error>
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.
getExternalHash()  : string
getFile()  : File|null
getFilename()  : string
getId()  : mixed
getList()  : Result
getMapAttributes()  : array<string|int, mixed>
Returns the list of pair for mapping data and object properties.
getMapReferenceAttributes()  : array<string|int, mixed>
Returns the list attributes which is connected with another models.
getModelList()  : array<string|int, static>
Get model list like getList
getObject()  : File|null
getObjectId()  : int
getOwner()  : EmptyUser|SystemUser|User
getOwnerId()  : int
getPrimary()  : mixed
getTableClassName()  : string
Gets the fully qualified name of table class which belongs to current model.
getUpdateTime()  : DateTime
getUserCount()  : int
getVersion()  : Version|null
getVersionId()  : int
isAbandoned()  : bool
isFinished()  : bool
isSaving()  : bool
isVersion()  : bool
load()  : static
Returns once model by specific filter.
loadBatchById()  : mixed
Returns list of models by specific filter by id.
loadById()  : static
markAsEditing()  : bool
markAsForceSaved()  : bool
markAsForceSavedWithError()  : bool
markAsNoChanges()  : bool
markAsSaved()  : bool
markAsSavedWithError()  : bool
offsetExists()  : bool
(PHP 5 &gt;= 5.0.0)<br/> Whether a offset exists
offsetGet()  : mixed
(PHP 5 &gt;= 5.0.0)<br/> Offset to retrieve
offsetSet()  : void
(PHP 5 &gt;= 5.0.0)<br/> Offset to set
offsetUnset()  : void
(PHP 5 &gt;= 5.0.0)<br/> Offset to unset
resetReferenceValue()  : void
setReferenceValue()  : mixed
setUserCount()  : bool
toArray()  : array<string|int, mixed>
Export model to array. Use map attributes and field getter.
wasFinallySaved()  : bool
wasForceSaved()  : bool

Constants

CONTENT_STATUS_EDITING

public mixed CONTENT_STATUS_EDITING = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_EDITING

CONTENT_STATUS_FORCE_SAVED

public mixed CONTENT_STATUS_FORCE_SAVED = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_FORCE_SAVED

CONTENT_STATUS_FORCE_SAVED_WITH_ERROR

public mixed CONTENT_STATUS_FORCE_SAVED_WITH_ERROR = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_FORCE_SAVED_WITH_ERROR

CONTENT_STATUS_INIT

public mixed CONTENT_STATUS_INIT = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_INIT

CONTENT_STATUS_NO_CHANGES

public mixed CONTENT_STATUS_NO_CHANGES = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_NO_CHANGES

CONTENT_STATUS_SAVED

public mixed CONTENT_STATUS_SAVED = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_SAVED

CONTENT_STATUS_SAVED_WITH_ERROR

public mixed CONTENT_STATUS_SAVED_WITH_ERROR = \Bitrix\Disk\Document\Models\DocumentInfoTable::CONTENT_STATUS_SAVED_WITH_ERROR

ERROR_INTERNAL_ADD

public mixed ERROR_INTERNAL_ADD = 'DISK_MO_28000'

ERROR_INTERNAL_DELETE

public mixed ERROR_INTERNAL_DELETE = 'DISK_MO_28002'

ERROR_INTERNAL_UPDATE

public mixed ERROR_INTERNAL_UPDATE = 'DISK_MO_28001'

SECONDS_TO_MARK_AS_STILL_WORKING

public mixed SECONDS_TO_MARK_AS_STILL_WORKING = 60

Methods

__call()

We have to normalize getMapReferenceAttributes() and use lower case.

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed

actualizeUpdateTime()

public actualizeUpdateTime() : bool
Return values
bool

buildFromResult()

Builds model from \Bitrix\Main\Entity\Result.

public static buildFromResult(Result $result) : static
Parameters
$result : Result

Query result.

Tags
throws
ArgumentException
Return values
static

buildFromRow()

Builds model from row which received from database.

public static buildFromRow(array<string|int, mixed> $row[, array<string|int, mixed>|null $with = [] ]) : Model
Parameters
$row : array<string|int, mixed>

Row.

$with : array<string|int, mixed>|null = []

Description of connected entities.

Tags
throws
SystemException
Return values
Model

className()

Returns the fully qualified name of this class.

public static className() : string
Return values
string

getById()

public static getById(mixed $id[, array<string|int, mixed> $with = array() ]) : static
Parameters
$id : mixed
$with : array<string|int, mixed> = array()
Tags
throws
NotImplementedException
Return values
static

getContentStatus()

public getContentStatus() : int
Return values
int

getErrorByCode()

Getting once error with the necessary code.

public getErrorByCode(mixed $code) : array<string|int, Error>
Parameters
$code : mixed

Code of error.

Tags
inheritdoc
Return values
array<string|int, Error>

getErrors()

Getting array of errors.

public getErrors() : array<string|int, Error>
Return values
array<string|int, Error>

getErrorsByCode()

Getting array of errors with the necessary code.

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

Code of error.

Tags
inheritdoc
Return values
array<string|int, Error>

getExternalHash()

public getExternalHash() : string
Return values
string

getFile()

public getFile() : File|null
Return values
File|null

getFilename()

public getFilename() : string
Return values
string

getId()

public getId() : mixed

getList()

public static getList(array<string|int, mixed> $parameters) : Result
Parameters
$parameters : array<string|int, mixed>
Tags
throws
NotImplementedException
Return values
Result

getMapAttributes()

Returns the list of pair for mapping data and object properties.

public static getMapAttributes() : array<string|int, mixed>

Key is field in DataManager, value is object property.

Return values
array<string|int, mixed>

getMapReferenceAttributes()

Returns the list attributes which is connected with another models.

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

getModelList()

Get model list like getList

public static getModelList(array<string|int, mixed> $parameters) : array<string|int, static>
Parameters
$parameters : array<string|int, mixed>
Return values
array<string|int, static>

getObject()

public getObject() : File|null
Return values
File|null

getObjectId()

public getObjectId() : int
Return values
int

getOwner()

public getOwner() : EmptyUser|SystemUser|User
Return values
EmptyUser|SystemUser|User

getOwnerId()

public getOwnerId() : int
Return values
int

getTableClassName()

Gets the fully qualified name of table class which belongs to current model.

public static getTableClassName() : string
Return values
string

getUserCount()

public getUserCount() : int
Return values
int

getVersion()

public getVersion() : Version|null
Return values
Version|null

getVersionId()

public getVersionId() : int
Return values
int

isAbandoned()

public isAbandoned() : bool
Return values
bool

isFinished()

public isFinished() : bool
Return values
bool

isVersion()

public isVersion() : bool
Return values
bool

load()

Returns once model by specific filter.

public static load(array<string|int, mixed> $filter[, array<string|int, mixed> $with = array() ]) : static
Parameters
$filter : array<string|int, mixed>

Filter.

$with : array<string|int, mixed> = array()

List of eager loading.

Tags
throws
NotImplementedException
Return values
static

loadBatchById()

Returns list of models by specific filter by id.

public static loadBatchById(array<string|int, mixed> $ids[, array<string|int, mixed> $with = [] ]) : mixed
Parameters
$ids : array<string|int, mixed>

List of ids.

$with : array<string|int, mixed> = []

List of eager loading.

loadById()

public static loadById(mixed $id[, array<string|int, mixed> $with = [] ]) : static
Parameters
$id : mixed
$with : array<string|int, mixed> = []
Return values
static

markAsEditing()

public markAsEditing() : bool
Return values
bool

markAsForceSaved()

public markAsForceSaved() : bool
Return values
bool

markAsForceSavedWithError()

public markAsForceSavedWithError() : bool
Return values
bool

markAsNoChanges()

public markAsNoChanges() : bool
Return values
bool

markAsSaved()

public markAsSaved() : bool
Return values
bool

markAsSavedWithError()

public markAsSavedWithError() : bool
Return values
bool

offsetExists()

(PHP 5 &gt;= 5.0.0)<br/> Whether a offset exists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed

An offset to check for.

Tags
link
http://php.net/manual/en/arrayaccess.offsetexists.php
Return values
bool

true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet()

(PHP 5 &gt;= 5.0.0)<br/> Offset to retrieve

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

The offset to retrieve.

Tags
link
http://php.net/manual/en/arrayaccess.offsetget.php
Attributes
#[ReturnTypeWillChange]
Return values
mixed

Can return all value types.

offsetSet()

(PHP 5 &gt;= 5.0.0)<br/> Offset to set

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed

The offset to assign the value to.

$value : mixed

The value to set.

Tags
link
http://php.net/manual/en/arrayaccess.offsetset.php
throws
NotSupportedException

resetReferenceValue()

public resetReferenceValue(string $referenceName) : void
Parameters
$referenceName : string

setReferenceValue()

public setReferenceValue(mixed $referenceName, mixed $value) : mixed
Parameters
$referenceName : mixed
$value : mixed
Tags
throws
ArgumentException

setUserCount()

public setUserCount(int $count) : bool
Parameters
$count : int
Return values
bool

toArray()

Export model to array. Use map attributes and field getter.

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

wasFinallySaved()

public wasFinallySaved() : bool
Return values
bool

wasForceSaved()

public wasForceSaved() : bool
Return values
bool

        
On this page

Search results