Bitrix API

FieldCollection extends Collection

FinalYes

Table of Contents

Methods

add()  : void
count()  : int
Count elements of an object
current()  : mixed
Return the current element
getIterator()  : Traversable
isEmpty()  : bool
Checks if collection is empty.
key()  : int|string|null
Return the key of the current element
next()  : mixed
Move forward to next element
offsetExists()  : bool
Whether an 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()  : array<string|int, mixed>
valid()  : bool
Checks if current position is valid

Methods

add()

public add(mixed $value) : void
Parameters
$value : mixed

count()

Count elements of an object

public count() : int
Return values
int

current()

Return the current element

public current() : mixed

getIterator()

public getIterator() : Traversable
Return values
Traversable

isEmpty()

Checks if collection is empty.

public isEmpty() : bool
Return values
bool

key()

Return the key of the current element

public key() : int|string|null
Return values
int|string|null

next()

Move forward to next element

public next() : mixed

offsetExists()

Whether an 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

toArray()

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

valid()

Checks if current position is valid

public valid() : bool
Return values
bool

        
On this page

Search results