Open Journal Systems  3.3.0
FormError Class Reference

Public Member Functions

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

Data Fields

 $field
 
 $message
 

Detailed Description

Class to represent a form validation error.

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

Constructor & Destructor Documentation

◆ __construct()

FormError::__construct (   $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.

Member Function Documentation

◆ getField()

FormError::getField ( )

Get the field associated with the error.

Returns
string

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

References $field.

◆ getMessage()

FormError::getMessage ( )

Get the error message (i18n key).

Returns
string

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

References $message.

Field Documentation

◆ $field

FormError::$field

The name of the field

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

Referenced by __construct(), and getField().

◆ $message

FormError::$message

The error message

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

Referenced by __construct(), and getMessage().


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