Fields implements ArrayAccess, Iterator, Countable
Table of Contents
Interfaces
- ArrayAccess
- Iterator
- Countable
Methods
- __construct() : mixed
- clear() : mixed
- clearChanged() : mixed
- count() : int
- Count elements of an object
- current() : mixed
- Return the current element
- get() : string|null
- Returns any variable by its name. Null if variable is not set.
- getChangedKeys() : array<string|int, mixed>
- getChangedValues() : array<string|int, mixed>
- getOriginalValues() : array<string|int, mixed>
- getValues() : array<string|int, mixed>
- isChanged() : bool
- isClone() : bool
- isMarkedCustom() : bool
- key() : mixed
- Return the key of the current element
- markCustom() : mixed
- next() : void
- Move forward to next element
- offsetExists() : bool
- Whether a offset exists
- offsetGet() : null|string
- Offset to retrieve
- offsetSet() : void
- Offset to set
- offsetUnset() : void
- Offset to unset
- resetValues() : mixed
- rewind() : void
- Rewind the Iterator to the first element
- set() : bool
- setValues() : mixed
- unmarkCustom() : mixed
- valid() : bool
- Checks if current position is valid
Methods
__construct()
public
__construct([array<string|int, mixed> $values = null ]) : mixed
Parameters
- $values : array<string|int, mixed> = null
clear()
public
clear() : mixed
clearChanged()
public
clearChanged() : mixed
count()
Count elements of an object
public
count() : int
Return values
intcurrent()
Return the current element
public
current() : mixed
Attributes
- #[ReturnTypeWillChange]
get()
Returns any variable by its name. Null if variable is not set.
public
get(string $name) : string|null
Parameters
- $name : string
Return values
string|nullgetChangedKeys()
public
getChangedKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>getChangedValues()
public
getChangedValues() : array<string|int, mixed>
Return values
array<string|int, mixed>getOriginalValues()
public
getOriginalValues() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getValues()
public
getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>isChanged()
public
isChanged(mixed $name) : bool
Parameters
- $name : mixed
Return values
boolisClone()
public
isClone() : bool
Return values
boolisMarkedCustom()
public
isMarkedCustom(string $field) : bool
Parameters
- $field : string
Return values
boolkey()
Return the key of the current element
public
key() : mixed
Attributes
- #[ReturnTypeWillChange]
markCustom()
public
markCustom(string $field) : mixed
Parameters
- $field : string
next()
Move forward to next element
public
next() : void
offsetExists()
Whether a offset exists
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
Offset to retrieve
public
offsetGet(mixed $offset) : null|string
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
Return values
null|stringoffsetSet()
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
resetValues()
public
resetValues(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
rewind()
Rewind the Iterator to the first element
public
rewind() : void
set()
public
set(string $name, mixed $value) : bool
Parameters
- $name : string
- $value : mixed
Return values
boolsetValues()
public
setValues(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
unmarkCustom()
public
unmarkCustom(string $field) : mixed
Parameters
- $field : string
valid()
Checks if current position is valid
public
valid() : bool