Example #1
0
 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;
 }
Example #2
0
 /**
  * Takes care of buffer and file handlers and calls ShopgatePlugin::createPagesCsv().
  *
  * @param int $limit
  * @param int $offset
  * @param array $uids
  * @param string $responseType
  */
 public final function startGetItems($limit = null, $offset = null, array $uids = array(), $responseType = 'xml')
 {
     switch ($responseType) {
         default:
         case 'xml':
             $this->buffer->setFile($this->config->getItemsXmlPath());
             break;
         case 'json':
             $this->buffer->setFile($this->config->getItemsJsonPath());
             break;
     }
     $this->createItems($limit, $offset, $uids);
     $this->buffer->finish();
 }