PHP 클래스 Tools\Utility\Language

파일 보기 프로젝트 열기: dereuromark/cakephp-tools 1 사용 예제들

공개 메소드들

메소드 설명
findFirstMatch ( array $accepted, array $available = [] ) : string | null Compares two parsed arrays of language tags and find the matches
findMatches ( array $accepted, array $available = [] ) : array Compares two parsed arrays of language tags and find the matches
parseLanguageList ( string | null $languageList = null ) : array

보호된 메소드들

메소드 설명
_matchLanguage ( string $a, string $b ) : float Compare two language tags and distinguish the degree of matching

메소드 상세

_matchLanguage() 보호된 정적인 메소드

Compare two language tags and distinguish the degree of matching
protected static _matchLanguage ( string $a, string $b ) : float
$a string
$b string
리턴 float

findFirstMatch() 공개 정적인 메소드

Compares two parsed arrays of language tags and find the matches
public static findFirstMatch ( array $accepted, array $available = [] ) : string | null
$accepted array
$available array
리턴 string | null

findMatches() 공개 정적인 메소드

Compares two parsed arrays of language tags and find the matches
public static findMatches ( array $accepted, array $available = [] ) : array
$accepted array
$available array
리턴 array

parseLanguageList() 공개 정적인 메소드

public static parseLanguageList ( string | null $languageList = null ) : array
$languageList string | null
리턴 array