Exemplo n.º 1
0
 public function __construct($errorMsg, $checkFunctionCallback, $params, ContainerInterface $container)
 {
     parent::__construct($errorMsg);
     $this->errorMsg = $errorMsg;
     $this->checkFunction = $checkFunctionCallback;
     $this->params = $params;
     $this->container = $container;
     $this->id = self::$_nextId++;
     $this->jsFunction = 'CheckCustomRule_' . $this->id;
     $this->container->get('xajax_manager')->registerFunction([$this->jsFunction, $this, 'doAjaxCheck']);
 }
Exemplo n.º 2
0
 public function __construct($errorMsg, $options, ContainerInterface $container)
 {
     parent::__construct($errorMsg);
     $this->errorMsg = $errorMsg;
     $this->container = $container;
     $this->options = $options;
     $this->id = self::$_nextId++;
     $this->jsFunction = 'CheckUniqueness_' . $this->id;
     $this->pdo = $this->container->get('database_manager')->getConnection()->getPdo();
     $this->container->get('xajax_manager')->registerFunction([$this->jsFunction, $this, 'doAjaxCheck']);
 }
Exemplo n.º 3
0
 public function __construct($errorMsg, Field $compareWith)
 {
     parent::__construct($errorMsg);
     $this->_compareWith = $compareWith;
 }
Exemplo n.º 4
0
 public function __construct($errorMsg, $format)
 {
     parent::__construct($errorMsg);
     $this->_format = $format;
 }