Bitrix API

Page implements Arrayable, IteratorAggregate, ArrayAccess, JsonSerializable

FinalYes

Table of Contents

Interfaces

Arrayable
IteratorAggregate
ArrayAccess
JsonSerializable

Methods

__construct()  : mixed
getId()  : string
getItems()  : array<string|int, mixed>
getIterator()  : Traversable
Retrieve an external iterator
getTotalCount()  : int
jsonSerialize()  : mixed
Specify data which should be serialized to JSON
offsetExists()  : bool
Whether a offset exists
offsetGet()  : mixed
Offset to retrieve
offsetSet()  : void
Offset to set
offsetUnset()  : void
Offset to unset
toArray()  : array<string|int, mixed>

Methods

__construct()

public __construct(string $id, array<string|int, mixed>|Traversable $items, int|Closure $totalCount) : mixed
Parameters
$id : string

Id of collection.

$items : array<string|int, mixed>|Traversable
$totalCount : int|Closure

The parameter can be Closure to prevent unnecessary actions for calculation.

getId()

public getId() : string
Return values
string

getItems()

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

getTotalCount()

public getTotalCount() : int
Return values
int

offsetExists()

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
since
5.0.0
Return values
bool

true on success or false on failure.

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

toArray()

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

        
On this page

Search results