@param $value
@param IValidationData $data

@return bool
760597
public function check($value, IValidationData $data = null) {
        return array_contains([null, ''], $value) ? false : true;
    }
746097
public function setValue($value, $data = null)
    {
        // Define Value Property:
        
        $this->value = $value;
        
        // Determine Value Type:
        
        if (is_array($value)) {
            
            // Define from Array:
            
            foreach ($this->getViewports() as $viewport) {
                
                $field = $this->getViewportField($viewport);
                
                if (isset($value[$viewport])) {
                    $field->setValue($value[$viewport]);
                }
                
            }
            
        } elseif ($value instanceof DBViewports) {
            
            // Define from Field:
            
            foreach ($this->getViewports() as $viewport) {
                $this->getViewportField($viewport)->setValue($value->{$viewport});
            }
            
        }
        
        // Answer Receiver:
        
        return $this;
    }
698372
public function isValueValid($value) {
		return $value instanceof DataType\BooleanType || $value instanceof DataType\NumberType || $value instanceof Type\StructuredValue || $value instanceof DataType\TextType;
	}
135964
protected function lt($value, $rule, $data)
    {
        $val = $this->getDataValue($data, $rule);

        return !is_null($val) && $value < $val;
    }
943142
public function check($value, IValidationData $data = null) {
        if (is_string($value)) {
            return strlen($value) <= $this->max;
        } else if (is_array($value)) {
            return count($value) <= $this->max;
        }

        return false;
    }
1133595
function is_valid_parameter($parameter, $value) {

        if(is_array($value)) {
            if(!iCalendar_parameter::multiple_values_allowed($parameter)) {
                return false;
            }
            foreach($value as $item) {
                if(!iCalendar_parameter::is_valid_value($this, $parameter, $item)) {
                    return false;
                }
            }
            return true;
        }

        return iCalendar_parameter::is_valid_value($this, $parameter, $value);
    }
698285
public function isValueValid($value) {
		return $value instanceof DataType\TextType || $value instanceof Type\Thing || $value instanceof DataType\URLType;
	}
821306
public function bindValue($parameter, $value, int $dataType = \PDO::PARAM_STR): bool
    {
        return $this->statement->bindValue($parameter, $value, $dataType);
    }
1365193
public function check($value, IValidationData $data = null) {
        if (is_string($value)) {
            return preg_match($this->pattern, $value) === 1;
        }

        return false;
    }
1054912
private function isMatch($data, $criteria)
    {
        $result = true;

        foreach ($criteria as $key => $value) {
            if ($this->hasAttribute($key)) {
                if ($data[$key] != $value) {
                    $result = $result && false;
                }
            }
        }

        return $result;
    }
82824
public function inc($property, $value = 1) {
		if (isset($this->_data[$property])) {
			$this->_data[$property] += $value;
		} else {
			$this->_data[$property] = $value;
		}
		
		$this->_changed[$property] = true;
		
		return $this->_data[$property];
	}
1106301
public function bindValue($parameter, $value, $data_type = PDO::PARAM_STR)
    {
        $this->bindings->push(
            $this->wye->makeBinding($parameter, $value, $data_type)
        );

        return true;
    }
620568
public static function register($key, $value, $data = [])
    {
        if (!self::_tableExists()) {
            return;
        }

        self::autoLoad();

        $_data = [
            'value' => $value,
            'editable' => 1,
            'autoload' => true,
            'options' => [],
            'description' => null,
        ];

        $data = array_merge($_data, $data);

        // Don't overrule because we register
        $data['overrule'] = false;

        self::options($key, $data['options']);

        self::write($key, $data['value'], $data);
    }
1298077
protected function gt($value, $rule, $data)
    {
        $val = $this->getDataValue($data, $rule);

        return !is_null($val) && $value > $val;
    }
92546
function val($val = null){
		if (isset($val) ) {
			if (is_numeric($val) && is_int($val*1)) {
				$this->val = intval($val);
			} else {
				throw new \SimplOn\DataValidationException($this->validationNaN);
			}
		} else {
			return $this->val;
		}
    }
97328
public function requireCallback($value, $rule, $data) {
        $result = call_user_func_array([$this, $rule], [$value, $data]);

        if ($result) {
            return !empty($value) || '0' == $value;
        }

        return true;
    }
160308
function is_valid_value($value) {
        if(is_array($value)) {
            if(!$this->val_multi) {
                return false;
            }
            else {
                foreach($value as $oneval) {
                    if(!rfc2445_is_valid_value($oneval, $this->val_type)) {
                        return false;
                    }
                }
            }
            return true;
        }
        return rfc2445_is_valid_value($value, $this->val_type);
    }