Walidacja porówniania wartości
@param mixed $value wartość
@return boolean
7372
public function isValid($value)
    {
        //wartość nierówna
        if ($this->getValue() != $value) {
            return $this->_error(self::INVALID);
        }
        return true;
    }
1280346
public function isValueValid($value) {
		return $value instanceof Type\ProductType || $value instanceof DataType\TextType || $value instanceof DataType\URLType;
	}
1038428
public function isValid($value)
    {
        //znaki do usuniącia
        $trims = [' ', '-', '_', '.', ',', '/', '|'];
        //wielkie litery
        $tmp = strtoupper(str_replace($trims, '', $value));
        //brak pierwszego znaku
        if (!isset($tmp[0])) {
            $this->_error(self::INVALID);
            return false;
        }
        //brak kodu kraju - doklejanie
        if (is_numeric($tmp[0])) {
            $tmp = $this->getCountry() . $tmp;
        }
        //algorytm sumy kontrolnej
        $tmp = substr($tmp, 4) . substr($tmp, 0, 4);
        $tmp = str_replace([
            'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
            'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
        ], [
            '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22',
            '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35'
        ], $tmp);
        //błąd sumy kontrolnej
        if (bcmod($tmp, 97) != 1) {
            $this->_error(self::INVALID);
            return false;
        }
        return true;
    }
412278
protected static function _valueMatch($current, $value)
    {
        //Wszystko
        if ($value == '*') {
            return true;
        }
        //Każda wartość podzielna przez
        if (false !== strpos($value, '/')) {
            if ($current % intval(ltrim($value, '*/ ')) == 0) {
                return true;
            }
        }
        //Lista wartości
        $values = explode(',', $value);
        foreach ($values as $val) {
            if (intval($val) == $val && $val == $current) {
                return true;
            }
        }
        //zakres wartości
        if (false !== strpos($value, '-')) {
            $range = explode('-', $value);
            if ($current >= intval($range[0]) && $current <= intval($range[1])) {
                return true;
            }
        }
        return false;
    }
1082382
public function isValueValid($value) {
		return $value instanceof Type\ContactPoint || $value instanceof Type\Organization || $value instanceof Type\Person;
	}
788224
public function isValueValid($value) {
		return $value instanceof Type\ListItem || $value instanceof DataType\TextType || $value instanceof Type\Thing;
	}
113635
public function isValueValid($value) {
		return $value instanceof Type\MonetaryAmountType || $value instanceof DataType\NumberType || $value instanceof Type\PriceSpecificationType;
	}
468889
static public function isToday($value)
    {
        $time = DataHelper::toUnixtime($value);
        $todayRange = static::todayRange();
        
        if ($time >= $todayRange[0] && $time <= $todayRange[1]) {
            return true;
        }
        return false;
    }
431178
public static function toBooleanValue(string $value): bool
    {
        if (empty($value)) {
            return false;
        }
        
        return !in_array(strtolower(trim($value)), StringUtils::FALSES);
    }
376040
public function isValueValid($value) {
		return $value instanceof DataType\NumberType || $value instanceof Type\PriceSpecification || $value instanceof DataType\TextType;
	}
1057270
public function isValid($value = null)
    {
        //jeśli niezaznaczony
        if ($this->getElement() && !$this->getElement()->isChecked()) {
            return $this->_error(self::INVALID);
        }
        return true;
    }
1275350
public function isValueValid($value) {
		return $value instanceof Type\GeoShape || $value instanceof Type\Place || $value instanceof DataType\TextType;
	}
939899
public function isValueValid($value) {
		return $value instanceof DataType\NumberType || $value instanceof Type\QuantitativeValueType || $value instanceof DataType\TextType;
	}
1215652
public function isValueValid($value) {
		return $value instanceof Type\PropertyValueType || $value instanceof DataType\TextType || $value instanceof DataType\URLType;
	}
423878
public function isValueValid($value) {
		return $value instanceof Type\PlaceType || $value instanceof Type\PostalAddressType || $value instanceof DataType\TextType;
	}
174450
public function removeOne($value): bool
    {
        if ($this->isValidType($value) === false) {
            throw new MWrongTypeException("\$value", $this->getType(), $value);
        }

        $result = array_search($value, $this->list);

        if ($result === false) {
            throw new \OutOfBoundsException();
        }

        unset($this->list[$result]);

        return true;
    }
623239
public function isValid($value)
    {
        if (!$value instanceof WorkflowDispatchEventInterface) {
            $this->error(self::VALIDATE_VALUE_INVALID);
            return false;
        }

        if (null === $this->getAllowedHttpMethods()) {
            return true;
        }

        $request = $value->getMvcEvent()->getRequest();
        if (!$request instanceof Request) {
            $this->error(self::REQUEST_INVALID);
            return false;
        }

        /** @var Request  $request*/
        $method = $request->getMethod();
        $method = strtolower($method);

        $allowedHttpMethods = $this->getAllowedHttpMethods();
        if (!array_key_exists($method, $allowedHttpMethods)) {
            $this->error(self::HTTP_METHOD_INVALID);
            return false;
        }



        return true;
    }