category
|
System
|
package
|
Shared
|
Methods
LanguageProvider constructor.
__construct(\CI_DB_query_builder $db)
Arguments
$db
\CI_DB_query_builder
Database connection.
Returns the active language codes.
getActiveCodes() : \KeyValueCollection
Returns the language codes for languages enabled for administration
getAdminCodes() : \KeyValueCollection
Returns the language IDs for languages enabled for administrative purposes.
getAdminIds() : \IdCollection
|
|
Throws |
- \InvalidArgumentException
If ID is not valid.
- \UnexpectedValueException
If no ID has been found.
|
Response
\IdCollection
Returns the charset from the a specific language, selected by the language code.
getCharsetByCode(\LanguageCode $code) : string
Throws |
- \UnexpectedValueException
If no directory has been found.
|
Arguments
Response
string
Returns the charset from the a specific language, selected by the language ID.
getCharsetById(\IdType $id) : string
Throws |
- \UnexpectedValueException
If no charset has been found.
|
Arguments
Response
string
Returns the language code from a specific language, selected by the language ID.
getCodeById(\IdType $id) : \LanguageCode
Throws |
- \InvalidArgumentException
If code is not valid.
- \UnexpectedValueException
If no code has been found.
|
Arguments
Response
\LanguageCode
Returns the language codes.
getCodes() : \KeyValueCollection
|
|
Throws |
- \InvalidArgumentException
If code is not valid.
- \UnexpectedValueException
If no code has been found.
|
Response
\KeyValueCollection
Returns the default language code.
getDefaultLanguageCode() : string
|
|
Throws |
- \InvalidArgumentException
If no default code exists.
|
Response
string
Returns the default language ID.
getDefaultLanguageId() : integer
|
|
Throws |
- \InvalidArgumentException
If no default code exists.
|
Response
integer
Returns the directory from the a specific language, selected by the language code.
getDirectoryByCode(\LanguageCode $code) : string
Throws |
- \UnexpectedValueException
If no directory has been found.
|
Arguments
Response
string
Returns the directory from the a specific language, selected by the language ID.
getDirectoryById(\IdType $id) : string
Throws |
- \InvalidArgumentException
If code is not valid.
- \UnexpectedValueException
If no directory has been found.
|
Arguments
Response
string
Returns the icon for a specific language by a given language code.
getIconFilenameByCode(\LanguageCode $code) : string
Throws |
- \UnexpectedValueException
If no icon has been found.
|
Arguments
Response
string
Returns the ID from the a specific language, selected by the language code.
getIdByCode(\LanguageCode $code) : integer
Throws |
- \UnexpectedValueException
If no ID has been found.
|
Arguments
Response
integer
Returns the language id of the provided directory name.
getIdByDirectory(\StringType $directory) : integer
Throws |
- \UnexpectedValueException
If no id was found by provided directory.
|
Arguments
Response
integer
Returns the language IDs.
getIds() : \IdCollection
|
|
Throws |
- \InvalidArgumentException
If ID is not valid.
- \UnexpectedValueException
If no ID has been found.
|
Response
\IdCollection
Properties
Database connection.
db : \CI_DB_query_builder
Type(s)
\CI_DB_query_builder