Methods

All methods in the Solar_Locale class.

Public

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

fetch()

Returns the translated locale string for a class and key.

getCode()

Returns the current locale code.

getCountryCode()

Returns ISO 3166 country code for current locale code.

getLanguageCode()

Returns RFC 1766 (XHTML) language code for current locale code.

locale()

Looks up class-specific locale strings based on a key.

setCode()

Sets the locale code and clears out previous translations.

Protected

_buildConfig()

Builds and returns the default config for a class, including all configs inherited from its parents.

_exception()

Convenience method for returning exceptions with localized text.

_load()

Loads the translation array for a given class.

_postConfig()

A hook that activates after _buildConfig() in the constructor.

_postConstruct()

Post-construction tasks to complete object construction.

_preConfig()

A hook that activates before _buildConfig() in the constructor.

_trans()

Returns an existing class/key/num string from the translation array.

Private

None.



Local