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; }
/** * Loads configuration and initializes the ShopgateLogger class. * * @param ShopgateConfigInterface $config */ public function __construct(ShopgateConfigInterface $config = null) { if (empty($config)) { $this->config = new ShopgateConfig(); } else { $this->config = $config; } // set up logger ShopgateLogger::getInstance($this->config->getAccessLogPath(), $this->config->getRequestLogPath(), $this->config->getErrorLogPath(), $this->config->getDebugLogPath()); }