Map
Class Map Work with map - create, update, delete entity end etc
Table of Contents
Methods
- addAlbumMapping() : mixed
- addPhotoMapping() : mixed
- addProductMapping() : mixed
- addSectionsMapping() : mixed
- checkMappingMatches() : array<string|int, mixed>
- Matched items between site and VK.
- deleteAllMapping() : mixed
- Remove mapping of ALL types and ALL exports IDs.
- getMappedAlbums() : array<string|int, mixed>
- Get albums, saved in mapping by export ID
- getMappedProducts() : array<string|int, mixed>
- Get products, saved in mapping by export ID
- getMappedSections() : array<string|int, mixed>
- Get sections, saved in mapping by export ID
- removeAlbumMapping() : mixed
- removePhotoMapping() : mixed
- removeProductMapping() : mixed
- removeSectionsMapping() : mixed
- updateAlbumMapping() : mixed
- updatePhotoMapping() : mixed
- updateProductMapping() : mixed
- updateSectionsMapping() : mixed
Methods
addAlbumMapping()
public
static addAlbumMapping(mixed $values, mixed $exportId) : mixed
Parameters
- $values : mixed
- $exportId : mixed
addPhotoMapping()
public
static addPhotoMapping(mixed $values, mixed $exportId) : mixed
Parameters
- $values : mixed
- $exportId : mixed
addProductMapping()
public
static addProductMapping(mixed $values, mixed $exportId) : mixed
Parameters
- $values : mixed
- $exportId : mixed
addSectionsMapping()
public
static addSectionsMapping(mixed $values, mixed $exportId) : mixed
Parameters
- $values : mixed
- $exportId : mixed
checkMappingMatches()
Matched items between site and VK.
public
static checkMappingMatches(mixed $data, mixed $dataFromVk, mixed $exportId, mixed $type, mixed $isAgressive) : array<string|int, mixed>
Set flag edit, if item was be exported and export is agressive. Remove items from mapping, if item was deleted.
Parameters
- $data : mixed
- $dataFromVk : mixed
- $exportId : mixed
- $type : mixed
- $isAgressive : mixed
Tags
Return values
array<string|int, mixed>deleteAllMapping()
Remove mapping of ALL types and ALL exports IDs.
public
static deleteAllMapping() : mixed
Running where platform is deleted.
Tags
getMappedAlbums()
Get albums, saved in mapping by export ID
public
static getMappedAlbums(mixed $exportId) : array<string|int, mixed>
Parameters
- $exportId : mixed
Tags
Return values
array<string|int, mixed>getMappedProducts()
Get products, saved in mapping by export ID
public
static getMappedProducts(mixed $exportId) : array<string|int, mixed>
Parameters
- $exportId : mixed
Tags
Return values
array<string|int, mixed>getMappedSections()
Get sections, saved in mapping by export ID
public
static getMappedSections(mixed $exportId[, null $sectionId = NULL ]) : array<string|int, mixed>
Parameters
- $exportId : mixed
- $sectionId : null = NULL
Tags
Return values
array<string|int, mixed>removeAlbumMapping()
public
static removeAlbumMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
removePhotoMapping()
public
static removePhotoMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
removeProductMapping()
public
static removeProductMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
removeSectionsMapping()
public
static removeSectionsMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
updateAlbumMapping()
public
static updateAlbumMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
updatePhotoMapping()
public
static updatePhotoMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
updateProductMapping()
public
static updateProductMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''
updateSectionsMapping()
public
static updateSectionsMapping(mixed $values, mixed $exportId[, mixed $flagKeys = '' ]) : mixed
Parameters
- $values : mixed
- $exportId : mixed
- $flagKeys : mixed = ''