XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe RegisteredDomain

Fonctions membres publiques

 __construct (PublicSuffixList $psl=null)
 
 getRegisteredDomain ($host)
 

Fonctions membres protégées

 normalizeHost ($url)
 
 convertPunycode ($part)
 
 decodePunycode ($encoded)
 
 findRegisteredDomain ($remainingSigningDomainParts, &$treeNode)
 

Attributs protégés

 $tree
 
 $psl
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( PublicSuffixList  $psl = null)

RegisteredDomain constructor.

Paramètres
PublicSuffixList | null$pslPublicSuffixList object, or null to use defaults

Documentation des fonctions membres

◆ convertPunycode()

convertPunycode (   $part)
protected

Convert a punycode string to UTF-8 if needed

Paramètres
string$parthost component
Renvoie
string host component as UTF-8
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

◆ decodePunycode()

decodePunycode (   $encoded)
protected

convert punycode to UTF-8 (the hard way) Used only if idn_to_utf8() is not available

This fallback adapted from https://ckon.wordpress.com/2010/08/24/punycode-to-unicode-converter-php/

Paramètres
string$encoded
Renvoie
string
+ Voici le graphe des appelants de cette fonction :

◆ findRegisteredDomain()

findRegisteredDomain (   $remainingSigningDomainParts,
$treeNode 
)
protected

Recursive helper method to query the PSL tree

Paramètres
string[]$remainingSigningDomainPartsparts of domain being queried
string[]$treeNodesubset of tree array by reference
Renvoie
null|string
+ Voici le graphe des appelants de cette fonction :

◆ getRegisteredDomain()

getRegisteredDomain (   $host)

Determine the registered domain portion of the supplied host string

Paramètres
string$hosta host name or URL containing a host name
Renvoie
string|null shortest registrable domain portion of the supplied host or null if invalid
+ Voici le graphe d'appel pour cette fonction :

◆ normalizeHost()

normalizeHost (   $url)
protected

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$urlURL or host name
Renvoie
string
+ Voici le graphe d'appel pour cette fonction :
+ Voici le graphe des appelants de cette fonction :

Documentation des champs

◆ $psl

$psl
protected

◆ $tree

$tree
protected

La documentation de cette classe a été générée à partir du fichier suivant :