Kajona\Packagemanager\System\PackagemanagerContentproviderRemoteBase

A content-provider used to upload archives from remote repositories.

Provides both, a search and a download-part.

This implementation allows usage for various remote repositories. The access details are specified
using the constructor.

Remote repositories are expected to provide packages using the packageserver module.

Synopsis

class PackagemanagerContentproviderRemoteBase implements PackagemanagerContentproviderInterface {
  • // constants
  • const PROTOCOL_VERSION = 5;
}

Hierarchy

Constants

Name Value
PROTOCOL_VERSION 5

Members

private

  • $CLASS_NAME
  • $INT_BROWSE_HOST_PORT
  • $STR_BROWSE_HOST
  • $STR_BROWSE_URL
  • $STR_DOWNLOAD_URL
  • $STR_MODULE_NAME
  • $STR_PROTOCOL_HEADER
  • $STR_PROVIDER_NAME

Methods

private

public

  • __construct()
  • getDisplayTitle() — Returns the name of the current provider, in most cases used to select the provider.
  • initPackageUpdate() — Inits the update of the passed package, of given.
  • processPackageUpload() — The real "download" or "upload" should be handled right here.
  • renderPackageList() — Renders the list of available packages or any other kind of gui-representation of the packageprovider.
  • searchPackage() — Searches for a list of packages, the title may be a comma-separated list of package-names If found, the packages' metadata is returned.