PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$mapById eZ\Publish\SPI\Persistence\Content\Language[] Maps IDs to Language objects.
$mapByLocale eZ\Publish\SPI\Persistence\Content\Language[] Maps locales to Language objects.

Public Methods

Method Description
clearCache ( ) CLear language cache.
getAll ( ) : eZ\Publish\SPI\Persistence\Content\Language[] Returns all languages in the cache with locale as key.
getById ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Language Returns the Language with $id from the cache.
getByLocale ( string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Language Returns the Language with $languageCode from the cache.
remove ( mixed $id ) Removes the language with $id from the cache.
store ( eZ\Publish\SPI\Persistence\Content\Language $language ) Stores the $language into the cache.

Method Details

clearCache() public method

CLear language cache.
public clearCache ( )

getAll() public method

Returns all languages in the cache with locale as key.
public getAll ( ) : eZ\Publish\SPI\Persistence\Content\Language[]
return eZ\Publish\SPI\Persistence\Content\Language[]

getById() public method

Returns the Language with $id from the cache.
public getById ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Language
$id mixed
return eZ\Publish\SPI\Persistence\Content\Language

getByLocale() public method

Returns the Language with $languageCode from the cache.
public getByLocale ( string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Language
$languageCode string
return eZ\Publish\SPI\Persistence\Content\Language

remove() public method

Removes the language with $id from the cache.
public remove ( mixed $id )
$id mixed

store() public method

Stores the $language into the cache.
public store ( eZ\Publish\SPI\Persistence\Content\Language $language )
$language eZ\Publish\SPI\Persistence\Content\Language

Property Details

$mapById protected_oe property

Maps IDs to Language objects.
protected Language[],eZ\Publish\SPI\Persistence\Content $mapById
return eZ\Publish\SPI\Persistence\Content\Language[]

$mapByLocale protected_oe property

Maps locales to Language objects.
protected Language[],eZ\Publish\SPI\Persistence\Content $mapByLocale
return eZ\Publish\SPI\Persistence\Content\Language[]