FieldCollection
implements
ItemCollection, Iterator, Countable
Table of Contents
Interfaces
- ItemCollection
- Iterator
- Countable
Methods
-
__construct()
: mixed
-
add()
: FieldCollection
-
clear()
: FieldCollection
-
count()
: int
-
current()
: Field|null
-
existWithName()
: bool
-
filter()
: FieldCollection
-
filterByParty()
: FieldCollection
-
filterWithValuesByMemberId()
: FieldCollection
-
findFirst()
: Field|null
-
getById()
: Field|null
-
getFirst()
: Field|null
-
getFirstFieldByName()
: Field|null
-
getNameMap()
: array<string, Field>
-
isEmpty()
: bool
-
isFilled()
: bool
-
key()
: int
-
listNames()
: array<string|int, string>
-
mergeFieldsWithNoneIncludedName()
: static
-
next()
: void
-
rewind()
: void
-
toArray()
: array<string|int, T>
-
valid()
: bool
__construct()
public
__construct(Field ...$items) : mixed
Parameters
-
$items
: Field
-
add()
public
add(Field $item) : FieldCollection
Parameters
-
$item
: Field
-
clear()
public
clear() : FieldCollection
count()
public
count() : int
current()
public
current() : Field|null
existWithName()
public
existWithName(string $name) : bool
Parameters
-
$name
: string
-
filter()
public
final filter(Closure $rule) : FieldCollection
Parameters
-
$rule
: Closure
-
filterByParty()
public
final filterByParty(int $party) : FieldCollection
Parameters
-
$party
: int
-
filterWithValuesByMemberId()
public
final filterWithValuesByMemberId(int $memberId) : FieldCollection
Parameters
-
$memberId
: int
-
findFirst()
public
final findFirst(Closure $rule) : Field|null
Parameters
-
$rule
: Closure
-
getById()
public
getById(int $id) : Field|null
Parameters
-
$id
: int
-
getFirst()
public
getFirst() : Field|null
getFirstFieldByName()
public
getFirstFieldByName(string $name) : Field|null
Parameters
-
$name
: string
-
getNameMap()
public
getNameMap() : array<string, Field>
Return values
array<string, Field>
isEmpty()
public
isEmpty() : bool
isFilled()
public
isFilled() : bool
key()
public
key() : int
listNames()
public
listNames() : array<string|int, string>
Return values
array<string|int, string>
mergeFieldsWithNoneIncludedName()
public
final mergeFieldsWithNoneIncludedName(self $fields) : static
Parameters
-
$fields
: self
-
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