Пример #1
0
 /**
  * Constructor.
  * @param $handler Handler the associated form
  * @param $message string the error message for validation failures (i18n key)
  */
 function HandlerValidatorCustom(&$handler, $redirectLogin = false, $message = null, $urlArgs = array(), $userFunction, $userFunctionArgs = array(), $complementReturn = false)
 {
     parent::HandlerValidator($handler, $redirectLogin, $message, $urlArgs);
     $this->userFunction = $userFunction;
     $this->userFunctionArgs = $userFunctionArgs;
     $this->complementReturn = $complementReturn;
 }
 /**
  * Constructor.
  * @param $handler Handler the associated form
  * @param $roles array of role id's 
  * @param $all bool flag for whether all roles must exist or just 1
  */
 function HandlerValidatorSubmissionComment(&$handler, $commentId, &$user = null)
 {
     parent::HandlerValidator($handler);
     $this->commentId = $commentId;
     if ($user) {
         $this->user =& $user;
     } else {
         $this->user =& Request::getUser();
     }
 }
 /**
  * Constructor.
  * @param $handler Handler the associated form
  * @param $redirectToLogin bool Send to login screen on validation fail if true
  * @param $message string the error message for validation failures (i18n key)
  * @param $additionalArgs Array URL arguments to include in request
  */
 function HandlerValidatorConference(&$handler, $redirectToLogin = false, $message = null, $additionalArgs = array())
 {
     parent::HandlerValidator($handler, $redirectToLogin, $message, $additionalArgs);
 }
 /**
  * Constructor.
  * @param $policy AuthorizationPolicy
  * @see HandlerValidator::HandlerValidator()
  */
 function HandlerValidatorPolicy(&$policy, &$handler, $redirectToLogin = false, $message = null, $additionalArgs = array())
 {
     $this->_policy =& $policy;
     parent::HandlerValidator($handler, $redirectToLogin, $message, $additionalArgs);
 }
 /**
  * Constructor.
  * @param $handler Handler the associated form
  * @param $roles array of role id's 
  * @param $all bool flag for whether all roles must exist or just 1
  */
 function HandlerValidatorSubmissionComment(&$handler, $commentId)
 {
     parent::HandlerValidator($handler);
     $this->commentId = $commentId;
 }
Пример #6
0
 /**
  * Constructor.
  * @param $handler Handler the associated form
  */
 function HandlerValidatorSchedConf(&$handler)
 {
     parent::HandlerValidator($handler);
 }
Пример #7
0
 /**
  * Constructor.
  * @param $handler Handler the associated form
  * @param $roles array of role id's
  * @param $all bool flag for whether all roles must exist or just 1
  */
 function HandlerValidatorRoles(&$handler, $redirectLogin = true, $message = null, $additionalArgs = array(), $roles, $all = false)
 {
     parent::HandlerValidator($handler, $redirectLogin, $message, $additionalArgs);
     $this->roles = $roles;
     $this->all = $all;
 }