Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
FormError Class Reference

Public Member Functions

 FormError ($field, $message)
 
 getField ()
 
 getMessage ()
 

Public Attributes

 $field
 
 $message
 

Detailed Description

Class to represent a form validation error.

Definition at line 16 of file FormError.inc.php.

Member Function Documentation

FormError::FormError (   $field,
  $message 
)

Constructor.

Parameters
$fieldstring the name of the field
$messagestring the error message (i18n key)

Definition at line 29 of file FormError.inc.php.

References $field, and $message.

FormError::getField ( )

Get the field associated with the error.

Returns
string

Definition at line 38 of file FormError.inc.php.

References $field.

FormError::getMessage ( )

Get the error message (i18n key).

Returns
string

Definition at line 46 of file FormError.inc.php.

References $message.

Member Data Documentation

FormError::$field

The name of the field

Definition at line 19 of file FormError.inc.php.

Referenced by FormError(), and getField().

FormError::$message

The error message

Definition at line 22 of file FormError.inc.php.

Referenced by FormError(), and getMessage().


The documentation for this class was generated from the following file: