Contao\Idna::decode PHP Метод

decode() публичный статический Метод

Decode an internationalized domain name
public static decode ( string $strDomain ) : string
$strDomain string The domain name
Результат string The decoded domain name
    public static function decode($strDomain)
    {
        $objPunycode = new Punycode();
        return $objPunycode->decode($strDomain);
    }

Usage Example

Пример #1
0
 /**
  * @param $strType
  * @param null $strForceLanguage
  */
 public function __construct($strType, $strForceLanguage = null)
 {
     if (in_array($strType, $GLOBALS['TL_EMAIL'])) {
         $this->strType = $strType;
     }
     $this->strForceLanguage = $strForceLanguage;
     // Set default parameters
     $this->addParameter('host', Idna::decode(Environment::get('host')));
     $this->addParameter('admin_name', BackendUser::getInstance()->name);
 }
All Usage Examples Of Contao\Idna::decode