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::createCategoriesCsv(). * * @throws ShopgateLibraryException */ public final function startGetCategoriesCsv() { $this->buffer->setFile($this->config->getCategoriesCsvPath()); $this->createCategoriesCsv(); $this->buffer->finish(); }