private function getPermissions() { $permissions = array(); $files = array(SHOPGATE_BASE_DIR . '/config/myconfig.php', $this->config->getExportFolderPath(), $this->config->getLogFolderPath(), $this->config->getCacheFolderPath(), $this->config->getItemsCsvPath(), $this->config->getCategoriesCsvPath(), $this->config->getReviewsCsvPath(), $this->config->getItemsXmlPath(), $this->config->getCategoriesXmlPath(), $this->config->getAccessLogPath(), $this->config->getRequestLogPath(), $this->config->getErrorLogPath(), $this->config->getDebugLogPath(), $this->config->getRedirectKeywordCachePath(), $this->config->getRedirectSkipKeywordCachePath()); foreach ($files as $file) { $permissions[] = $this->_getFileMeta($file, 1); } return $permissions; }
/** * Takes care of buffer and file handlers and calls ShopgatePlugin::createCategories(). * * @param int $limit * @param int $offset * @param array $uids * @param string $responseType */ public final function startGetCategories($limit = null, $offset = null, array $uids = array(), $responseType = 'xml') { switch ($responseType) { default: case 'xml': $this->buffer->setFile($this->config->getCategoriesXmlPath()); break; case 'json': $this->buffer->setFile($this->config->getCategoriesJsonPath()); break; } $this->createCategories($limit, $offset, $uids); $this->buffer->finish(); }