Zend_Validate_HostnameImplements interfaces:
Please note there are two standalone test scripts for testing IDN characters due to problems with file encoding.
The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on the command line.
The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML to allow users to test entering UTF-8 characters in a form.
Located in /Validate/Hostname.php (line 50)
void
__construct
([integer $allow = self::ALLOW_DNS], [boolean $validateIdn = true], [boolean $validateTld = true], integer $check)
integer
$_allow
(line 91)
Bit field of ALLOW constants; determines which types of hostnames are allowed
unknown_type
$_check
(line 98)
Bit field of CHECK constants; determines what additional hostname checks to make
array
$_messages
= array() (line 105)
Array of validation failure messages
array
$_validTlds
= array(Array of valid top-level-domains
Constructor __construct (line 151)
Sets validator options
getAllow (line 166)
Returns the allow option
getMessages (line 392)
Defined by Zend_Validate_Interface
Returns array of validation failure messages
isValid (line 228)
Defined by Zend_Validate_Interface
Returns true if and only if the $value is a valid hostname with respect to the current allow option
setAllow (line 177)
Sets the allow option
setCheck (line 213)
Sets the check option
setValidateIdn (line 190)
Set whether IDN domains are validated
This only applies when DNS hostnames are validated
setValidateTld (line 202)
Set whether the TLD element of a hostname is validated
This only applies when DNS hostnames are validated
_checkRegexType (line 404)
Throws an exception if a regex for $type does not exist
Documentation generated on Sat, 05 May 2007 11:55:24 -0700 by phpDocumentor 1.3.2