php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ResourceBundle Class Reference
Inheritance diagram for ResourceBundle:
IteratorAggregate Countable Traversable

Public Member Functions

 __construct (?string $locale, ?string $bundle, bool $fallback=true)
 
 get (string|int $index, bool $fallback=true)
 
 count ()
 
 getErrorCode ()
 
 getErrorMessage ()
 
 getIterator ()
 

Static Public Member Functions

static create (?string $locale, ?string $bundle, bool $fallback=true)
 
static getLocales (string $bundle)
 

Detailed Description

@generate-class-entries @not-serializable

Definition at line 6 of file resourcebundle.stub.php.

Constructor & Destructor Documentation

◆ __construct()

ResourceBundle::__construct ( ?string $locale,
?string $bundle,
bool $fallback = true )

Definition at line 8 of file resourcebundle.stub.php.

Member Function Documentation

◆ count()

ResourceBundle::count ( )

@tentative-return-type @alias resourcebundle_count

Implements Countable.

Definition at line 23 of file resourcebundle.stub.php.

◆ create()

static ResourceBundle::create ( ?string $locale,
?string $bundle,
bool $fallback = true )
static

@tentative-return-type @alias resourcebundle_create

Definition at line 14 of file resourcebundle.stub.php.

◆ get()

ResourceBundle::get ( string|int $index,
bool $fallback = true )

@tentative-return-type

Definition at line 17 of file resourcebundle.stub.php.

◆ getErrorCode()

ResourceBundle::getErrorCode ( )

@tentative-return-type @alias resourcebundle_get_error_code

Definition at line 36 of file resourcebundle.stub.php.

◆ getErrorMessage()

ResourceBundle::getErrorMessage ( )

@tentative-return-type @alias resourcebundle_get_error_message

Definition at line 42 of file resourcebundle.stub.php.

◆ getIterator()

ResourceBundle::getIterator ( )

@tentative-return-type

Implements IteratorAggregate.

Definition at line 44 of file resourcebundle.stub.php.

◆ getLocales()

static ResourceBundle::getLocales ( string $bundle)
static
Returns
array<int, string>|false @tentative-return-type @alias resourcebundle_locales

Definition at line 30 of file resourcebundle.stub.php.


The documentation for this class was generated from the following file: