◆ __construct()
◆ convertPunycode()
Convert a punycode string to UTF-8 if needed
- Paramètres
-
| string | $part | host component |
- Renvoie
- string host component as UTF-8
◆ decodePunycode()
| decodePunycode |
( |
|
$encoded | ) |
|
|
protected |
◆ findRegisteredDomain()
| findRegisteredDomain |
( |
|
$remainingSigningDomainParts, |
|
|
& |
$treeNode |
|
) |
| |
|
protected |
Recursive helper method to query the PSL tree
- Paramètres
-
| string[] | $remainingSigningDomainParts | parts of domain being queried |
| string[] | $treeNode | subset of tree array by reference |
- Renvoie
- null|string
◆ getRegisteredDomain()
| getRegisteredDomain |
( |
|
$host | ) |
|
Determine the registered domain portion of the supplied host string
- Paramètres
-
| string | $host | a host name or URL containing a host name |
- Renvoie
- string|null shortest registrable domain portion of the supplied host or null if invalid
◆ normalizeHost()
Given a URL or bare host name, return a normalized host name, converting punycode to UTF-8 and converting to lower case
- Paramètres
-
| string | $url | URL or host name |
- Renvoie
- string
◆ $psl
◆ $tree
La documentation de cette classe a été générée à partir du fichier suivant :