Cosmo (PHP) — API reference

Bundle extends ResourceBundle
in package

Table of Contents

Constants

BRKITR  : string = 'ICUDATA-brkitr'
CURRENCY  : string = 'ICUDATA-curr'
LANGUAGE  : string = 'ICUDATA-lang'
LOCALE  : string = 'ICUDATA'

Methods

get()  : mixed
hasBundle()  : bool
Returns whether a resource bundle exists for the given locale.

Constants

BRKITR

public string BRKITR = 'ICUDATA-brkitr'

CURRENCY

public string CURRENCY = 'ICUDATA-curr'

LANGUAGE

public string LANGUAGE = 'ICUDATA-lang'

LOCALE

public string LOCALE = 'ICUDATA'

Methods

get()

public get(mixed $index[, mixed $fallback = null ]) : mixed
Parameters
$index : mixed
$fallback : mixed = null
Tags
inheritDoc
throws
Exception
Attributes
#[Override]
#[ReturnTypeWillChange]

hasBundle()

Returns whether a resource bundle exists for the given locale.

public static hasBundle(string $locale) : bool
Parameters
$locale : string

BCP 47 locale identifier.

Return values
bool
On this page

Search results