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

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

CLear language cache.
public clearCache ( )

getAll() public méthode

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

getById() public méthode

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

getByLocale() public méthode

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

remove() public méthode

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

store() public méthode

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
Résultat eZ\Publish\SPI\Persistence\Content\Language[]

$mapByLocale protected_oe property

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