This class allow to verify the values provided by users easily.
It can check if the value is a date, a number or a Fully Qualified Domain Name
All the methods are available in static or standard mode
Namespace Domframework
/** Permit to check the validity of fields
No property available
/** Check if the provided value is only contains the provided chars. All the strings must be in UTF-8@param string $valThe string to test@param string $allowedCharsThe allowed chars
/**
Check if $val is a valid date in SQL
A valid date is 2014-03-20
Return true or false
@param string $val The date to check
/**
Check if $val is a valid date and time in SQL
A valid date is 2014-03-20 12:27:34
Return true or false
@param string $val The date to check
/**
Check if $val is a valid domain (without hostname)
Return true or false
@param string $val The domain to check
/** Return true if the provided value is a valid email address@param string $valThe value to check@returnboolean
/**
Check if $val is a valid FQDN
Return true or false
@param string $val The FQDN to check
/** Return true if the provided string is a valid hash@param string $algoThe hash algo to test@param string $valThe value to test
/**
Check if $val is a valid hostname (without domain)
Return true or false
@param string $val The hostname to check
/**
Return true if the provided value is an integer in decimal (not octal)
@param string $val The Integer val to check
/**
Check if $val is a valid IPv4
Return true or false
@param string $val The IP to test
/**
Check if $val is a valid IPv4
Return true or false
@param string $val The IPv4 to test
/**
Check if $val is a valid IPv6
Return true or false
@param string $val The IPv6 to test
/** Return true if the provided value is a valid URL@param string $valThe value to check@returnboolean
/** Return true if the provided value is a valid UUID %04x%04x-%04x-%04x-%04x-%04x%04x%04x@param string $valThe value to check@returnboolean
/**
Check if $val is a valid FQDN
Return true or false
@param string $val The FQDN to check
@deprecated 0.39
/**
Check if $val is a valid IPv4
Return true or false
@param string $val The IP to test
@deprecated 0.39
/** Return true if the provided value is a valid URL@param string $valThe value to check@returnboolean @deprecated 0.39
/** Return true if the provided value is a valid UUID %04x%04x-%04x-%04x-%04x-%04x%04x%04x@param string $valThe value to check@returnboolean @deprecated 0.39
/**
Check if $val is a valid date in SQL
A valid date is 2014-03-20
Return true or false
@param string $val The date to check
@deprecated 0.39
/**
Check if $val is a valid date and time in SQL
A valid date is 2014-03-20 12:27:34
Return true or false
@param string $val The date to check
@deprecated 0.39
/**
Check if $val is a valid domain (without hostname)
Return true or false
@param string $val The domain to check
@deprecated 0.39
/** Return true if the provided value is a valid email address@param string $valThe value to check@returnboolean @deprecated 0.39
/**
Check if $val is a valid hostname (without domain)
Return true or false
@param string $val The hostname to check
@deprecated 0.39
/**
Return true if the provided value is an integer in decimal (not octal)
@param string $val The Integer val to check
@deprecated 0.39
/**
Check if $val is a valid IPv4
Return true or false
@param string $val The IPv4 to test
@deprecated 0.39
/**
Check if $val is a valid IPv6
Return true or false
@param string $val The IPv6 to test
@deprecated 0.39
/** Check if the provided value is only contains the provided chars. In static mode All the strings must be in UTF-8@param string $valThe string to test@param string $allowedCharsThe allowed chars
/**
Check if $val is a valid date in SQL in static mode
A valid date is 2014-03-20
Return true or false
@param string $val The date to check
/**
Check if $val is a valid date and time in SQL in static mode
A valid date is 2014-03-20 12:27:34
Return true or false
@param string $val The date to check
/**
Check if $val is a valid domain (without hostname) in static mode
Return true or false
@param string $val The domain to check
/** Return true if the provided value is a valid email address in static mode@param string $valThe value to check@returnboolean
/**
Check if $val is a valid FQDN in static mode
Return true or false
@param string $val The FQDN to check
/** Return true if the provided string is a valid hash in static@param string $algoThe hash algo to test@param string $valThe value to test
/**
Check if $val is a valid hostname (without domain)
Return true or false
@param string $val The hostname to check
/**
Return true if the provided value is an integer in decimal (not octal)
In static mode
@param string $val The Integer val to check
/**
Check if $val is a valid IPv4 in static mode
Return true or false
@param string $val The IP to test
/**
Check if $val is a valid IPv4 in static mode
Return true or false
@param string $val The IPv4 to test
/**
Check if $val is a valid IPv6 in static mode
Return true or false
@param string $val The IPv6 to test
/** Return true if the provided value is a valid URL in static mode@param string $valThe value to check@returnboolean
/** Return true if the provided value is a valid UUID in static mode %04x%04x-%04x-%04x-%04x-%04x%04x%04x@param string $valThe value to check@returnboolean
/**
Check if $val is a valid FQDN in static mode
Return true or false
@param string $val The FQDN to check
@deprecated 0.39
/** Return true if the provided value is a valid URL in static mode@param string $valThe value to check@returnboolean @deprecated 0.39
/** Return true if the provided value is a valid UUID in static mode %04x%04x-%04x-%04x-%04x-%04x%04x%04x@param string $valThe value to check@returnboolean @deprecated 0.39
/**
Check if $val is a valid date in SQL in static mode
A valid date is 2014-03-20
Return true or false
@param string $val The date to check
@deprecated 0.39
/**
Check if $val is a valid date and time in SQL in static mode
A valid date is 2014-03-20 12:27:34
Return true or false
@param string $val The date to check
@deprecated 0.39
/**
Check if $val is a valid domain (without hostname) in static mode
Return true or false
@param string $val The domain to check
@deprecated 0.39
/** Return true if the provided value is a valid email address in static mode@param string $valThe value to check@returnboolean @deprecated 0.39
/**
Check if $val is a valid hostname (without domain)
Return true or false
@param string $val The hostname to check
@deprecated 0.39
/**
Return true if the provided value is an integer in decimal (not octal)
In static mode
@param string $val The Integer val to check
@deprecated 0.39
/**
Check if $val is a valid IPv4 in static mode
Return true or false
@param string $val The IP to test
@deprecated 0.39
/**
Check if $val is a valid IPv4 in static mode
Return true or false
@param string $val The IPv4 to test
@deprecated 0.39
/**
Check if $val is a valid IPv6 in static mode
Return true or false
@param string $val The IPv6 to test
@deprecated 0.39