Doctrine


Doctrine\Doctrine_Validator_ErrorStack
/Doctrine/Validator/ErrorStack.php at line 34

Class Doctrine_Validator_ErrorStack

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

Doctrine_Validator_ErrorStack

Package:
Doctrine
Subpackage:
Validator
Author:
Konsta Vesterinen
Roman Borschel
License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
See Also:
www.doctrine-project.org
Since:
1.0
Version:
$Revision: 7490 $
Category:
Locator

Field Summary
protected string

$_className

Get model class name for the error stack.

protected array

$_errors

The errors of the error stack..

protected array

$_validators

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

getClassname()

Get the classname where the errors occured.

unknown

getIterator()

Enter description here....

array

getValidators()

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

Field Detail

/Doctrine/Validator/ErrorStack.php at line 55

_className

protected string $_className

Get model class name for the error stack


/Doctrine/Validator/ErrorStack.php at line 41

_errors

protected array $_errors = array()

The errors of the error stack.


/Doctrine/Validator/ErrorStack.php at line 48

_validators

protected array $_validators = array()

Array of validators that failed


Constructor Detail

/Doctrine/Validator/ErrorStack.php at line 61

Doctrine_Validator_ErrorStack

public Doctrine_Validator_ErrorStack(mixed className)

Constructor


Method Detail

/Doctrine/Validator/ErrorStack.php at line 72

add

public void add(string invalidFieldName, mixed errorCode, string errorType, mixed value)

Adds an error to the stack.


/Doctrine/Validator/ErrorStack.php at line 140

clear

public void clear()

Removes all errors from the stack.


/Doctrine/Validator/ErrorStack.php at line 130

contains

public boolean contains(string fieldName, mixed offset)

Check if a field has an error


/Doctrine/Validator/ErrorStack.php at line 166

count

public integer count()

Count the number of errors


/Doctrine/Validator/ErrorStack.php at line 107

get

public mixed get(string fieldName, mixed offset)

Get errors for field


/Doctrine/Validator/ErrorStack.php at line 176

getClassname

public string getClassname()

Get the classname where the errors occured


/Doctrine/Validator/ErrorStack.php at line 151

getIterator

public unknown getIterator()

Enter description here...


/Doctrine/Validator/ErrorStack.php at line 186

getValidators

public array getValidators()

Get array of failed validators


/Doctrine/Validator/ErrorStack.php at line 91

remove

public boolean remove(string fieldName, mixed offset)

Removes all existing errors for the specified field from the stack.

Returns:
True if removed otherwise false

/Doctrine/Validator/ErrorStack.php at line 119

set

public void set(string fieldName, string errorCode, mixed offset, mixed value)

Alias for add()


/Doctrine/Validator/ErrorStack.php at line 156

toArray

public void toArray()

Doctrine