public function __construct($violationMsg, Request $request, $fieldName, $confFieldName) { parent::__construct($violationMsg); $this->setParam("fieldName", $fieldName); $this->setParam("confFieldName", $confFieldName); $this->request = $request; }
public function __construct($violationMsg, $minLength, $maxLength, $allowEmpty = false) { parent::__construct($violationMsg); $this->setParam('minLength', $minLength); $this->setParam('maxLength', $maxLength); $this->setParam('allowEmpty', $allowEmpty); }
/** * @param array $fieldNames Array of field names used * @param array $checks Array of respective checks (fieldname and check array indexes must match) */ public function __construct($fieldNames, $checks, Request $request) { // get error message from first check foreach ($checks as $check) { if ($violationMsg = $check->getViolationMsg()) { break; } } // check if fieldname and check array indexes match if (array_diff(array_keys($fieldNames), array_keys($checks))) { throw new ApplicationException('Field name and check array keys do not match'); } parent::__construct($violationMsg); $this->fieldNames = $fieldNames; $this->checks = $checks; $this->request = $request; }
public function __construct($violationMsg, User $user) { parent::__construct($violationMsg); $this->user = $user; }
public function __construct($value, Check $check) { parent::__construct($check->getViolationMsg()); $this->check = $check; $this->value = $value; }
public function __construct($violationMsg, $maxSize) { parent::__construct($violationMsg); $this->setParam('maxSize', $maxSize); }
public function __construct($violationMsg, $rangeStart, $rangeEnd) { parent::__construct($violationMsg); $this->setParam("rangeStart", $rangeStart); $this->setParam("rangeEnd", $rangeEnd); }
public function __construct($violationMsg, $maxValue) { parent::__construct($violationMsg); $this->setParam("maxValue", $maxValue); }
public function __construct($errorMessage, EavFieldCommon $specField, Request $request) { parent::__construct($errorMessage); $this->specField = $specField; $this->request = $request; }
public function __construct($violationMsg, $maxLength) { parent::__construct($violationMsg); $this->setParam("maxLength", $maxLength); }
public function __construct($violationMsg, $expectedValue, $secondPasswordFieldname) { parent::__construct($violationMsg); $this->setParam("expectedValue", $expectedValue); $this->setParam("secondPasswordFieldname", $secondPasswordFieldname); }
public function __construct($minLength = null, $maxLength = null) { parent::__construct(); $this->minLength = $minLength; $this->maxLength = $maxLength; }
public function __construct($violationMsg, $pattern) { parent::__construct($violationMsg); $this->pattern = $pattern; }
public function __construct($violationMsg, $extensions) { parent::__construct($violationMsg); $this->setParam('extensions', $extensions); }
public function __construct($min = null, $max = null) { parent::__construct(); $this->min = $min; $this->max = $max; }
public function __construct($violationMsg, $valueArray) { parent::__construct($violationMsg); $this->setParam("valueArray", $valueArray); }