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']); }
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']); }
public function __construct($errorMsg, Field $compareWith) { parent::__construct($errorMsg); $this->_compareWith = $compareWith; }
public function __construct($errorMsg, $format) { parent::__construct($errorMsg); $this->_format = $format; }