public function handleGetFlies()
 {
     set_time_limit(0);
     extract($_POST, EXTR_SKIP);
     $products = HelperFileFormatting::objectsToArray(ProductModel::getProductsData('products'));
     switch ($programOptions) {
         case 1:
             $zipClient = FILES_PATH . 'files.zip';
             $productCsv = CSV_PATH . 'gesioProducts.csv';
             $imgesCsv = CSV_PATH . 'gesioAllImgProducts.csv';
             $this->createCsvProducts($productCsv, $products, $csvDelimiter);
             $this->createCsvImages($products, $imgesCsv, ',');
             $this->downloadsImages($products, IMAGES_PATH);
             $this->generateBatches($imgesCsv, $numItems, BATCHES_PATH);
             HelperFileFormatting::zipEntireFolder(FILES_PATH, $zipClient);
             HelperFileFormatting::sendClientFile($zipClient, 'zip');
             HelperFileFormatting::deleteFillesFromDirectoryTree(FILES_PATH);
             break;
         case 2:
             //for other things we do not know!
             break;
     }
 }