Свойство | Тип | Описание | |
---|---|---|---|
$innerHandler | Inner Language handler. | ||
$isCacheInitialized | boolean | If the cache has already been initialized. | |
$languageCache | Language cache. |
Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\SPI\Persistence\Content\Language\Handler $innerHandler, |
Creates a caching handler around $innerHandler. | |
clearCache ( ) | Clear internal cache. | |
create ( eZ\Publish\SPI\Persistence\Content\Language\CreateStruct $struct ) : eZ\Publish\SPI\Persistence\Content\Language | Create a new language. | |
delete ( mixed $id ) | Delete a language. | |
load ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Language | Get language by id. | |
loadAll ( ) : eZ\Publish\SPI\Persistence\Content\Language[] | Get all languages. | |
loadByLanguageCode ( string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Language | Get language by Language Code (eg: eng-GB). | |
update ( eZ\Publish\SPI\Persistence\Content\Language $language ) | Update language. |
Метод | Описание | |
---|---|---|
initializeCache ( ) | Initializes the cache if necessary. |
public __construct ( eZ\Publish\SPI\Persistence\Content\Language\Handler $innerHandler, |
||
$innerHandler | eZ\Publish\SPI\Persistence\Content\Language\Handler | |
$languageCache |
public create ( eZ\Publish\SPI\Persistence\Content\Language\CreateStruct $struct ) : eZ\Publish\SPI\Persistence\Content\Language | ||
$struct | eZ\Publish\SPI\Persistence\Content\Language\CreateStruct | |
Результат | eZ\Publish\SPI\Persistence\Content\Language |
protected initializeCache ( ) |
public loadAll ( ) : eZ\Publish\SPI\Persistence\Content\Language[] | ||
Результат | eZ\Publish\SPI\Persistence\Content\Language[] |
public loadByLanguageCode ( string $languageCode ) : eZ\Publish\SPI\Persistence\Content\Language | ||
$languageCode | string | |
Результат | eZ\Publish\SPI\Persistence\Content\Language |
public update ( eZ\Publish\SPI\Persistence\Content\Language $language ) | ||
$language | eZ\Publish\SPI\Persistence\Content\Language |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\Language $innerHandler | ||
Результат |
protected bool $isCacheInitialized | ||
Результат | boolean |