class Error extends ErrorList (View source)

deprecated

Properties

protected $errors from  ErrorList

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)

Since: 5.0.0

Whether a offset exists.

Parameters

mixed $offset

An offset to check for.

Return Value

bool

true on success or false on failure.

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

mixed offsetGet(mixed $offset)

Since: 5.0.0

Offset to retrieve.

Parameters

mixed $offset

The offset to retrieve.

Return Value

mixed

Can return all value types.

offsetSet(mixed $offset, mixed $value)

Since: 5.0.0

Offset to set.

Parameters

mixed $offset

The offset to assign the value to.

mixed $value

The value to set.

offsetUnset(mixed $offset)

Since: 5.0.0

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

No description

outputJSON() deprecated

deprecated

No description

__toString()

No description

jsonSerialize()

No description

toText()

No description

containsField($field)

No description

Parameters

$field

string getMessage($field)

No description

Parameters

$field

Return Value

string

| bool