Bitrix API

DocumentCollection implements ItemCollection, Iterator, Countable

Table of Contents

Interfaces

ItemCollection
Iterator
Countable

Methods

__construct()  : mixed
add()  : DocumentCollection
all()  : bool
any()  : bool
clear()  : DocumentCollection
count()  : int
current()  : Document|null
filter()  : DocumentCollection
findByTemplateId()  : Document|null
getArrayByIds()  : array<int, Document>
Get array with keys - values of id field
getByEntityId()  : Document|null
getById()  : Document|null
getFirst()  : Document|null
isEmpty()  : bool
key()  : int
listIdsWithoutNull()  : array<int, int>
next()  : void
rewind()  : void
sortByTemplateIdsDesc()  : static
toArray()  : array<string|int, T>
valid()  : bool

Methods

all()

public all(Closure $rule) : bool
Parameters
$rule : Closure
Return values
bool

any()

public any(Closure $rule) : bool
Parameters
$rule : Closure
Return values
bool

listIdsWithoutNull()

public listIdsWithoutNull() : array<int, int>
Return values
array<int, int>

sortByTemplateIdsDesc()

public sortByTemplateIdsDesc() : static
Return values
static

toArray()

public toArray() : array<string|int, T>
Return values
array<string|int, T>

        
On this page

Search results