Zend_Validate_Hostname::__construct
Sets validator options
Signature
public function __construct([integer
$allow = self::ALLOW_DNS,
[boolean
$validateIdn = true,
[boolean
$validateTld = true,
[Zend_Validate_Ip
$ipValidator = NULL]]]] )
Parameters
$allow
—
integer
- OPTIONAL Set what types of hostname to allow (default ALLOW_DNS)
$validateIdn
—
boolean
- OPTIONAL Set whether IDN domains are validated (default true)
$validateTld
—
boolean
- OPTIONAL Set whether the TLD element of a hostname is validated (default true)
$ipValidator
—
Zend_Validate_Ip
- OPTIONAL
Returns
- void