Class Xyster_Validate_Errors

Description

An error notification class

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Validate/Errors.php (line 32)

Xyster_Collection_Abstract
   |
   --Xyster_Validate_Errors
Variable Summary
array $_fields
Method Summary
Xyster_Validate_Errors __construct ([Xyster_Validate_Errors $errors = null])
boolean add (mixed $item)
void addError (string $message, string $field)
void addFilterInputMessages ( $filter)
void addValidateMessages ( $validate, [string $field = null])
Xyster_Validate_Error getError (string $field)
array getFields ()
boolean hasErrors ()
Variables
array $_fields = array() (line 39)

The fields

  • access: protected

Inherited Variables

Inherited from Xyster_Collection_Abstract

Xyster_Collection_Abstract::$_items
Methods
Constructor __construct (line 46)

Creates a new notification object

  • access: public
Xyster_Validate_Errors __construct ([Xyster_Validate_Errors $errors = null])
add (line 60)

Adds an error to the collection

  • throws: Zend_Validate_Exception if the item isn't an error
  • access: public
boolean add (mixed $item)
  • mixed $item

Redefinition of:
Xyster_Collection_Abstract::add()
Adds an item to the collection
addError (line 79)

Adds a new error to the collection

  • access: public
void addError (string $message, string $field)
  • string $message
  • string $field
addFilterInputMessages (line 89)

Adds any messages in an input filter as errors to this collection

  • access: public
void addFilterInputMessages ( $filter)
  • Zend_Filter_Input $filter
addValidateMessages (line 104)

Adds any messages in a validator as errors to this collection

  • access: public
void addValidateMessages ( $validate, [string $field = null])
  • Zend_Validate_Interface $validate
  • string $field: The name of the field to which these messages apply
getError (line 117)

Gets the first message available for the field supplied

  • return: or null if none found
  • access: public
Xyster_Validate_Error getError (string $field)
  • string $field: The name of the field
getFields (line 132)

Gets the fields to which the containing messages apply

  • access: public
array getFields ()
hasErrors (line 142)

A convenience method to test for presence of errors

  • access: public
boolean hasErrors ()

Inherited Methods

Inherited From Xyster_Collection_Abstract

Xyster_Collection_Abstract::add()
Xyster_Collection_Abstract::clear()
Xyster_Collection_Abstract::contains()
Xyster_Collection_Abstract::containsAll()
Xyster_Collection_Abstract::containsAny()
Xyster_Collection_Abstract::count()
Xyster_Collection_Abstract::getIterator()
Xyster_Collection_Abstract::isEmpty()
Xyster_Collection_Abstract::merge()
Xyster_Collection_Abstract::remove()
Xyster_Collection_Abstract::removeAll()
Xyster_Collection_Abstract::retainAll()
Xyster_Collection_Abstract::toArray()
Xyster_Collection_Abstract::__toString()

Documentation generated on Mon, 19 May 2008 17:07:09 -0400 by phpDocumentor 1.4.2