Bitrix API

AppCache

Table of Contents

Constants

DEBUG_HOLDER  = "//__APP_CACHE_DEBUG_HOLDER__"
MANIFEST_CHECK_FILE  = "/bitrix/tools/check_appcache.php"

Methods

addAdditionalParam()  : mixed
addFallbackPage()  : mixed
addFile()  : mixed
checkObsoleteManifest()  : mixed
generate()  : mixed
getAdditionalParams()  : mixed
getCachePath()  : string
getCurrentManifestID()  : mixed
getDebug()  : bool
getExcludeImagePatterns()  : array<string|int, mixed>
Sets the array of path patterns to exclude unused images from the manifest file
getFallbackPages()  : mixed
getFilesFromContent()  : array<string|int, mixed>
Parses the passed content to find css, js and images. Returns the array of files.
getInstance()  : mixed
getIsModified()  : mixed
getIsSided()  : mixed
getManifestCheckFile()  : string
Gets file path for getting of manifest content
getManifestContent()  : string
Returns content of the manifest
getNetworkFiles()  : mixed
getPageURI()  : mixed
getReceivedCacheParams()  : array<string|int, mixed>
Gets received cache parameters
getReceivedManifest()  : mixed
isEnabled()  : bool
onBeforeEndBufferContent()  : array<string|int, mixed>|mixed
OnBeforeEndBufferContent handler
onEndBufferContent()  : mixed
readManifestCache()  : mixed
setEnabled()  : mixed
Creates or updates the manifest file for the page with usage its content.
setExcludeImagePatterns()  : mixed
Returns the array of path patters
setFiles()  : mixed
setIsSided()  : mixed
setManifestCheckFile()  : mixed
Sets custom file for getting of manifest content self::MANIFEST_CHECK_FILE uses by default
setNetworkFiles()  : mixed
setPageURI()  : mixed
setReceivedCacheParams()  : mixed
Sets received cache params
setReceivedManifest()  : mixed
Sets received path to manifest

Constants

DEBUG_HOLDER

public mixed DEBUG_HOLDER = "//__APP_CACHE_DEBUG_HOLDER__"

MANIFEST_CHECK_FILE

public mixed MANIFEST_CHECK_FILE = "/bitrix/tools/check_appcache.php"

Methods

addAdditionalParam()

public addAdditionalParam(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

addFallbackPage()

public addFallbackPage(mixed $onlinePage, mixed $offlinePage) : mixed
Parameters
$onlinePage : mixed
$offlinePage : mixed

addFile()

public addFile(mixed $filePath) : mixed
Parameters
$filePath : mixed

checkObsoleteManifest()

public static checkObsoleteManifest() : mixed

generate()

public generate(mixed &$content) : mixed
Parameters
$content : mixed

getAdditionalParams()

public getAdditionalParams() : mixed

getCachePath()

public static getCachePath(mixed $manifestId) : string
Parameters
$manifestId : mixed
Return values
string

getCurrentManifestID()

public getCurrentManifestID() : mixed

getDebug()

public static getDebug() : bool
Return values
bool

getExcludeImagePatterns()

Sets the array of path patterns to exclude unused images from the manifest file

public getExcludeImagePatterns() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFallbackPages()

public getFallbackPages() : mixed

getFilesFromContent()

Parses the passed content to find css, js and images. Returns the array of files.

public getFilesFromContent(mixed $content) : array<string|int, mixed>
Parameters
$content : mixed
Return values
array<string|int, mixed>

getInstance()

public static getInstance() : mixed

getIsModified()

public getIsModified() : mixed

getIsSided()

public getIsSided() : mixed

getManifestCheckFile()

Gets file path for getting of manifest content

public static getManifestCheckFile() : string
Return values
string

getManifestContent()

Returns content of the manifest

public getManifestContent() : string
Return values
string

getNetworkFiles()

public getNetworkFiles() : mixed

getPageURI()

public getPageURI() : mixed

getReceivedCacheParams()

Gets received cache parameters

public getReceivedCacheParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

getReceivedManifest()

public getReceivedManifest() : mixed

isEnabled()

public isEnabled() : bool
Return values
bool

onBeforeEndBufferContent()

OnBeforeEndBufferContent handler

public static onBeforeEndBufferContent() : array<string|int, mixed>|mixed
Return values
array<string|int, mixed>|mixed

onEndBufferContent()

public static onEndBufferContent(mixed &$content) : mixed
Parameters
$content : mixed

readManifestCache()

public static readManifestCache(mixed $manifestId) : mixed
Parameters
$manifestId : mixed

setEnabled()

Creates or updates the manifest file for the page with usage its content.

public static setEnabled([bool $isEnabled = true ]) : mixed
Parameters
$isEnabled : bool = true

setExcludeImagePatterns()

Returns the array of path patters

public setExcludeImagePatterns(array<string|int, mixed> $excludeImagePatterns) : mixed
Parameters
$excludeImagePatterns : array<string|int, mixed>

setFiles()

public setFiles(mixed $arFiles) : mixed
Parameters
$arFiles : mixed

setIsSided()

public setIsSided(mixed $isSided) : mixed
Parameters
$isSided : mixed

setManifestCheckFile()

Sets custom file for getting of manifest content self::MANIFEST_CHECK_FILE uses by default

public setManifestCheckFile(string $customManifestCheckFile) : mixed
Parameters
$customManifestCheckFile : string

setNetworkFiles()

public setNetworkFiles(mixed $network) : mixed
Parameters
$network : mixed

setPageURI()

public setPageURI([mixed $pageURI = "" ]) : mixed
Parameters
$pageURI : mixed = ""

setReceivedCacheParams()

Sets received cache params

public setReceivedCacheParams(mixed $receivedCacheParams) : mixed
Parameters
$receivedCacheParams : mixed

setReceivedManifest()

Sets received path to manifest

public setReceivedManifest(mixed $receivedManifest) : mixed
Parameters
$receivedManifest : mixed

        
On this page

Search results