Open Journal Systems  2.4.4
 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 20 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 33 of file FormError.inc.php.

References $field, and $message.

FormError::getField ( )

Get the field associated with the error.

Returns
string

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

References $field.

FormError::getMessage ( )

Get the error message (i18n key).

Returns
string

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

References $message.

Member Data Documentation

FormError::$field

The name of the field

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

Referenced by FormError(), and getField().

FormError::$message

The error message

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

Referenced by FormError(), and getMessage().


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