eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler Class Reference

Language Handler. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler:

Public Member Functions

 __construct (BaseLanguageHandler $innerHandler, Cache $languageCache)
 Creates a caching handler around $innerHandler. More...
 
 clearCache ()
 Clear internal cache. 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 $language)
 Update language. More...
 

Protected Member Functions

 initializeCache ()
 Initializes the cache if necessary. More...
 

Protected Attributes

 $innerHandler
 
 $isCacheInitialized = false
 
 $languageCache
 

Detailed Description

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::__construct ( BaseLanguageHandler  $innerHandler,
Cache  $languageCache 
)

Creates a caching handler around $innerHandler.

Parameters
\eZ\Publish\SPI\Persistence\Content\Language\Handler$innerHandler

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::clearCache ( )

Clear internal cache.

Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::create ( CreateStruct  $struct)

Create a new language.

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

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

eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::delete (   $id)

Delete a language.

Parameters
mixed$id

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

eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::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\Legacy\Content\Language\CachingHandler::loadAll ( )

Get all languages.

Returns
[]

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

eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::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\Legacy\Content\Language\CachingHandler::update ( Language  $language)

Update language.

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

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

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::$innerHandler
protected
eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::$isCacheInitialized = false
protected
eZ\Publish\Core\Persistence\Legacy\Content\Language\CachingHandler::$languageCache
protected

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