ModuleInstall/PackageManager/PackageController.php
\PackageController
Package:
Properties
Methods

PackageController(
)
:
voidConstructor: this class is called from the the ajax call and handles invoking the correct functionality on the server.

checkForUpdates(
)
:
arrayCheck the SugarDepot for updates for the given type as passed in via POST
Returns
| Type | Description |
|---|---|
| array | return an array of releases for each given installed object if an update is found |

download(
)
:
boolDownload the given release
Returns
| Type | Description |
|---|---|
| bool | true is successful in downloading, false otherwise |

getCategories(
)
:
arrayRetrieve a list of categories that are subcategories to the selected category
Returns
| Type | Description |
|---|---|
| array | - a list of categories/nodes which are underneath this node |

getPackages(
)
:
\packagesRetrieve a list of packages which belong to the corresponding category
Returns
| Type | Description |
|---|---|
| \packages | xml string consisting of the packages and releases which belong to the category |

getPackagesInStaging(
)
:
voidbuild the list of modules that are currently in the staging area waiting to be installed

getReleases(
)
:
voidObtain a list of releases from the server. This function is currently used for generating the patches/langpacks for upgrade wizard as well as during installation

performInstall(
)
:
voidbuild the list of modules that are currently in the staging area waiting to be installed