Открытые члены | |
__construct ($exportId) | |
uploadPhotos ($data, $vkGroupId, $uploadType, Timer $timer=NULL) | |
getUserGroupsSelector ($selectedValue=null, $name=null, $id=null) | |
getALbumsFromVk ($vkGroupId, $flip=true) | |
getProductsFromVk ($vkGroupId) | |
getVkCategories ($count=Vk::MAX_VK_CATEGORIES, $offset=0) | |
Открытые статические члены | |
static | extractItemsFromArray ($data=array(), $keys=array()) |
static | addResultToData ($data=array(), $result=array(), $referenceKey) |
static | changeArrayMainKey ($data=array(), $mainKey, $keyRename='') |
static | prepareProductsDataToVk ($data) |
См. определение в файле apihelper.php строка 22
__construct | ( | $exportId | ) |
ApiHelper constructor.
$exportId | - int, ID of export profile |
См. определение в файле apihelper.php строка 34
|
static |
Merge to arrays by reference key
array | $data | |
array | $result | |
$referenceKey | - main key in both arrays |
См. определение в файле apihelper.php строка 91
|
static |
Reformat array - change main (top level) key.
array | $data | |
$mainKey | ||
string | $keyRename | - if isset, new main key will be rename |
См. определение в файле apihelper.php строка 118
|
static |
Extract specified elements from array. Need to decrease of array size to post
array | $data | - source array |
array | $keys | - array of keys, thst needed in new array |
См. определение в файле apihelper.php строка 56
getALbumsFromVk | ( | $vkGroupId, | |
$flip = true ) |
Get list of VK albums from VK API
$vkGroupId | ||
bool | $flip |
См. определение в файле apihelper.php строка 466
getProductsFromVk | ( | $vkGroupId | ) |
Get list of VK products from VK API
$vkGroupId |
См. определение в файле apihelper.php строка 492
getUserGroupsSelector | ( | $selectedValue = null, | |
$name = null, | |||
$id = null ) |
См. определение в файле apihelper.php строка 390
getVkCategories | ( | $count = Vk::MAX_VK_CATEGORIES, | |
$offset = 0 ) |
Get list of VK product categories from VK API
int | $count | |
int | $offset |
См. определение в файле apihelper.php строка 571
|
static |
Check params for save products data. Check photos, description, vk-category
$data |
См. определение в файле apihelper.php строка 527
uploadPhotos | ( | $data, | |
$vkGroupId, | |||
$uploadType, | |||
Timer | $timer = NULL ) |
Check photo size, get upload server, upload photo and save them
$data | ||
$vkGroupId | ||
$uploadType | - type of photo. For other types used other params and methods | |
null | $timer | - timer for control time of upload |
SystemException |
См. определение в файле apihelper.php строка 149