ValueCollection
implements
ItemCollection, Iterator, Countable
Table of Contents
Interfaces
- ItemCollection
- Iterator
- Countable
Methods
-
__construct()
: mixed
-
add()
: static
-
clear()
: static
-
count()
: int
-
current()
: Value|null
-
filter()
: ValueCollection
-
filterByFieldId()
: array<string|int, mixed>
-
findFirst()
: Value|null
-
getFirst()
: Value|null
-
isEmpty()
: bool
-
key()
: int
-
listText()
: array<string|int, mixed>
-
next()
: void
-
rewind()
: void
-
toArray()
: array<string|int, T>
-
valid()
: bool
__construct()
public
__construct(Value ...$items) : mixed
Parameters
-
$items
: Value
-
add()
public
add(Value $item) : static
Parameters
-
$item
: Value
-
clear()
public
clear() : static
count()
public
count() : int
current()
public
current() : Value|null
filter()
public
filter(Closure $rule) : ValueCollection
Parameters
-
$rule
: Closure
-
filterByFieldId()
public
filterByFieldId(int $fieldId) : array<string|int, mixed>
Parameters
-
$fieldId
: int
-
Return values
array<string|int, mixed>
findFirst()
public
findFirst(Closure $rule) : Value|null
Parameters
-
$rule
: Closure
-
getFirst()
public
getFirst() : Value|null
isEmpty()
public
isEmpty() : bool
key()
public
key() : int
listText()
public
listText() : array<string|int, mixed>
Return values
array<string|int, mixed>
next()
public
next() : void
rewind()
public
rewind() : void
toArray()
public
toArray() : array<string|int, T>
Return values
array<string|int, T>
valid()
public
valid() : bool