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

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
 $additionalArgs
 
 $handler
 
 $message
 
 $redirectToLogin
 

Detailed Description

Class to validate if a Journal is present.

Definition at line 17 of file HandlerValidatorJournal.inc.php.

Member Function Documentation

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

Constructor.

Parameters
$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 HandlerValidatorJournal.inc.php.

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.

Returns
boolean

Definition at line 34 of file HandlerValidatorJournal.inc.php.

References Request\getJournal().


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