LanguageHelper

Implements \LanguageHelperInterface, \CrossCuttingObjectInterface

Class LanguageHelper

category

System

package

Extensions

subpackage

Helpers

Methods

LanguageHelper constructor.

__construct(\CI_DB_query_builder $db) 

Arguments

$db

\CI_DB_query_builder

Gets the language codes of all active languages in a KeyValueCollection

getActiveLanguageCodes() : \KeyValueCollection

Gets the corresponding language code for the given ID

getLanguageCodeById(\IdType $id) : \LanguageCode
override

Arguments

$id

\IdType

Response

\LanguageCode

Gets all language codes in a KeyValueCollection with language ID as key

getLanguageCodes(\BoolType|null $onlyActiveLanguages = null) : \KeyValueCollection
override

Arguments

$onlyActiveLanguages

\BoolType|null

Response

\KeyValueCollection

getLanguageIdByCode

getLanguageIdByCode(\LanguageCode $code) : \IdType

Arguments

Response

\IdType

Properties

Database connector.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder