ResourceBundle
class ResourceBundle implements IteratorAggregate, Countable (View source)
Methods
No description
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Create a resource bundle
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get data from the bundle
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get number of elements in the bundle
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get supported locales
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get bundle's last error code.
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get bundle's last error message.
No description
Details
__construct(string $locale, string $bundle, bool $fallback = true)
No description
static ResourceBundle|null
create(string $locale, string $bundle, bool $fallback = true)
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Create a resource bundle
mixed
get(string|int $index, bool $fallback = true)
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get data from the bundle
int
count()
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get number of elements in the bundle
static array|false
getLocales(string $bundle)
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get supported locales
int
getErrorCode()
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get bundle's last error code.
string
getErrorMessage()
(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get bundle's last error message.
Traversable
getIterator()
No description