eZPublishCommunityProject  2013.6
eZ\Publish\Core\Persistence\InMemory\LanguageHandler Class Reference
+ Inheritance diagram for eZ\Publish\Core\Persistence\InMemory\LanguageHandler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\InMemory\LanguageHandler:

Public Member Functions

 __construct (Handler $handler, Backend $backend)
 Setups current handler instance with reference to Handler object that created it. More...
 
 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...
 
- Public Member Functions inherited from eZ\Publish\SPI\Persistence\Content\Language\Handler
 create (CreateStruct $struct)
 Create a new language. More...
 

Protected Attributes

 $backend
 
 $handler
 

Detailed Description

See Also
eZ

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::__construct ( Handler  $handler,
Backend  $backend 
)

Setups current handler instance with reference to Handler object that created it.

Parameters
Handler$handler
Backend$backendThe storage engine backend

Member Function Documentation

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::create ( CreateStruct  $struct)

Create a new language.

Parameters
\eZ\Publish\SPI\Persistence\Content\Language\CreateStruct$struct
Returns
eZ\Publish\Core\Persistence\InMemory\LanguageHandler::delete (   $id)

Delete a language.

Exceptions
\LogicExceptionIf language could not be deleted
Parameters
mixed$id

Implements eZ\Publish\SPI\Persistence\Content\Language\Handler.

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::load (   $id)

Get language by id.

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

Implements eZ\Publish\SPI\Persistence\Content\Language\Handler.

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::loadAll ( )

Get all languages.

Returns
[]

Implements eZ\Publish\SPI\Persistence\Content\Language\Handler.

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::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

Implements eZ\Publish\SPI\Persistence\Content\Language\Handler.

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::update ( Language  $struct)

Update language.

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

Implements eZ\Publish\SPI\Persistence\Content\Language\Handler.

Member Data Documentation

eZ\Publish\Core\Persistence\InMemory\LanguageHandler::$backend
protected
eZ\Publish\Core\Persistence\InMemory\LanguageHandler::$handler
protected

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