Class Server
Namespace: Blesta\Core\Util\Validate
Located at core/Util/Validate/Server.php
Methods summary
public
boolean
|
#
isDomain( string $domain )
Determines whether the given domain is a valid domain name.
NOTE: This does not check IDN/punycode/UTF-8 domains
Determines whether the given domain is a valid domain name.
NOTE: This does not check IDN/punycode/UTF-8 domains
Parameters
- $domain
- The domain or subdomain to check (e.g. "domain.com", "sub.domain.com")
Returns
boolean True if the $domain is valid, false otherwise
|
public
boolean
|
#
isIp( string $ip )
Determines whether the given IP is a valid IP address
Determines whether the given IP is a valid IP address
Parameters
- $ip
- The IP address to validate
Returns
boolean True if the IP address is valid, false otherwise
|
public
boolean
|
#
isUrl( string $url )
Determines whether the given URL is valid
required
Determines whether the given URL is valid
required
Parameters
- $url
- The URL to validate (protocol not required, e.g. "http://")
Returns
boolean True if the URL is valid, false otherwise
|