Bitrix API

Immutable implements Iterator, Countable

AbstractYes
Tags
todo

move to main if possible

see
Base

Table of Contents

Interfaces

Iterator
Countable

Methods

__construct()  : mixed
count()  : int
createItem()  : mixed
current()  : Base
ensureItem()  : mixed
fromArray()  : static
getFirst()  : mixed
getNext()  : mixed
key()  : int
next()  : void
rewind()  : mixed
valid()  : bool

Methods

__construct()

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []

count()

public count() : int
Tags
see
Countable
Return values
int

createItem()

public abstract createItem(array<string|int, mixed> $array) : mixed
Parameters
$array : array<string|int, mixed>

ensureItem()

public ensureItem(Base $item[, mixed $throwException = true ]) : mixed
Parameters
$item : Base
$throwException : mixed = true

fromArray()

public static fromArray(array<string|int, mixed> $array) : static
Parameters
$array : array<string|int, mixed>
Tags
throws
Exception
Return values
static

getFirst()

public getFirst(mixed &$position) : mixed
Parameters
$position : mixed

getNext()

public getNext(mixed &$position) : mixed
Parameters
$position : mixed

key()

public key() : int
Tags
see
Iterator
Return values
int

next()

public next() : void
Tags
see
Iterator

rewind()

public rewind() : mixed
Tags
see
Iterator

valid()

public valid() : bool
Tags
see
Iterator
Return values
bool

        
On this page

Search results