AcceptLanguageHeader
Table of Contents
Methods
-
__construct()
: mixed
-
accepts()
: int
-
getLanguages()
: array<string|int, mixed>
-
getRejects()
: array<string|int, mixed>
-
parse()
: AcceptLanguageHeader
-
rejects()
: bool
__construct()
public
__construct(array<string|int, mixed> $langs, array<string|int, mixed> $rejects) : mixed
Parameters
-
$langs
: array<string|int, mixed>
-
-
$rejects
: array<string|int, mixed>
-
accepts()
public
accepts(string $locale) : int
Parameters
-
$locale
: string
-
getLanguages()
public
getLanguages() : array<string|int, mixed>
Return values
array<string|int, mixed>
getRejects()
public
getRejects() : array<string|int, mixed>
Return values
array<string|int, mixed>
parse()
public
static parse(HttpHeader $header) : AcceptLanguageHeader
Parameters
-
$header
: HttpHeader
-
rejects()
public
rejects(string $locale) : bool
Parameters
-
$locale
: string
-