Property | Type | Description | |
---|---|---|---|
$_idnLength | |||
$_messageTemplates | array | ||
$_messageVariables | array | ||
$_options | |||
$_tld | string | ||
$_validIdns | array | Array for valid Idns | |
$_validTlds | array | Array of valid top-level-domains |
Method | Description | |
---|---|---|
__construct ( $options = [] ) : void | Sets validator options | |
getAllow ( ) : integer | Returns the allow option | |
getIpValidator ( ) : Zend_Validate_Ip | Returns the set ip validator | |
getOptions ( ) : array | Returns all set options | |
getValidateIdn ( ) : boolean | Returns the set idn option | |
getValidateTld ( ) : boolean | Returns the set tld option | |
isValid ( string $value ) : boolean | Defined by Zend_Validate_Interface | |
setAllow ( integer $allow ) : Zend_Validate_Hostname | Sets the allow option | |
setIpValidator ( Zend_Validate_Ip $ipValidator = null ) : void; | ||
setOptions ( array $options ) : Zend_Validate_Hostname | Sets the options for this validator | |
setValidateIdn ( boolean $allowed ) | Set whether IDN domains are validated | |
setValidateTld ( boolean $allowed ) | Set whether the TLD element of a hostname is validated |
Method | Description | |
---|---|---|
decodePunycode ( string $encoded ) : string | Decodes a punycode encoded string to it's original utf8 string In case of a decoding failure the original string is returned |
public __construct ( $options = [] ) : void | ||
return | void |
protected decodePunycode ( string $encoded ) : string | ||
$encoded | string | Punycode encoded string to decode |
return | string |
public getIpValidator ( ) : Zend_Validate_Ip | ||
return | Zend_Validate_Ip |
public getValidateIdn ( ) : boolean | ||
return | boolean |
public getValidateTld ( ) : boolean | ||
return | boolean |
public setIpValidator ( Zend_Validate_Ip $ipValidator = null ) : void; | ||
$ipValidator | Zend_Validate_Ip | OPTIONAL |
return | void; |
public setOptions ( array $options ) : Zend_Validate_Hostname | ||
$options | array | |
return | Zend_Validate_Hostname |
public setValidateIdn ( boolean $allowed ) | ||
$allowed | boolean | Set allowed to true to validate IDNs, and false to not validate them |
public setValidateTld ( boolean $allowed ) | ||
$allowed | boolean | Set allowed to true to validate TLDs, and false to not validate them |
protected array $_validTlds | ||
return | array |