public function __construct($errorMsg, $checkFunctionCallback, $params = array()) { parent::__construct($errorMsg); $this->_checkFunction = $checkFunctionCallback; $this->_jsFunction = App::getRegistry()->xajaxInterface->registerFunction(array('CheckCustomRule_' . self::$_nextId++, $this, 'doAjaxCheck')); $this->_params = $params; }
public function __construct($errorMsg, $table, $column, $valueProcessFunction = null, $exclude = null) { parent::__construct($errorMsg); $this->_table = $table; $this->_column = $column; $this->_exclude = $exclude; $this->_id = self::$_nextId++; $this->_valueProcessFunction = $valueProcessFunction; $this->_jsFunction = 'CheckUniqueness_' . $this->_id; App::getRegistry()->xajaxInterface->registerFunction(array($this->_jsFunction, $this, 'doAjaxCheck')); }
public function __construct($errorMsg, \FormEngine\Elements\Field $compareWith) { parent::__construct($errorMsg); $this->_compareWith = $compareWith; }
public function __construct($errorMsg, $format) { parent::__construct($errorMsg); $this->_format = $format; }