Class

eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway

abstract class Gateway

Language Handler.

Methods

int insertLanguage(Language $language)

Inserts the given $language.

updateLanguage(Language $language)

Updates the data of the given $language.

string[][] loadLanguageData(int $id)

Loads data for the Language with $id.

string[][] loadLanguageDataByLanguageCode(string $languageCode)

Loads data for the Language with Language Code (eg: eng-GB).

string[][] loadAllLanguagesData()

Loads the data for all languages.

deleteLanguage(int $id)

Deletes the language with $id.

bool canDeleteLanguage(int $id)

Check whether a language may be deleted.

Details

at line 25
abstract public int insertLanguage(Language $language)

Inserts the given $language.

Parameters

Language $language

Return Value

int ID of the new language

at line 32
abstract public updateLanguage(Language $language)

Updates the data of the given $language.

Parameters

Language $language

at line 41
abstract public string[][] loadLanguageData(int $id)

Loads data for the Language with $id.

Parameters

int $id

Return Value

string[][]

at line 50
abstract public string[][] loadLanguageDataByLanguageCode(string $languageCode)

Loads data for the Language with Language Code (eg: eng-GB).

Parameters

string $languageCode

Return Value

string[][]

at line 57
abstract public string[][] loadAllLanguagesData()

Loads the data for all languages.

Return Value

string[][]

at line 64
abstract public deleteLanguage(int $id)

Deletes the language with $id.

Parameters

int $id

at line 73
abstract public bool canDeleteLanguage(int $id)

Check whether a language may be deleted.

Parameters

int $id

Return Value

bool