Class

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

class Cache

Language Cache.

Methods

store(Language $language)

Stores the $language into the cache.

remove(mixed $id)

Removes the language with $id from the cache.

Language getById(mixed $id)

Returns the Language with $id from the cache.

Language getByLocale(string $languageCode)

Returns the Language with $languageCode from the cache.

Language[] getAll()

Returns all languages in the cache with locale as key.

clearCache()

CLear language cache.

Details

at line 38
public store(Language $language)

Stores the $language into the cache.

Parameters

Language $language

at line 49
public remove(mixed $id)

Removes the language with $id from the cache.

Parameters

mixed $id

at line 69
public Language getById(mixed $id)

Returns the Language with $id from the cache.

Parameters

mixed $id

Return Value

Language

Exceptions

NotFoundException if the Language could not be found

at line 88
public Language getByLocale(string $languageCode)

Returns the Language with $languageCode from the cache.

Parameters

string $languageCode

Return Value

Language

Exceptions

NotFoundException if the Language could not be found

at line 102
public Language[] getAll()

Returns all languages in the cache with locale as key.

Return Value

Language[]

at line 110
public clearCache()

CLear language cache.