/** * Takes care of buffer and file handlers and calls ShopgatePlugin::createReviews(). * * @param int $limit * @param int $offset * @param array $uids * @param string $responseType */ public final function startGetReviews($limit = null, $offset = null, array $uids = array(), $responseType = 'xml') { switch ($responseType) { default: case 'xml': $this->buffer->setFile($this->config->getReviewsXmlPath()); break; case 'json': $this->buffer->setFile($this->config->getReviewsJsonPath()); break; } $this->createReviews($limit, $offset, $uids); $this->buffer->finish(); }
/** * Takes care of buffer and file handlers and calls ShopgatePlugin::createPagesCsv(). * * @throws ShopgateLibraryException */ public final function startGetPagesCsv() { $this->buffer->setFile($this->config->getReviewsCsvPath()); $this->createPagesCsv(); $this->buffer->finish(); }