Class

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

class ExceptionConversion extends 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.

__construct(Gateway $innerGateway)

Creates a new exception conversion gateway around $innerGateway.

Details

at line 46
public int insertLanguage(Language $language)

Inserts the given $language.

Parameters

Language $language

Return Value

int ID of the new language

at line 62
public updateLanguage(Language $language)

Updates the data of the given $language.

Parameters

Language $language

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

Loads data for the Language with $id.

Parameters

int $id

Return Value

string[][]

at line 98
public string[][] loadLanguageDataByLanguageCode(string $languageCode)

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

Parameters

string $languageCode

Return Value

string[][]

at line 114
public string[][] loadAllLanguagesData()

Loads the data for all languages.

Return Value

string[][]

at line 130
public deleteLanguage(int $id)

Deletes the language with $id.

Parameters

int $id

at line 148
public bool canDeleteLanguage(int $id)

Check whether a language may be deleted.

Parameters

int $id

Return Value

bool

at line 34
public __construct(Gateway $innerGateway)

Creates a new exception conversion gateway around $innerGateway.

Parameters

Gateway $innerGateway