class Error extends ErrorList (View source)

deprecated

Properties

protected $errors from ErrorList

Methods

bool
offsetExists(mixed $offset)

Whether a offset exists.

from ErrorList
mixed
offsetGet(mixed $offset)

Offset to retrieve.

from ErrorList
offsetSet(mixed $offset, mixed $value)

Offset to set.

from ErrorList
offsetUnset(mixed $offset)

Offset to unset.

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

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

from ErrorList
array
getList()

Returns a list of errors in the error helper.

from ErrorList
bool
has()

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

from ErrorList
output() deprecated

No description

from ErrorList
outputJSON() deprecated

No description

from ErrorList
__toString()

No description

from ErrorList
jsonSerialize()

No description

from ErrorList
toText()

No description

from ErrorList
containsField($field)

No description

from ErrorList
string
getMessage($field)

No description

from ErrorList

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