Class jBundle

Description

a bundle contains all readed properties in a given language, and for all charsets

Located in /core/jBundle.class.php (line 23)


	
			
Variable Summary
mixed $fic
mixed $locale
mixed $_strings
Method Summary
jBundle __construct (jSelector $file, string $locale)
string get (string $key, [string $charset = null])
void _loadLocales (string $locale, string $charset)
void _loadResources ( $fichier,  $charset)
Variables
mixed $fic (line 24)
  • access: public
mixed $locale (line 25)
  • access: public
mixed $_loadedCharset = array () (line 27)
  • access: protected
mixed $_strings = array() (line 28)
  • access: protected
Methods
Constructor __construct (line 35)

constructor

  • access: public
jBundle __construct (jSelector $file, string $locale)
  • jSelector $file: selector of a properties file
  • string $locale: the code lang
get (line 46)

get the translation

  • return: the localized string
  • access: public
string get (string $key, [string $charset = null])
  • string $key: the locale key
  • string $charset
_loadLocales (line 67)

Loads the resources for a given locale/charset.

  • access: protected
void _loadLocales (string $locale, string $charset)
  • string $locale: the locale
  • string $charset: the charset
_loadResources (line 109)

loads a given resource from its path.

  • access: protected
void _loadResources ( $fichier,  $charset)
  • $fichier
  • $charset

Documentation generated on Wed, 04 Jan 2017 22:52:20 +0100 by phpDocumentor 1.4.3