PHP 클래스 Inpsyde\MultilingualPress\Module\Redirect\LanguageNegotiation\AcceptLanguageParser

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Common\AcceptHeader\AcceptHeaderParser
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
parse ( string $header ) : array Parses the given Accept header and returns the according data in array form.

비공개 메소드들

메소드 설명
get_values ( string $header ) : string[] Returns the array with the individual values of the given Accept header.
normalize_priority ( string $priority ) : float Returns a normalized float value between 0 and 1 for the given numeric string.
remove_comment ( string $header ) : string Returns the given Accept header without comment.
split_value ( string $value ) : array Returns the array with the language and priority of the given value, and an empty array for an invalid language.

메소드 상세

parse() 공개 메소드

Parses the given Accept header and returns the according data in array form.
부터: 3.0.0
public parse ( string $header ) : array
$header string Accept header string.
리턴 array Parsed Accept header in array form.