Ejemplo n.º 1
0
 public function __construct($violationMsg, Request $request, $fieldName, $confFieldName)
 {
     parent::__construct($violationMsg);
     $this->setParam("fieldName", $fieldName);
     $this->setParam("confFieldName", $confFieldName);
     $this->request = $request;
 }
Ejemplo n.º 2
0
 public function __construct($violationMsg, $minLength, $maxLength, $allowEmpty = false)
 {
     parent::__construct($violationMsg);
     $this->setParam('minLength', $minLength);
     $this->setParam('maxLength', $maxLength);
     $this->setParam('allowEmpty', $allowEmpty);
 }
Ejemplo n.º 3
0
 /**
  * @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;
 }
Ejemplo n.º 4
0
 public function __construct($violationMsg, User $user)
 {
     parent::__construct($violationMsg);
     $this->user = $user;
 }
Ejemplo n.º 5
0
 public function __construct($value, Check $check)
 {
     parent::__construct($check->getViolationMsg());
     $this->check = $check;
     $this->value = $value;
 }
Ejemplo n.º 6
0
 public function __construct($violationMsg, $maxSize)
 {
     parent::__construct($violationMsg);
     $this->setParam('maxSize', $maxSize);
 }
Ejemplo n.º 7
0
 public function __construct($violationMsg, $rangeStart, $rangeEnd)
 {
     parent::__construct($violationMsg);
     $this->setParam("rangeStart", $rangeStart);
     $this->setParam("rangeEnd", $rangeEnd);
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 10
0
 public function __construct($violationMsg, $maxLength)
 {
     parent::__construct($violationMsg);
     $this->setParam("maxLength", $maxLength);
 }
Ejemplo n.º 11
0
 public function __construct($violationMsg, $expectedValue, $secondPasswordFieldname)
 {
     parent::__construct($violationMsg);
     $this->setParam("expectedValue", $expectedValue);
     $this->setParam("secondPasswordFieldname", $secondPasswordFieldname);
 }
Ejemplo n.º 12
0
 public function __construct($minLength = null, $maxLength = null)
 {
     parent::__construct();
     $this->minLength = $minLength;
     $this->maxLength = $maxLength;
 }
Ejemplo n.º 13
0
 public function __construct($violationMsg, $pattern)
 {
     parent::__construct($violationMsg);
     $this->pattern = $pattern;
 }
Ejemplo n.º 14
0
 public function __construct($violationMsg, $extensions)
 {
     parent::__construct($violationMsg);
     $this->setParam('extensions', $extensions);
 }
Ejemplo n.º 15
0
 public function __construct($min = null, $max = null)
 {
     parent::__construct();
     $this->min = $min;
     $this->max = $max;
 }
Ejemplo n.º 16
0
 public function __construct($violationMsg, $valueArray)
 {
     parent::__construct($violationMsg);
     $this->setParam("valueArray", $valueArray);
 }