Class:Doctrine_Validator_ErrorStack - Superclass: Doctrine_Access Class:Doctrine_Access - Superclass: Doctrine_Locator_Injectable Doctrine_Locator_Injectable
⌊ Doctrine_Access
⌊ Doctrine_Validator_ErrorStack
public class Doctrine_Validator_ErrorStack
extends Doctrine_Access
www.doctrine-project.org| Field Summary | |
|---|---|
| protected string | Get model class name for the error stack. |
| protected array | The errors of the error stack.. |
| protected array | Array of validators that failed. |
| Constructor Summary | |
|---|---|
Doctrine_Validator_ErrorStack(mixed className) Constructor. |
|
| Method Summary | |
|---|---|
| void | add(string invalidFieldName, mixed errorCode, string errorType, mixed value) Adds an error to the stack.. |
| void | clear() Removes all errors from the stack.. |
| boolean | contains(string fieldName, mixed offset) Check if a field has an error. |
| integer | count() Count the number of errors. |
| mixed | get(string fieldName, mixed offset) Get errors for field. |
| string | Get the classname where the errors occured. |
| unknown | Enter description here.... |
| array | Get array of failed validators. |
| boolean | remove(string fieldName, mixed offset) Removes all existing errors for the specified field from the stack.. |
| void | set(string fieldName, string errorCode, mixed offset, mixed value) Alias for add(). |
| void | toArray() |
| Methods inherited from Doctrine\Doctrine_Access | |
|---|---|
| add, contains, get, offsetExists, offsetGet, offsetSet, offsetUnset, remove, set, setArray | |
| Methods inherited from Doctrine\Doctrine_Locator_Injectable | |
|---|---|
| bind, getLocator, getNullObject, initNullObject, locate, setLocator | |
protected string $_className
Get model class name for the error stack
protected array $_errors = array()
The errors of the error stack.
protected array $_validators = array()
Array of validators that failed
public Doctrine_Validator_ErrorStack(mixed className)
Constructor
public void add(string invalidFieldName, mixed errorCode, string errorType, mixed value)
Adds an error to the stack.
public void clear()
Removes all errors from the stack.
public boolean contains(string fieldName, mixed offset)
Check if a field has an error
public integer count()
Count the number of errors
public mixed get(string fieldName, mixed offset)
Get errors for field
public string getClassname()
Get the classname where the errors occured
public unknown getIterator()
Enter description here...
public array getValidators()
Get array of failed validators
public boolean remove(string fieldName, mixed offset)
Removes all existing errors for the specified field from the stack.
public void set(string fieldName, string errorCode, mixed offset, mixed value)
Alias for add()
public void toArray()
Doctrine_Validator_ErrorStack