Example #1
0
 /**
  * Represents the "get_categories_csv" action.
  *
  * @throws ShopgateLibraryException
  * @see http://wiki.shopgate.com/Shopgate_Plugin_API_get_categories_csv/
  */
 protected function getCategoriesCsv()
 {
     // generate / update categories csv file
     $this->plugin->startGetCategoriesCsv();
     if (empty($this->response)) {
         $this->response = new ShopgatePluginApiResponseTextCsv($this->trace_id);
     }
     $this->responseData = $this->config->getCategoriesCsvPath();
 }
Example #2
0
 /**
  * Represents the "get_categories_csv" action.
  *
  * @throws ShopgateLibraryException
  * @see http://wiki.shopgate.com/Shopgate_Plugin_API_get_categories_csv
  */
 protected function getCategoriesCsv()
 {
     if (isset($this->params['limit']) && isset($this->params['offset'])) {
         $this->plugin->setExportLimit((int) $this->params['limit']);
         $this->plugin->setExportOffset((int) $this->params['offset']);
         $this->plugin->setSplittedExport(true);
     }
     // generate / update categories csv file
     $this->plugin->startGetCategoriesCsv();
     if (empty($this->response)) {
         $this->response = new ShopgatePluginApiResponseTextCsvExport($this->trace_id);
     }
     $this->responseData = $this->config->getCategoriesCsvPath();
 }