Omeka_Validate_Errors¶
- class Omeka_Validate_Errors¶
Package: Validate
This is an object wrapper for validation errors. The primary advantage to having this class is that casting it to a string will convert the errors into a nicely formatted, human-readable string.
- property _errors¶
List of validation errors.
- __construct(array|null $errors)¶
Parameters: - $errors (array|null) – Initial errors to set.
- offsetGet(mixed $key)¶
Get an error from the list. Required by ArrayObject.
Parameters: - $key (mixed) – Key into array.
- offsetSet(mixed $key, mixed $val)¶
Set an error into the list. Required by ArrayObject.
Parameters: - $key (mixed) – Key into array.
- $val (mixed) – Value to store.
- get()¶
Get the array of errors.
Returns: array
- count()¶
Get the number of errors.
Returns: integer
- __toString()¶
Get a string representation of all the stored errors.
Returns: string
- offsetExists($index)¶
Parameters: - $index (unknown) –
- offsetUnset($index)¶
Parameters: - $index (unknown) –
- append($value)¶
Parameters: - $value (unknown) –
- getArrayCopy()¶
- getFlags()¶
- setFlags($flags)¶
Parameters: - $flags (unknown) –
- asort()¶
- ksort()¶
- uasort($cmp_function)¶
Parameters: - $cmp_function (unknown) –
- uksort($cmp_function)¶
Parameters: - $cmp_function (unknown) –
- natsort()¶
- natcasesort()¶
- unserialize($serialized)¶
Parameters: - $serialized (unknown) –
- serialize()¶
- getIterator()¶
- exchangeArray($array)¶
Parameters: - $array (unknown) –
- setIteratorClass($iteratorClass)¶
Parameters: - $iteratorClass (unknown) –
- getIteratorClass()¶