Bitrix API

VkExportedData

Class VkExportedData Short-time cqche of exported vk-albums or products.

Need for accelerate, because this data requested all step and waste more time.

Table of Contents

Constants

CACHE_DIR  = '/sale/vkexport/'
CACHE_ID_PREFIX  = "vkexporteddata_cache"
CACHE_TTL  = 3600

Methods

__construct()  : mixed
VkExportedData constructor.
addData()  : void
Add data to saveed array
getData()  : array<string|int, mixed>|bool|mixed|null
Get data from cache or load them from VK
removeData()  : void
Clean cache

Constants

CACHE_ID_PREFIX

public mixed CACHE_ID_PREFIX = "vkexporteddata_cache"

Methods

__construct()

VkExportedData constructor.

public __construct(mixed $exportId, mixed $type) : mixed
Parameters
$exportId : mixed
  • int, ID of export profile
$type : mixed
  • string of export type

addData()

Add data to saveed array

public addData(mixed $newData) : void
Parameters
$newData : mixed
  • array to special format

getData()

Get data from cache or load them from VK

public getData() : array<string|int, mixed>|bool|mixed|null
Return values
array<string|int, mixed>|bool|mixed|null
  • data

        
On this page

Search results