[ Index ]
 

Code source de SugarCRM 5.0.0beta1

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/ModuleInstall/PackageManager/ -> PackageManager.php (sommaire)

(pas de description)

Poids: 804 lignes (34 kb)
Inclus ou requis: 6 fois
Référencé: 1 fois
Nécessite: 13 fichiers
 include/entryPoint.php
 include/dir_inc.php
 modules/Relationships/Relationship.php
 ModuleInstall/PackageManager/PackageManagerComm.php
 include/nusoap/nusoap.php
 include/utils/zip_utils.php
 include/database/DBManagerFactory.php
 ModuleInstall/PackageManager/PackageManagerDisplay.php
 include/utils.php
 modules/Administration/Administration.php
 ModuleInstall/ModuleInstaller.php
 include/utils/file_utils.php
 modules/Administration/UpgradeHistory.php

Définit 1 class

PackageManager:: (33 méthodes):
  PackageManager()
  initializeComm()
  getPromotion()
  getModuleLoaderCategoryPackages()
  getCategoryPackages()
  getCategories()
  getPackages()
  getReleases()
  download()
  authenticate()
  setCredentials()
  getCredentials()
  getTermsAndConditions()
  getDocumentation()
  checkForUpdates()
  toNameValueList()
  toNameValueLists()
  fromNameValueList()
  buildInstalledReleases()
  buildPackageXML()
  extractFile()
  extractManifest()
  validate_manifest()
  getInstallType()
  performSetup()
  unlinkTempFiles()
  performInstall()
  getUITextForType()
  getImageForType()
  getPackagesInStaging()
  getLicenseFromFile()
  getInstalled()
  getinstalledPackages()


Classe: PackageManager  - X-Ref

PackageManager()   X-Ref
Constructor: In this method we will initialize the nusoap client to point to the hearbeat server


initializeComm()   X-Ref
Pas de description

getPromotion()   X-Ref
Obtain a promotion from SugarDepot

return: string   the string from the promotion

getModuleLoaderCategoryPackages($category_id = '')   X-Ref
Obtain a list of category/packages/releases for use within the module loader


getCategoryPackages($category_id = '', $filter = array()   X-Ref
Obtain the list of category_packages from SugarDepot

return: category_packages

getCategories($category_id, $filter = array()   X-Ref
Get a list of categories from the SugarDepot

param: category_id   the category id of parent to obtain
param: filter        an array of filters to pass to limit the query
return: array        an array of categories for display on the client

getPackages($category_id, $filter = array()   X-Ref
Pas de description

getReleases($category_id, $package_id, $filter = array()   X-Ref
Pas de description

download($category_id, $package_id, $release_id, $save_dir = '')   X-Ref
Retrieve the package as specified by the $id from the heartbeat server

param: category_id   the category_id to which the release belongs
param: package_id    the package_id to which the release belongs
param: release_id    the release_id to download   
return: filename - the path to which the zip file was saved

authenticate($username, $password, $systemname='', $terms_checked = true)   X-Ref
Given the Mambo username, password, and download key attempt to authenticate, if
successful then store these credentials

param: username      Mambo username
param: password      Mambo password
param: systemname   the user's download key
return: true if successful, false otherwise   

setCredentials($username, $password, $systemname)   X-Ref
Pas de description

getCredentials()   X-Ref
Pas de description

getTermsAndConditions()   X-Ref
Pas de description

getDocumentation($package_id, $release_id)   X-Ref
Retrieve documentation for the given release or package

param: package_id    the specified package to retrieve documentation
param: release_id    the specified release to retrieve documentation
return: documents

checkForUpdates()   X-Ref
Grab the list of installed modules and send that list to the depot.
The depot will then send back a list of modules that need to be updated


toNameValueList($array)   X-Ref
Pas de description

toNameValueLists($arrays)   X-Ref
Pas de description

fromNameValueList($nvl)   X-Ref
Pas de description

buildInstalledReleases($types = array('module')   X-Ref
Pas de description

buildPackageXML($package, $releases = array()   X-Ref
Pas de description

extractFile( $zip_file, $file_in_zip, $base_tmp_upgrade_dir)   X-Ref
Pas de description

extractManifest( $zip_file,$base_tmp_upgrade_dir )   X-Ref
Pas de description

validate_manifest( $manifest )   X-Ref
Pas de description

getInstallType( $type_string )   X-Ref
Pas de description

performSetup($tempFile, $view = 'module', $display_messages = true)   X-Ref
Pas de description

unlinkTempFiles()   X-Ref
Pas de description

performInstall($file)   X-Ref
Pas de description

getUITextForType( $type )   X-Ref
Pas de description

getImageForType( $type )   X-Ref
Pas de description

getPackagesInStaging($view = 'module')   X-Ref
Pas de description

getLicenseFromFile($file)   X-Ref
Pas de description

getInstalled($types = array('module')   X-Ref
Run the query to obtain the list of installed types as specified by the type param

param: type    an array of types you would like to search for
return: an array of installed upgrade_history objects

getinstalledPackages($types = array('module')   X-Ref
Pas de description



Généré le : Tue Sep 11 10:48:47 2007 par Balluche grâce à PHPXref 0.7