Bitrix API

DocumentRepository

Table of Contents

Methods

add()  : AddResult
delete()  : DeleteResult
deleteByTemplateId()  : Result
existAnyDocument()  : bool
getByCreatedFromDocumentIdsAndInitiatedByTypeAndCreatedByIdOrderedByDateCreateDesc()  : Document|null
getByEntityIdAndType()  : Document|null
getByHash()  : Document|null
getById()  : Document|null
getByTemplateId()  : Document|null
getByUid()  : Document|null
getCountByBlankId()  : int
getCountByGroupId()  : int
getFirstCreatedB2eDocument()  : Document|null
getLastByBlankId()  : Document|null
Get last document by blank id
getLastByUser()  : Document|null
getLastCompanyProvidersByUser()  : ProviderDateCollection
getModelMetaByItem()  : array<string|int, mixed>
getScenarioIdByName()  : int|null
getSchemeIdByType()  : int
listByBlankId()  : DocumentCollection
listByEntityIdsAndType()  : DocumentCollection
listByGroupId()  : DocumentCollection
listByIds()  : mixed
listByTemplateIds()  : DocumentCollection
listIdsByProviderCodeAndScheme()  : array<int, int>
listLastB2eFromCompanyByUserCreateId()  : DocumentCollection
listLastByUserCreateId()  : DocumentCollection
unsetEntityId()  : Result
update()  : UpdateResult
updateProviderCodeToDocumentsByCompanyUid()  : Result
updateSchemeToDocumentIds()  : Result

Methods

getByCreatedFromDocumentIdsAndInitiatedByTypeAndCreatedByIdOrderedByDateCreateDesc()

public getByCreatedFromDocumentIdsAndInitiatedByTypeAndCreatedByIdOrderedByDateCreateDesc(array<string|int, int> $createdFromDocumentIds, InitiatedByType $initiatedByType, int $createdById) : Document|null
Parameters
$createdFromDocumentIds : array<string|int, int>
$initiatedByType : InitiatedByType
$createdById : int
Return values
Document|null

getByEntityIdAndType()

public getByEntityIdAndType(int $entityId, string $entityType) : Document|null
Parameters
$entityId : int
$entityType : string
Return values
Document|null

getByHash()

public getByHash(string $uid) : Document|null
Parameters
$uid : string
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
Document|null

getCountByBlankId()

public getCountByBlankId(int $blankId) : int
Parameters
$blankId : int
Return values
int

getCountByGroupId()

public getCountByGroupId(int $groupId) : int
Parameters
$groupId : int
Return values
int

getLastByBlankId()

Get last document by blank id

public getLastByBlankId(int $blankId) : Document|null
Parameters
$blankId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
Document|null

getScenarioIdByName()

public getScenarioIdByName(string $scenarioName) : int|null
Parameters
$scenarioName : string
Return values
int|null

getSchemeIdByType()

public getSchemeIdByType(string|null $scheme) : int
Parameters
$scheme : string|null
Return values
int

listByIds()

public listByIds(array<string|int, mixed> $ids) : mixed
Parameters
$ids : array<string|int, mixed>

listIdsByProviderCodeAndScheme()

public listIdsByProviderCodeAndScheme(ProviderCode::* $providerCode, SchemeType::* $scheme, int $limit) : array<int, int>
Parameters
$providerCode : ProviderCode::*
$scheme : SchemeType::*
$limit : int
Return values
array<int, int>

updateProviderCodeToDocumentsByCompanyUid()

public updateProviderCodeToDocumentsByCompanyUid(string $companyUid, string $providerCode[, int $limit = 200 ]) : Result
Parameters
$companyUid : string
$providerCode : string
$limit : int = 200
Return values
Result

updateSchemeToDocumentIds()

public updateSchemeToDocumentIds(array<string|int, int> $documentIds, string $newScheme) : Result
Parameters
$documentIds : array<string|int, int>
$newScheme : string
Return values
Result

        
On this page

Search results