25 $albumsFromVk = $apiHelper->getALbumsFromVk($this->vkGroupId,
false);
26 $albumsMapped = Vk\Map::getMappedAlbums($this->exportId);
29 $albumsMappedToRemove = array();
30 foreach ($albumsMapped as $albumMapped)
32 $albumsMappedToRemove[] = array(
"VALUE_EXTERNAL" => $albumMapped[
"ALBUM_VK_ID"]);
35 if (!empty($albumsMappedToRemove))
37 Vk\Map::removeAlbumMapping($albumsMappedToRemove, $this->exportId);
42 foreach ($albumsFromVk as &$album)
44 $album = array(
'ALBUM_VK_ID' => $album);
47 foreach ($albumsFromVk as $chunk)
49 $this->executer->executeMarketAlbumDelete(array(
50 "owner_id" => $this->vkGroupId,
52 "count" => count($chunk),
56 if ($timer !== NULL && !$timer->check())
62 $vkExportedData->removeData();