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

Inherited by HandlerValidatorCustom, and HandlerValidatorPolicy.

Public Member Functions

 HandlerValidator (&$handler, $redirectToLogin=false, $message=null, $additionalArgs=array())
 isValid ()

Public Attributes


Detailed Description

Class to represent a page validation check.

Class to represent a policy based validation check.

NB: Deprecated - please use ContextRequiredPolicy instead, see #5868.

NB: This class is deprecated and only exists for backward compatibility. Please use AuthorizationPolicy classes for authorization from now on.

NB: Deprecated - please use RoleBasedHandlerOperationPolicy instead.

Definition at line 15 of file

Member Function Documentation

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


$handlerHandler the associated form
$messagestring the error message for validation failures (i18n key)

Definition at line 34 of file

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

HandlerValidator::isValid ( )

Check if field value is valid. Default check is that field is either optional or not empty.


Definition at line 51 of file

Member Data Documentation


additional Args to pass in the URL

Definition at line 27 of file

Referenced by HandlerValidator().


The Handler associated with the check

Definition at line 18 of file

Referenced by HandlerValidator().


message for login screen

Definition at line 24 of file

Referenced by HandlerValidator().


bool flag for redirecting

Definition at line 21 of file

Referenced by HandlerValidator().

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