Bitrix API

Map extends Collection

AbstractYes

Table of Contents

Methods

__construct()  : mixed
add()  : $this
addItems()  : Collection
count()  : int
fetch()  : mixed
getCollection()  : array<string|int, mixed>
getItem()  : mixed
getItemsByKeys()  : $this
getIterator()  : ArrayIterator
has()  : bool
remove()  : $this
rewindGenerator()  : void
updateItem()  : $this

Methods

__construct()

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

add()

public add(mixed $item[, mixed $key = null ]) : $this
Parameters
$item : mixed
$key : mixed = null
Tags
throws
ArgumentException
Return values
$this

addItems()

public addItems(array<string|int, mixed> $items) : Collection
Parameters
$items : array<string|int, mixed>
Return values
Collection

getCollection()

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

getItem()

public getItem(mixed $key) : mixed
Parameters
$key : mixed

getItemsByKeys()

public getItemsByKeys(array<string|int, mixed> $keys) : $this
Parameters
$keys : array<string|int, mixed>
Return values
$this

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

has()

public has(mixed $key) : bool
Parameters
$key : mixed
Return values
bool

remove()

public remove(mixed $key) : $this
Parameters
$key : mixed
Return values
$this

rewindGenerator()

public rewindGenerator() : void

updateItem()

public updateItem(mixed $item, mixed $key) : $this
Parameters
$item : mixed
$key : mixed
Return values
$this

        
On this page

Search results