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

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway The wrapped gateway.

Public Methods

Method Description
__construct ( Gateway $innerGateway ) Creates a new exception conversion gateway around $innerGateway.
canDeleteLanguage ( integer $id ) : boolean Check whether a language may be deleted.
deleteLanguage ( integer $id ) Deletes the language with $id.
insertLanguage ( eZ\Publish\SPI\Persistence\Content\Language $language ) : integer Inserts the given $language.
loadAllLanguagesData ( ) : string[][] Loads the data for all languages.
loadLanguageData ( integer $id ) : string[][] Loads data for the Language with $id.
loadLanguageDataByLanguageCode ( string $languageCode ) : string[][] Loads data for the Language with Language Code (eg: eng-GB).
updateLanguage ( eZ\Publish\SPI\Persistence\Content\Language $language ) Updates the data of the given $language.

Method Details

__construct() public method

Creates a new exception conversion gateway around $innerGateway.
public __construct ( Gateway $innerGateway )
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway

canDeleteLanguage() public method

Check whether a language may be deleted.
public canDeleteLanguage ( integer $id ) : boolean
$id integer
return boolean

deleteLanguage() public method

Deletes the language with $id.
public deleteLanguage ( integer $id )
$id integer

insertLanguage() public method

Inserts the given $language.
public insertLanguage ( eZ\Publish\SPI\Persistence\Content\Language $language ) : integer
$language eZ\Publish\SPI\Persistence\Content\Language
return integer ID of the new language

loadAllLanguagesData() public method

Loads the data for all languages.
public loadAllLanguagesData ( ) : string[][]
return string[][]

loadLanguageData() public method

Loads data for the Language with $id.
public loadLanguageData ( integer $id ) : string[][]
$id integer
return string[][]

loadLanguageDataByLanguageCode() public method

Loads data for the Language with Language Code (eg: eng-GB).
public loadLanguageDataByLanguageCode ( string $languageCode ) : string[][]
$languageCode string
return string[][]

updateLanguage() public method

Updates the data of the given $language.
public updateLanguage ( eZ\Publish\SPI\Persistence\Content\Language $language )
$language eZ\Publish\SPI\Persistence\Content\Language

Property Details

$innerGateway protected_oe property

The wrapped gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Language $innerGateway
return eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway