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 135)
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
Constructor __construct (line 325)
Sets validator options
decodePunycode (line 651)
Decodes a punycode encoded string to it's original utf8 string In case of a decoding failure the original string is returned
getAllow (line 417)
Returns the allow option
getOptions (line 356)
Returns all set options
getValidateIdn (line 439)
Returns the set idn option
getValidateTld (line 462)
Returns the set tld option
isValid (line 489)
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 428)
Sets the allow option
setIpValidator (line 402)
setOptions (line 367)
Sets the options for this validator
setValidateIdn (line 451)
Set whether IDN domains are validated
This only applies when DNS hostnames are validated
setValidateTld (line 474)
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 101)
Allows all types of hostnames
ALLOW_DNS
= 1
(line 86)
Allows Internet domain names (e.g., example.com)
ALLOW_IP
= 2
(line 91)
Allows IP addresses
ALLOW_LOCAL
= 4
(line 96)
Allows local network names (e.g., localhost, www.localdomain)
CANNOT_DECODE_PUNYCODE
= 'hostnameCannotDecodePunycode'
(line 58)
INVALID
= 'hostnameInvalid'
(line 49)
INVALID_DASH
= 'hostnameDashCharacter'
(line 52)
INVALID_HOSTNAME
= 'hostnameInvalidHostname'
(line 55)
INVALID_HOSTNAME_SCHEMA
= 'hostnameInvalidHostnameSchema'
(line 53)
INVALID_LOCAL_NAME
= 'hostnameInvalidLocalName'
(line 56)
IP_ADDRESS_NOT_ALLOWED
= 'hostnameIpAddressNotAllowed'
(line 50)
LOCAL_NAME_NOT_ALLOWED
= 'hostnameLocalNameNotAllowed'
(line 57)
UNDECIPHERABLE_TLD
= 'hostnameUndecipherableTld'
(line 54)
UNKNOWN_TLD
= 'hostnameUnknownTld'
(line 51)
Documentation generated on Mon, 21 Jun 2010 15:27:02 -0400 by phpDocumentor 1.4.3