Zend_Validate_Hostname
REGEX_LOCAL_DEFAULT = '/^(?:[^\W_](?:[^\W_]|-){0,61}[^\W_]\.)*(?:[^\W_](?:[^\W_]|-){0,61}[^\W_])\.?$/'
integer
$_allow
(line 69)
Bit field of ALLOW constants; determines which types of hostnames are allowed
array
$_messages
= array() (line 85)
Array of validation failure messages
array
$_regex
= array(Array of regular expressions used for validation
array
$_validTlds
= array(Array of valid top-level-domains
Constructor __construct (line 128)
Sets validator options
getAllow (line 138)
Returns the allow option
getMessages (line 329)
Defined by Zend_Validate_Interface
Returns array of validation failure messages
getRegex (line 161)
Returns the regular expression used for validating $type hostnames
isValid (line 188)
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 149)
Sets the allow option
setRegex (line 173)
Enter description here...
_checkRegexType (line 341)
Throws an exception if a regex for $type does not exist
ALLOW_ALL
= 7
(line 56)
Allows all types of hostnames
ALLOW_DNS
= 1
(line 41)
Allows Internet domain names (e.g., example.com)
ALLOW_IP
= 2
(line 46)
Allows IP addresses
ALLOW_LOCAL
= 4
(line 51)
Allows local network names (e.g., localhost, www.localdomain)
REGEX_LOCAL_DEFAULT
= '/^(?:[^\W_](?:[^\W_]|-){0,61}[^\W_]\.)*(?:[^\W_](?:[^\W_]|-){0,61}[^\W_])\.?$/'
(line 62)
Default regular expression for local network name validation
Documentation generated on Wed, 21 Feb 2007 11:50:20 -0800 by phpDocumentor 1.3.1