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

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway The wrapped gateway.

Méthodes publiques

Méthode 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 méthode

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

canDeleteLanguage() public méthode

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

deleteLanguage() public méthode

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

insertLanguage() public méthode

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

loadAllLanguagesData() public méthode

Loads the data for all languages.
public loadAllLanguagesData ( ) : string[][]
Résultat string[][]

loadLanguageData() public méthode

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

loadLanguageDataByLanguageCode() public méthode

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

updateLanguage() public méthode

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
Résultat eZ\Publish\Core\Persistence\Legacy\Content\Language\Gateway