eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache Class Reference

Language Cache. More...

Public Member Functions

 clearCache ()
 CLear language cache. More...
 
 getAll ()
 Returns all languages in the cache with locale as key. More...
 
 getById ($id)
 Returns the Language with $id from the cache. More...
 
 getByLocale ($languageCode)
 Returns the Language with $languageCode from the cache. More...
 
 remove ($id)
 Removes the language with $id from the cache. More...
 
 store (Language $language)
 Stores the $language into the cache. More...
 

Protected Attributes

 $mapById = array()
 
 $mapByLocale = array()
 

Detailed Description

Member Function Documentation

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

CLear language cache.

Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::getAll ( )

Returns all languages in the cache with locale as key.

Returns
[]
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::getById (   $id)

Returns the Language with $id from the cache.

Parameters
mixed$id
Returns
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionif the Language could not be found
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::getByLocale (   $languageCode)

Returns the Language with $languageCode from the cache.

Parameters
string$languageCode
Returns
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionif the Language could not be found
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::remove (   $id)

Removes the language with $id from the cache.

Parameters
mixed$id
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::store ( Language  $language)

Stores the $language into the cache.

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

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::$mapById = array()
protected
eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache::$mapByLocale = array()
protected

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