Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Cache
+ Граф наследования:Cache:

Открытые члены

 __construct (Pool $pool, int $ttl, string $cacheId, \Bitrix\Main\Data\Cache $cache, EventManager $eventManager)
 
 isScopeSatisfy (int $scope)
 
 saveDataToCache ()
 
 findById (int $locationId, string $languageId)
 
 findByExternalId (string $externalId, string $sourceCode, string $languageId)
 
 save (Location $location)
 
 delete (Location $location)
 
- Открытые члены унаследованные от Cache
 __construct (int $ttl, string $cacheId, Data\Cache $cache, EventManager $eventManager)
 

Защищенные члены

 loadDataFromCache ()
 
 createIdIndex (int $locationId, string $languageId)
 
 createExternalIdIndex (string $externalId, string $sourceCode, string $languageId)
 

Защищенные данные

 $pool
 
 $cache
 
 $idMap = []
 
 $externalIdMap = []
 
 $isItemChanged = false
 
- Защищенные данные унаследованные от Cache
 $cache
 

Подробное описание

См. определение в файле cache.php строка 18

Конструктор(ы)

◆ __construct()

__construct ( Pool $pool,
int $ttl,
string $cacheId,
\Bitrix\Main\Data\Cache $cache,
EventManager $eventManager )

См. определение в файле cache.php строка 32

Методы

◆ createExternalIdIndex()

createExternalIdIndex ( string $externalId,
string $sourceCode,
string $languageId )
protected

См. определение в файле cache.php строка 84

◆ createIdIndex()

createIdIndex ( int $locationId,
string $languageId )
protected
Аргументы
int$locationId
string$languageId
Возвращает
string

См. определение в файле cache.php строка 79

◆ delete()

delete ( Location $location)
Аргументы
Location$location
Возвращает
Result

Замещает IDelete.

См. определение в файле cache.php строка 146

◆ findByExternalId()

findByExternalId ( string $externalId,
string $sourceCode,
string $languageId )

@inheritDoc

Замещает IFindByExternalId.

См. определение в файле cache.php строка 104

◆ findById()

findById ( int $locationId,
string $languageId )

@inheritDoc

Замещает IFindById.

См. определение в файле cache.php строка 90

◆ isScopeSatisfy()

isScopeSatisfy ( int $scope)

@inheritDoc

Замещает IScope.

См. определение в файле cache.php строка 41

◆ loadDataFromCache()

loadDataFromCache ( )
protected

Переопределяет метод предка Cache.

См. определение в файле cache.php строка 46

◆ save()

save ( Location $location)

@inheritDoc

Замещает ISave.

См. определение в файле cache.php строка 119

◆ saveDataToCache()

saveDataToCache ( )

Переопределяет метод предка Cache.

См. определение в файле cache.php строка 60

Данные класса

◆ $cache

$cache
protected

См. определение в файле cache.php строка 24

◆ $externalIdMap

$externalIdMap = []
protected

См. определение в файле cache.php строка 28

◆ $idMap

$idMap = []
protected

См. определение в файле cache.php строка 26

◆ $isItemChanged

$isItemChanged = false
protected

См. определение в файле cache.php строка 30

◆ $pool

$pool
protected

См. определение в файле cache.php строка 22