Index Documentation

AcceptLanguageHeader
in package

Table of Contents

Methods

__construct()  : mixed
accepts()  : int
getLanguages()  : array<string|int, mixed>
getRejects()  : array<string|int, mixed>
parse()  : AcceptLanguageHeader
rejects()  : bool

Methods

__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
Return values
int

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>

rejects()

public rejects(string $locale) : bool
Parameters
$locale : string
Return values
bool

        
On this page

Search results