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

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

 __construct ($cacheKey, array $configuration, array $htmlCacheOptions)
 
 write ($content, $md5)
 
 read ()
 
 exists ()
 
 delete ()
 
 deleteAll ()
 
 getMd5 ()
 
 shouldCountQuota ()
 
 getLastModified ()
 
 getSize ()
 
 getCacheFile ()
 

Открытые статические члены

static deleteRecursive ($relativePath="", $validTime=0)
 

Дополнительные унаследованные члены

- Защищенные данные унаследованные от AbstractStorage
 $cacheKey = null
 
 $configuration = array()
 
 $htmlCacheOptions = array()
 

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

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

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

◆ __construct()

__construct ( $cacheKey,
array $configuration,
array $htmlCacheOptions )
Аргументы
string$cacheKeyunique cache identifier
array$configurationstorage configuration
array$htmlCacheOptionshtml cache options

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

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

Методы

◆ delete()

delete ( )

Deletes the cache Returns the number of deleted bytes

Возвращает
int|false

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

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

◆ deleteAll()

deleteAll ( )

Deletes all cache data in the storage

Возвращает
bool

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

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

◆ deleteRecursive()

static deleteRecursive ( $relativePath = "",
$validTime = 0 )
static

Deletes all above html_pages

Аргументы
string$relativePath[optional]
int$validTime[optional] unix timestamp
Возвращает
float

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

◆ exists()

exists ( )

Returns true if the cache exists

Возвращает
bool

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

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

◆ getCacheFile()

getCacheFile ( )

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

◆ getLastModified()

getLastModified ( )

Returns the time the cache was last modified

Возвращает
int|false

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

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

◆ getMd5()

getMd5 ( )

Returns md5 hash of the cache

Возвращает
string|false

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

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

◆ getSize()

getSize ( )

Returns cache size

Возвращает
int|false

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

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

◆ read()

read ( )

Returns the cache contents

Возвращает
string|false

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

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

◆ shouldCountQuota()

shouldCountQuota ( )

Should we count a quota limit

Возвращает
bool

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

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

◆ write()

write ( $content,
$md5 )

Writes the content to the storage

Аргументы
string$contentthe string that is to be written
string$md5the content hash
Возвращает
bool

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

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