PHP Класс eZ\Publish\Core\Persistence\Legacy\Content\Language\Cache

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$mapById eZ\Publish\SPI\Persistence\Content\Language[] Maps IDs to Language objects.
$mapByLocale eZ\Publish\SPI\Persistence\Content\Language[] Maps locales to Language objects.

Открытые методы

Метод Описание
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.

Описание методов

clearCache() публичный Метод

CLear language cache.
public clearCache ( )

getAll() публичный Метод

Returns all languages in the cache with locale as key.
public getAll ( ) : eZ\Publish\SPI\Persistence\Content\Language[]
Результат eZ\Publish\SPI\Persistence\Content\Language[]

getById() публичный Метод

Returns the Language with $id from the cache.
public getById ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Language
$id mixed
Результат eZ\Publish\SPI\Persistence\Content\Language

getByLocale() публичный Метод

Returns the Language with $languageCode from the cache.
public getByLocale ( string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Language
$languageCode string
Результат eZ\Publish\SPI\Persistence\Content\Language

remove() публичный Метод

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

store() публичный Метод

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

Описание свойств

$mapById защищенное свойство

Maps IDs to Language objects.
protected Language[],eZ\Publish\SPI\Persistence\Content $mapById
Результат eZ\Publish\SPI\Persistence\Content\Language[]

$mapByLocale защищенное свойство

Maps locales to Language objects.
protected Language[],eZ\Publish\SPI\Persistence\Content $mapByLocale
Результат eZ\Publish\SPI\Persistence\Content\Language[]