Bitrix API

BaseCollection implements Countable, IteratorAggregate

AbstractYes
Tags
template
implements

Table of Contents

Interfaces

Countable
IteratorAggregate

Methods

__clone()  : void
__construct()  : mixed
add()  : void
all()  : array<int, T>
clear()  : void
contains()  : bool
count()  : int
filter()  : self
first()  : T|null
get()  : T|null
getIterator()  : Traversable<int, T>
isEmpty()  : bool
map()  : array<int, ReturnT>
remove()  : void

Methods

__construct()

public __construct(array<int, T...$items) : mixed
Parameters
$items : array<int, T>
Tags
throws
ArgumentException

add()

public add(T $item) : void
Parameters
$item : T
Tags
throws
ArgumentException

contains()

public contains(T $item) : bool
Parameters
$item : T
Return values
bool

filter()

public filter(callable(T): bool $callback) : self
Parameters
$callback : callable(T): bool
Tags
throws
ArgumentException
Return values
self

get()

public get(int $index) : T|null
Parameters
$index : int
Return values
T|null

getIterator()

public getIterator() : Traversable<int, T>
Return values
Traversable<int, T>

map()

public map(callable(T): ReturnT $callback) : array<int, ReturnT>
Parameters
$callback : callable(T): ReturnT
Tags
template
Return values
array<int, ReturnT>

remove()

public remove(int $index) : void
Parameters
$index : int

        
On this page

Search results