eZPublishCommunityProject  2013.5
eZ\Publish\SPI\Persistence\Content\Language\Handler Interface Reference

Language Handler interface. More...

+ Inheritance diagram for eZ\Publish\SPI\Persistence\Content\Language\Handler:

Public Member Functions

 create (CreateStruct $struct)
 Create a new language. More...
 
 delete ($id)
 Delete a language. More...
 
 load ($id)
 Get language by id. More...
 
 loadAll ()
 Get all languages. More...
 
 loadByLanguageCode ($languageCode)
 Get language by Language Code (eg: eng-GB) More...
 
 update (Language $struct)
 Update language. More...
 

Detailed Description

Language Handler interface.

Member Function Documentation

eZ\Publish\SPI\Persistence\Content\Language\Handler::create ( CreateStruct  $struct)

Create a new language.

Parameters
\eZ\Publish\SPI\Persistence\Content\Language\CreateStruct$struct
Returns

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler, and eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler.

eZ\Publish\SPI\Persistence\Content\Language\Handler::delete (   $id)
eZ\Publish\SPI\Persistence\Content\Language\Handler::load (   $id)

Get language by id.

Parameters
mixed$id
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf language could not be found by $id
Returns

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler, eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler, eZ\Publish\Core\Persistence\InMemory\LanguageHandler, and eZ\Publish\Core\Persistence\Cache\ContentLanguageHandler.

eZ\Publish\SPI\Persistence\Content\Language\Handler::loadAll ( )
eZ\Publish\SPI\Persistence\Content\Language\Handler::loadByLanguageCode (   $languageCode)

Get language by Language Code (eg: eng-GB)

Parameters
string$languageCode
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf language could not be found by $languageCode
Returns

Implemented in eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler, eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler, eZ\Publish\Core\Persistence\InMemory\LanguageHandler, and eZ\Publish\Core\Persistence\Cache\ContentLanguageHandler.

eZ\Publish\SPI\Persistence\Content\Language\Handler::update ( Language  $struct)

The documentation for this interface was generated from the following file: