phpDocumentor ZNF
Action
[ class tree: ZNF ] [ index: ZNF ] [ all elements ]

Class: ZNF_Action_ActionErrors

Source Location: /Action/ActionErrors.php

Class ZNF_Action_ActionErrors

Class Overview

ZNF_Action_ActionErrors class encapsulates the error messages being reported by the ZNF_Action_ActionForm->validate() method.

Each individual error is described by a key and a relative message.

Located in /Action/ActionErrors.php [line 38]



		
				Author(s):
		
		
		API Tags:
Access:  public

Information Tags:
Version:  SVN $Id: ActionErrors.php 43 2007-06-26 23:36:35Z aronnax $
Copyright:  2004-2007 The ZNF Development Team
Link:  http://www.zeronotice.org
Since:  Release 0.5.0
License:  LGPL

Properties

Methods

[ Top ]
Property Summary
array   $_errors   Array where the set of errors are stored.

[ Top ]
Method Summary
ZNF_Action_ActionErrors   __construct()   Constructs a new ZNF_Action_ActionErrors object.
void   __destruct()   Destroys the ZNF_Action_ActionErrors object.
void   addError()   Adds an error message to the set of errors.
string   findError()   Returns an error by the key.
array   getErrors()   Returns the set of errors.
int   getNumErrors()   Returns number of errors.

[ Top ]
Properties
array   $_errors = array() [line 47]

Array where the set of errors are stored.

API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 54]

  ZNF_Action_ActionErrors __construct( )

Constructs a new ZNF_Action_ActionErrors object.


API Tags:
Access:  public


[ Top ]
Destructor __destruct  [line 115]

  void __destruct( )

Destroys the ZNF_Action_ActionErrors object.


API Tags:
Access:  public


[ Top ]
addError  [line 65]

  void addError( int $key, string $value  )

Adds an error message to the set of errors.

Parameters:
int   $key: 
string   $value: 

API Tags:
Access:  public


[ Top ]
findError  [line 101]

  string findError( int $key  )

Returns an error by the key.

Parameters:
int   $key: 

API Tags:
Access:  public


[ Top ]
getErrors  [line 78]

  array getErrors( )

Returns the set of errors.


API Tags:
Access:  public


[ Top ]
getNumErrors  [line 89]

  int getNumErrors( )

Returns number of errors.


API Tags:
Access:  public


[ Top ]

Documentation generated on Wed, 14 Nov 2007 23:47:33 +0100 by phpDocumentor 1.4.0