|
static | getRequestUri () |
static | getHttpHost ($host=null) |
static | getDomains () |
static | getSpaPostfixByUri ($requestUri) |
static | getSpaPostfix () |
static | getRealPrivateKey ($privateKey=null, $postfix=null) |
static | getUserPrivateKey () |
static | setUserPrivateKey ($prefix, $expire=0) |
static | deleteUserPrivateKey () |
static | isAjaxRequest () |
static | isAppCacheRequest () |
static | isCompositeRequest () |
static | isBitrixFolder () |
static | isSpaMode () |
static | gzdecode ($data) |
static | getAjaxRandom () |
static | removeRandParam () |
static | convertUriToPath ($uri, $host=null, $privateKey=null) |
static | removeIgnoredParams ($queryString) |
static | isOn () |
static | isCompositeEnabled () |
static | getEnabledFilePath () |
static | getConfigFilePath () |
static | getSizeFilePath () |
static | setOptions ($arOptions=array()) |
static | makeDirPath ($path) |
static | escapePHPString ($str) |
static | getOptions () |
static | resetOptions () |
static | compileOptions (&$arOptions) |
static | getCacheFileSize () |
static | updateCacheFileSize ($bytes=0.0) |
static | readStatistic () |
static | writeStatistic ($hits=0, $writings=0, $quota=0, $posts=0, $files=0.0) |
static | checkQuota ($requiredFreeSpace=0) |
static | updateQuota ($bytes) |
static | __callStatic ($name, $arguments) |
static | getDomainName ($url) |
static | setEnabled ($status, $setDefaults=true) |
static | cleanAll () |
См. определение в файле helper.php строка 12
◆ __callStatic()
__callStatic |
( |
| $name, |
|
|
| $arguments ) |
|
static |
◆ checkQuota()
checkQuota |
( |
| $requiredFreeSpace = 0 | ) |
|
|
static |
Checks disk quota. Returns true if quota is not exceeded.
- Аргументы
-
- Возвращает
- bool
См. определение в файле helper.php строка 795
◆ cleanAll()
◆ compileOptions()
compileOptions |
( |
& | $arOptions | ) |
|
|
static |
◆ convertUriToPath()
convertUriToPath |
( |
| $uri, |
|
|
| $host = null, |
|
|
| $privateKey = null ) |
|
static |
Converts URI to a cache key (file path) / => /index.html /index.php => /index.html /aa/bb/ => /aa/bb/index.html /aa/bb/index.php => /aa/bb/index.html /?a=b&b=c => /index=b&b=c.html
- Аргументы
-
string | $uri | |
string | $host | |
string | $privateKey | |
- Возвращает
- string
См. определение в файле helper.php строка 287
◆ deleteUserPrivateKey()
◆ escapePHPString()
◆ getAjaxRandom()
Returns bxrand value
- Возвращает
- string|false
См. определение в файле helper.php строка 223
◆ getCacheFileSize()
Returns the number of bytes of file cache. If file .size doesn't exist returns false
- Возвращает
- bool|float
См. определение в файле helper.php строка 675
◆ getConfigFilePath()
◆ getDomainName()
- Аргументы
-
- Возвращает
- mixed|string
См. определение в файле helper.php строка 839
◆ getDomains()
Returns valid domains from the composite options
- Возвращает
- array
См. определение в файле helper.php строка 50
◆ getEnabledFilePath()
◆ getHttpHost()
getHttpHost |
( |
| $host = null | ) |
|
|
static |
Returns HTTP hostname
- Аргументы
-
- Возвращает
- string
См. определение в файле helper.php строка 41
◆ getOptions()
Returns an array with cache options.
- Возвращает
- array
См. определение в файле helper.php строка 504
◆ getRealPrivateKey()
getRealPrivateKey |
( |
| $privateKey = null, |
|
|
| $postfix = null ) |
|
static |
◆ getRequestUri()
Returns Request URI
- Возвращает
- string
См. определение в файле helper.php строка 22
◆ getSizeFilePath()
◆ getSpaPostfix()
◆ getSpaPostfixByUri()
getSpaPostfixByUri |
( |
| $requestUri | ) |
|
|
static |
◆ getUserPrivateKey()
◆ gzdecode()
Decodes a gzip compressed string
- Аргументы
-
- Возвращает
- string
См. определение в файле helper.php строка 202
◆ isAjaxRequest()
Returns true if the current request was initiated by Ajax.
- Возвращает
- bool
См. определение в файле helper.php строка 140
◆ isAppCacheRequest()
◆ isBitrixFolder()
Returns true if the current request URI has bitrix folder
- Возвращает
- bool
См. определение в файле helper.php строка 171
◆ isCompositeEnabled()
Return true if composite mode is enabled
- Возвращает
- bool
См. определение в файле helper.php строка 365
◆ isCompositeRequest()
◆ isOn()
Return true if html cache is on
- Возвращает
- bool
См. определение в файле helper.php строка 356
◆ isSpaMode()
◆ makeDirPath()
◆ readStatistic()
Returns array with cache statistics data. Returns an empty array in case of disabled html cache.
- Возвращает
- array
См. определение в файле helper.php строка 721
◆ removeIgnoredParams()
removeIgnoredParams |
( |
| $queryString | ) |
|
|
static |
◆ removeRandParam()
Removes bxrand parameter from the current request and returns its value
- Возвращает
- string|false
См. определение в файле helper.php строка 238
◆ resetOptions()
◆ setEnabled()
setEnabled |
( |
| $status, |
|
|
| $setDefaults = true ) |
|
static |
◆ setOptions()
setOptions |
( |
| $arOptions = array() | ) |
|
|
static |
Saves cache options
- Аргументы
-
- Возвращает
- void
См. определение в файле helper.php строка 392
◆ setUserPrivateKey()
setUserPrivateKey |
( |
| $prefix, |
|
|
| $expire = 0 ) |
|
static |
◆ updateCacheFileSize()
updateCacheFileSize |
( |
| $bytes = 0.0 | ) |
|
|
static |
◆ updateQuota()
Updates disk quota and cache statistic
- Аргументы
-
float | $bytes | positive or negative value |
См. определение в файле helper.php строка 811
◆ writeStatistic()
writeStatistic |
( |
| $hits = 0, |
|
|
| $writings = 0, |
|
|
| $quota = 0, |
|
|
| $posts = 0, |
|
|
| $files = 0.0 ) |
|
static |
Updates cache usage statistics. Each of parameters is added to appropriate existing stats.
- Аргументы
-
integer | false | $hits | Number of cache hits. |
integer | false | $writings | Number of cache writing. |
integer | false | $quota | Quota change in bytes. |
integer | false | $posts | Number of POST requests. |
float | false | $files | File size in bytes. |
- Возвращает
- void
См. определение в файле helper.php строка 752
Объявления и описания членов класса находятся в файле: