LanguageFactory

Language package factory

since

1.3.0

Methods

getDefaultLanguage

Get the application's default language

getDefaultLanguage() : string
since

1.3.0

Response

string

getLanguage

Returns a language object.

getLanguage(string $lang = null, string $path = null, boolean $debug = false) : \Joomla\Language\Language
since

1.3.0

Arguments

$lang

stringThe language to use.

$path

stringThe base path to the language folder. Unused in 1.x, Language uses JPATH_ROOT constant

$debug

booleanThe debug mode.

Response

\Joomla\Language\Language

getLanguageDirectory

Get the path to the directory containing the application's language folder

getLanguageDirectory() : string
since

1.3.0

Response

string

getStemmer

Method to get a stemmer, creating it if necessary.

getStemmer(string $adapter) : \Joomla\Language\Stemmer
since

1.3.0

throws

\RuntimeExceptionon invalid stemmer

Arguments

$adapter

stringThe type of stemmer to load.

Response

\Joomla\Language\Stemmer

setDefaultLanguage

Set the application's default language

setDefaultLanguage(string $language) : $this
since

1.3.0

Arguments

$language

stringLanguage code for the application's default language

Response

$this

Properties

defaultLanguage

Application's default language

since

1.3.0

Type(s)

string

loadedClasses

Container with a list of loaded classes grouped by object type

static deprecated
since

1.3.0

deprecated

2.0 Singleton object storage will no longer be supported

Type(s)

array