public function check(Check $check, $options = null) { if ($this->stopOnError && !$this->hasValidated($this->_currentId)) { return $this; } if (!$check->isValid($this->_currentValue)) { $this->_addError($check->id, ArrayTools::get($options, 'message')); } return $this; }
public function __construct($extensions, $mode, $ignoreCase = false) { parent::__construct(); $this->ignoreCase = $ignoreCase; $this->mode = $mode; if ($this->ignoreCase) { $this->extensions = explode('/', strtolower(implode('/', $extensions))); } else { $this->extensions = $extensions; } }
public function __construct($array) { parent::__construct(); $this->array = $array; }
public function __construct($minSize = null, $maxSize = null) { parent::__construct(); $this->minSize = $minSize; $this->maxSize = $maxSize; }
public function __construct($correctOrClosure) { parent::__construct(); $this->correctOrClosure = $correctOrClosure; }