Bitrix API

ArrayDataProvider extends DataProvider implements Iterator, Countable

Table of Contents

Interfaces

Iterator
Countable

Constants

INDEX_PLACEHOLDER  = 'INDEX'
NUMBER_PLACEHOLDER  = 'NUMBER'

Methods

__construct()  : mixed
addItem()  : int
count()  : int
current()  : mixed
deleteItemByIndex()  : ArrayDataProvider
getFields()  : array<string|int, mixed>
getItemByIndex()  : mixed
getItemKey()  : string
getValue()  : mixed
Returns value by its name.
hasAccess()  : mixed
key()  : string|int|null
next()  : void
replaceItem()  : ArrayDataProvider
rewind()  : void
valid()  : bool

Constants

Methods

__construct()

public __construct(array<string|int, mixed> $source[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$source : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
throws
ArgumentTypeException

addItem()

public addItem(mixed $item) : int
Parameters
$item : mixed
Return values
int

getFields()

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

getItemByIndex()

public getItemByIndex(int $index) : mixed
Parameters
$index : int

getValue()

Returns value by its name.

public getValue(string $name) : mixed
Parameters
$name : string

hasAccess()

public hasAccess(mixed $userId) : mixed
Parameters
$userId : mixed

        
On this page

Search results