Пример #1
0
 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;
 }
Пример #2
0
 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'));
 }
Пример #3
0
 public function __construct($errorMsg, \FormEngine\Elements\Field $compareWith)
 {
     parent::__construct($errorMsg);
     $this->_compareWith = $compareWith;
 }
Пример #4
0
 public function __construct($errorMsg, $format)
 {
     parent::__construct($errorMsg);
     $this->_format = $format;
 }