Bitrix API

CollectionBase implements ArrayAccess, Countable, IteratorAggregate

AbstractYes

Class CollectionBase

Table of Contents

Interfaces

ArrayAccess
Countable
IteratorAggregate

Methods

count()  : int
Count elements of an object
current()  : mixed
Return the current element
getIterator()  : ArrayIterator
isEmpty()  : bool
Checks if collection is empty.
key()  : mixed
Return the key of the current element
next()  : mixed
Move forward to next element
offsetExists()  : bool
Whether a offset exists
offsetGet()  : mixed
Offset to retrieve
offsetSet()  : void
Offset to set
offsetUnset()  : void
Offset to unset
rewind()  : mixed
Rewind the Iterator to the first element
toArray()  : mixed
valid()  : mixed
Checks if current position is valid

Methods

count()

Count elements of an object

public count() : int
Return values
int

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

isEmpty()

Checks if collection is empty.

public isEmpty() : bool
Return values
bool

key()

Return the key of the current element

public key() : mixed

offsetExists()

Whether a offset exists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

Offset to retrieve

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Attributes
#[ReturnTypeWillChange]

offsetSet()

Offset to set

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

Offset to unset

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

rewind()

Rewind the Iterator to the first element

public rewind() : mixed

valid()

Checks if current position is valid

public valid() : mixed

        
On this page

Search results