Bitrix API

EntityMap extends Map

Wrapper for working with entities that have implemented the interface EntityInterface

Table of Contents

Methods

__construct()  : mixed
add()  : $this
addItems()  : $this
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(object|null $item[, scalar|null $key = null ]) : $this
Parameters
$item : object|null
$key : scalar|null = null
Tags
throws
ArgumentException
Return values
$this

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

        
On this page

Search results