Class CMS3_PackageManager

Description

PackageManager provides the logic for installation and removal of packages.

This plugin doesn't provide any user interface only API interface for package operations.

Located in /lib/PackageManager/CMS3_PackageManager.php (line 34)

CMS3_System_Plugin
   |
   --CMS3_PackageManager
Method Summary
 string GetPluginID ()
 void InstallPackage ( $PluginID)
 void ListPackages ()
 void ListPlugins ()
 bool RemovePlugin (string $PluginID)
 void UploadPackage ( $PackagePath,  $PackageName)
 bool VerifyPackage (string $PluginID)
 string VerifyPlugin (string $PluginID)
Variables

Inherited Variables

Inherited from CMS3_System_Plugin

CMS3_System_Plugin::$Owner
Methods
GetPluginID (line 266)

Gets the pluginID of the plugin.

  • access: public
string GetPluginID ()
InstallPackage (line 41)

Verifies and installs a package

  • access: public
void InstallPackage ( $PluginID)
  • $PluginID
ListPackages (line 243)

List all the packages that are available for installation in local package repository

  • access: public
void ListPackages ()
ListPlugins (line 228)

List all the installed plugins that can be deleted or verified

  • access: public
void ListPlugins ()
RemovePlugin (line 174)

Remove an installed plugin

Note: if this one returns false, you can't be sure that haft of the package is removed or system perhaps broken.

  • return: True if package removed correctly
  • access: public
bool RemovePlugin (string $PluginID)
  • string $PluginID: PluginID PluginID of the package to remove
UploadPackage (line 213)

Upload a third party package to local repository

  • access: public
void UploadPackage ( $PackagePath,  $PackageName)
  • $PackagePath
  • $PackageName
VerifyPackage (line 102)

Verifies the integrity of a (.c3p) package, not installed plugin

  • return: True if signature is correct.
  • access: public
bool VerifyPackage (string $PluginID)
  • string $PluginID: PluginID PluginID of the package to be verify
VerifyPlugin (line 152)

Verify the integrity of an installed plugin

  • return: Returns a sha1sum result, or false if master signature was invalid.
  • access: public
string VerifyPlugin (string $PluginID)
  • string $PluginID: PluginID Id of the plugin you wish to verify

Inherited Methods

Inherited From CMS3_System_Plugin

 CMS3_System_Plugin::Register()

Documentation generated on Mon, 30 Apr 2007 01:59:05 +0200 by phpDocumentor 1.3.1