示例#1
0
 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;
     }
 }
示例#3
0
 public function __construct($array)
 {
     parent::__construct();
     $this->array = $array;
 }
 public function __construct($minSize = null, $maxSize = null)
 {
     parent::__construct();
     $this->minSize = $minSize;
     $this->maxSize = $maxSize;
 }
示例#5
0
 public function __construct($correctOrClosure)
 {
     parent::__construct();
     $this->correctOrClosure = $correctOrClosure;
 }