Zend_Validate_HostnamePlease 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 47)
Zend_Validate_Abstract | --Zend_Validate_Hostname
void
__construct
([ $options = array()], integer $allow, boolean $validateIdn, boolean $validateTld, Zend_Validate_Ip $ipValidator)
mixed
$_idnLength
= array(
array
$_messageTemplates
= array(
array
$_messageVariables
= array(
mixed
$_options
= array(
string
$_tld
(line 142)
array
$_validIdns
= array(Array for valid Idns
array
$_validTlds
= array(Array of valid top-level-domains
Inherited from Zend_Validate_Abstract
Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
decodePunycode (line 667)
Decodes a punycode encoded string to it's original utf8 string In case of a decoding failure the original string is returned
getAllow (line 424)
Returns the allow option
getOptions (line 363)
Returns all set options
getValidateIdn (line 446)
Returns the set idn option
getValidateTld (line 469)
Returns the set tld option
isValid (line 496)
Defined by Zend_Validate_Interface
Returns true if and only if the $value is a valid hostname with respect to the current allow option
Constructor __construct (line 332)
Sets validator options
setAllow (line 435)
Sets the allow option
setIpValidator (line 409)
setOptions (line 374)
Sets the options for this validator
setValidateIdn (line 458)
Set whether IDN domains are validated
This only applies when DNS hostnames are validated
setValidateTld (line 481)
Set whether the TLD element of a hostname is validated
This only applies when DNS hostnames are validated
Inherited From Zend_Validate_Abstract
Zend_Validate_Abstract::getDefaultTranslator()
Zend_Validate_Abstract::getErrors()
Zend_Validate_Abstract::getMessageLength()
Zend_Validate_Abstract::getMessages()
Zend_Validate_Abstract::getMessageTemplates()
Zend_Validate_Abstract::getMessageVariables()
Zend_Validate_Abstract::getObscureValue()
Zend_Validate_Abstract::getTranslator()
Zend_Validate_Abstract::hasDefaultTranslator()
Zend_Validate_Abstract::hasTranslator()
Zend_Validate_Abstract::setDefaultTranslator()
Zend_Validate_Abstract::setDisableTranslator()
Zend_Validate_Abstract::setMessage()
Zend_Validate_Abstract::setMessageLength()
Zend_Validate_Abstract::setMessages()
Zend_Validate_Abstract::setObscureValue()
Zend_Validate_Abstract::setTranslator()
Zend_Validate_Abstract::translatorIsDisabled()
Zend_Validate_Abstract::_createMessage()
Zend_Validate_Abstract::_error()
Zend_Validate_Abstract::_setValue()
Zend_Validate_Abstract::__get()
ALLOW_ALL
= 7
(line 103)
Allows all types of hostnames
ALLOW_DNS
= 1
(line 88)
Allows Internet domain names (e.g., example.com)
ALLOW_IP
= 2
(line 93)
Allows IP addresses
ALLOW_LOCAL
= 4
(line 98)
Allows local network names (e.g., localhost, www.localdomain)
ALLOW_URI
= 8
(line 108)
Allows all types of hostnames
CANNOT_DECODE_PUNYCODE
= 'hostnameCannotDecodePunycode'
(line 49)
INVALID
= 'hostnameInvalid'
(line 50)
INVALID_DASH
= 'hostnameDashCharacter'
(line 51)
INVALID_HOSTNAME
= 'hostnameInvalidHostname'
(line 52)
INVALID_HOSTNAME_SCHEMA
= 'hostnameInvalidHostnameSchema'
(line 53)
INVALID_LOCAL_NAME
= 'hostnameInvalidLocalName'
(line 54)
INVALID_URI
= 'hostnameInvalidUri'
(line 55)
IP_ADDRESS_NOT_ALLOWED
= 'hostnameIpAddressNotAllowed'
(line 56)
LOCAL_NAME_NOT_ALLOWED
= 'hostnameLocalNameNotAllowed'
(line 57)
UNDECIPHERABLE_TLD
= 'hostnameUndecipherableTld'
(line 58)
UNKNOWN_TLD
= 'hostnameUnknownTld'
(line 59)
Documentation generated on Tue, 26 Oct 2010 20:08:49 +0400 by phpDocumentor 1.4.2