public function __construct(array $conditions, $error = '') { parent::__construct($error); $error = strlen($error)?$error:'Field error.'; $this->setError($error); $this->conditions = $conditions; }
public function __construct($error = '', $numbersOfSmallLetters = 1, $numberOfBigLetters = 1, $numberOfDigits = 1, $numberOfSpecialChars = 0) { parent::__construct($error); $error = strlen($error)?$error:"Passwords must have at least: {$numbersOfSmallLetters} small letters; {$numberOfBigLetters} big letters; {$numberOfDigits} digits and {$numberOfSpecialChars} special characters."; $this->setError($error); $this->numberOfSmallLetters = $numbersOfSmallLetters; $this->numberOfBigLetters = $numberOfBigLetters; $this->numberOfDigits = $numberOfDigits; $this->numberOfSpecialChars = $numberOfSpecialChars; }
public function __construct($minimumLength, $error = '') { parent::__construct($error); $this->minimumLength = $minimumLength; $error = strlen($error)?$error:"String must have minimum $minimumLength characters."; $this->setError($error); }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:'Float only'; $this->setError($error); }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:'Field is required'; $this->setError($error); }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:'Check this field'; $this->setError($error); }
public function __construct($neq, $error = '') { parent::__construct($error); $this->neq = $neq; $error = strlen($error)?$error:"Value must be different than $neq."; $this->setError($error); }
public function __construct($error = '') { parent::__construct($error); }
public function __construct($error) { parent::__construct($error); $error = strlen($error)?$error:'Invalid amount.'; $this->setError($error); }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:'Upload a file.'; $this->setError($error); }
public function __construct($regex, $error = '') { parent::__construct($error); $this->regex = $regex; }
public function __construct(array $validators, $error = '') { parent::__construct($error); $error = strlen($error)?$error:'Any of validator...'; $this->setError($error); $this->validators = $validators; }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:"Enter correct date in format YYYY-MM-DD HH:MM:SS."; $this->setError($error); }
public function __construct($error = '', AF_PasswordElement $secondPasswordElement) { parent::__construct($error); $error = strlen($error)?$error:"Passwords must be equal."; $this->setError($error); $this->secondPassword = $secondPasswordElement; }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:"Incorrect email address."; $this->setError($error); }
public function __construct($gt, $error = '') { parent::__construct($error); $this->gt = $gt; $error = strlen($error)?$error:"Value must be greater or equal than $gt."; $this->setError($error); }
public function __construct($error = '',$fileType='') { parent::__construct($error); $this->fileType = $fileType; $error = strlen($error)?$error:'Bad file type!'; $this->setError($error); }
public function __construct($lt, $error = '') { parent::__construct($error); $this->lt = $lt; $error = strlen($error)?$error:"Value must be less than $lt."; $this->setError($error); }
public function __construct($eq, $error = '') { parent::__construct($error); $this->eq = $eq; $error = strlen($error)?$error:"Value must be equal $eq."; $this->setError($error); }
public function __construct(AF_Element $element, $error = '') { parent::__construct($error); $this->element = $element; $error = strlen($error)?$error:"Value must be less than '{$element->value}'."; $this->setError($error); }
public function __construct($error = '') { parent::__construct($error); $error = strlen($error)?$error:'Empty string only.'; $this->setError($error); }