class ErrorList implements ArrayAccess, JsonSerializable (View source)

Properties

protected $errors

Methods

bool
offsetExists(mixed $offset)

Whether a offset exists.

mixed
offsetGet(mixed $offset)

Offset to retrieve.

offsetSet(mixed $offset, mixed $value)

Offset to set.

offsetUnset(mixed $offset)

Offset to unset.

add($e, $fieldName = null, $fieldDisplayName = null)

Adds an error object or exception to the internal error array.

array
getList()

Returns a list of errors in the error helper.

bool
has()

Returns whether or not this error helper has more than one error registered within it.

output() deprecated

No description

outputJSON() deprecated

No description

__toString()

No description

jsonSerialize()

No description

toText()

No description

containsField($field)

No description

string
getMessage($field)

No description

Details

bool offsetExists(mixed $offset)

Whether a offset exists.

Parameters

mixed $offset An offset to check for.

Return Value

bool true on success or false on failure.

<

p> The return value will be casted to boolean if non-boolean was returned.

mixed offsetGet(mixed $offset)

Offset to retrieve.

Parameters

mixed $offset The offset to retrieve.

Return Value

mixed Can return all value types.

offsetSet(mixed $offset, mixed $value)

Offset to set.

Parameters

mixed $offset The offset to assign the value to.
mixed $value The value to set.

offsetUnset(mixed $offset)

Offset to unset.

Parameters

mixed $offset The offset to unset.

add($e, $fieldName = null, $fieldDisplayName = null)

Adds an error object or exception to the internal error array.

Parameters

$e
$fieldName
$fieldDisplayName

array getList()

Returns a list of errors in the error helper.

Return Value

array

bool has()

Returns whether or not this error helper has more than one error registered within it.

Return Value

bool

output() deprecated

deprecated

outputJSON() deprecated

deprecated

__toString()

jsonSerialize()

toText()

containsField($field)

Parameters

$field

string getMessage($field)

Parameters

$field

Return Value

string | bool