Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
HandlerValidatorJournal Class Reference
Inheritance diagram for HandlerValidatorJournal:

Public Member Functions

 HandlerValidatorJournal (&$handler, $redirectToLogin=false, $message=null, $additionalArgs=array())
 isValid ()
- Public Member Functions inherited from HandlerValidator
 _setHandler (&$handler)
 HandlerValidator (&$handler, $redirectToLogin=false, $message=null, $additionalArgs=array())
 isValid ()

Additional Inherited Members

- Public Attributes inherited from HandlerValidator

Detailed Description

Class to validate if a Journal is present.

Definition at line 17 of file

Member Function Documentation

HandlerValidatorJournal::HandlerValidatorJournal ( $handler,
  $redirectToLogin = false,
  $message = null,
  $additionalArgs = array() 


$handlerHandler the associated form
$redirectToLoginbool Send to login screen on validation fail if true
$messagestring the error message for validation failures (i18n key)
$additionalArgsArray URL arguments to include in request

Definition at line 25 of file

References HandlerValidator\$additionalArgs, HandlerValidator\$handler, HandlerValidator\$message, and HandlerValidator\$redirectToLogin.

HandlerValidatorJournal::isValid ( )

Check if field value is valid. Value is valid if it is empty and optional or validated by user-supplied function.


Definition at line 34 of file

References Request\getJournal().

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