1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Page

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

 __construct ($requestUri=null, $host=null, $privateKey=null)
 getStorage ()
 setCacheProvider (CacheProvider $provider)
 getCacheKey ()
 write ($content, $md5)
 read ()
 delete ()
 deleteAll ()
 getLastModified ()
 exists ()
 getMd5 ()
 getSize ()
 isCacheable ()
 markNonCacheable ()
 setUserPrivateKey ()
 onBeforeEndBufferContent ()
 enableVoting ()
 disableVoting ()
 isVotingEnabled ()
 giveNegativeComponentVote ($context="")

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

static createFromCacheKey ($cacheKey)
static getInstance ()
static getPrivateKey ()
static convertUriToPath ($uri, $host=null, $privateKey=null)
static getStaticHtmlStorage ($cacheKey)

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

 init ($cacheKey)

Статические защищенные данные

static $instance = null

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

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

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

◆ __construct()

__construct ( $requestUri = null,
$host = null,
$privateKey = null )

Creates new cache manager instance.

Аргументы
{string} $requestUri
{string}$host
{string}$privateKey

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

Методы

◆ convertUriToPath()

convertUriToPath ( $uri,
$host = null,
$privateKey = null )
static

Converts request uri into path safe file with .html extension. Returns empty string if fails.

Аргументы
string$uriUri.
string$hostHost name.
string$privateKey
Возвращает
string

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

◆ createFromCacheKey()

createFromCacheKey ( $cacheKey)
static

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

◆ delete()

delete ( )

Deletes the cache

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

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

◆ deleteAll()

deleteAll ( )

Deletes all cache data

Возвращает
bool

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

◆ disableVoting()

disableVoting ( )

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

◆ enableVoting()

enableVoting ( )

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

◆ exists()

exists ( )

Returns true if the cache exists

Возвращает
boolean

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

◆ getCacheKey()

getCacheKey ( )

Returns cache key

Возвращает
string

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

◆ getInstance()

getInstance ( )
static

Returns current instance of the Storage.

Возвращает
Page

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

◆ getLastModified()

getLastModified ( )

Returns the time the cache was last modified

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

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

◆ getMd5()

getMd5 ( )

Returns hash of the cache

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

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

◆ getPrivateKey()

getPrivateKey ( )
static

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

◆ getSize()

getSize ( )

Returns cache size

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

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

◆ getStaticHtmlStorage()

getStaticHtmlStorage ( $cacheKey)
static

Returns the instance of the StaticHtmlStorage

Аргументы
string$cacheKeyunique cache identifier
Возвращает
Data\AbstractStorage|null

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

◆ getStorage()

getStorage ( )

Returns File Storage or Memcached Storage

Возвращает
Data\AbstractStorage|null

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

◆ giveNegativeComponentVote()

giveNegativeComponentVote ( $context = "")

Tries to vote against composite mode

Аргументы
string$context

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

◆ init()

init ( $cacheKey)
protected

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

◆ isCacheable()

isCacheable ( )

Returns true if we can cache current request

Возвращает
bool

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

◆ isVotingEnabled()

isVotingEnabled ( )

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

◆ markNonCacheable()

markNonCacheable ( )

Marks current page as non cacheable.

Возвращает
void

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

◆ onBeforeEndBufferContent()

onBeforeEndBufferContent ( )

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

◆ read()

read ( )

Returns html content from the cache

Возвращает
string

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

◆ setCacheProvider()

setCacheProvider ( CacheProvider $provider)

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

◆ setUserPrivateKey()

setUserPrivateKey ( )

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

◆ write()

write ( $content,
$md5 )

Writes the content to the storage

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

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

Поля

◆ $instance

$instance = null
staticprotected

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/main/lib/composite/page.php