PHP 클래스 Contao\Idna

The class encodes and decodes internationalized domain names according to RFC 3490. It also contains two helper methods to encode e-mails and URLs. Usage: echo Idna::encode('bürger.de'); echo Idna::encodeEmail('mit@bürger.de'); echo Idna::encodeUrl('http://www.bürger.de');
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
decode ( string $strDomain ) : string Decode an internationalized domain name
decodeEmail ( string $strEmail ) : string Decode the domain in an e-mail address
encode ( string $strDomain ) : string Encode an internationalized domain name
encodeEmail ( string $strEmail ) : string Encode the domain in an e-mail address
encodeUrl ( string $strUrl ) : string Encode the domain in an URL

메소드 상세

decode() 공개 정적인 메소드

Decode an internationalized domain name
public static decode ( string $strDomain ) : string
$strDomain string The domain name
리턴 string The decoded domain name

decodeEmail() 공개 정적인 메소드

Decode the domain in an e-mail address
public static decodeEmail ( string $strEmail ) : string
$strEmail string The e-mail address
리턴 string The decoded e-mail address

encode() 공개 정적인 메소드

Encode an internationalized domain name
public static encode ( string $strDomain ) : string
$strDomain string The domain name
리턴 string The encoded domain name

encodeEmail() 공개 정적인 메소드

Encode the domain in an e-mail address
public static encodeEmail ( string $strEmail ) : string
$strEmail string The e-mail address
리턴 string The encoded e-mail address

encodeUrl() 공개 정적인 메소드

Encode the domain in an URL
public static encodeUrl ( string $strUrl ) : string
$strUrl string The URL
리턴 string The encoded URL