Kajona\Packagemanager\System\PackagemanagerManager

Central class to access the package-management subsystem.

Synopsis

class PackagemanagerManager {
  • // constants
  • const STR_TYPE_MODULE = "MODULE";
  • const STR_TYPE_TEMPLATE = "TEMPLATE";
  • const STR_TYPE_ELEMENT = "ELEMENT";
}

Constants

Name Value
STR_TYPE_MODULE "MODULE"
STR_TYPE_TEMPLATE "TEMPLATE"
STR_TYPE_ELEMENT "ELEMENT"

Members

public

  • $arrLatestVersion

Methods

private

public

  • extractPackage() — Extracts the zip-archive into a temp-folder.
  • getArrRequiredBy() — Does an inverse-search for the package-requirements. This means that not the packages required to install the passed package are returned, but the packages depending on the passed package.
  • getAvailablePackages() — Queries the local filesystem in order to find all packages available.
  • getContentproviders() — Returns all content-providers as configured in the /config/packagemanager.php file.
  • getPackage() — Searches the current local packages for a single, given package.
  • getPackageManagerForPath() — Loads the matching packagemanager for a given path.
  • removePackage()
  • scanForUpdates() — Scans all packages available and tries to load the latest version available.
  • sortPackages() — Sorts the array of packages ordered by the installation state, the type and the title
  • updateAvailable() — Validates a packages' latest version and compares it to the version currently installed.
  • updatePackage() — Triggers the update of the passed package.
  • validatePackage() — Validates, if a given path represents a valid package