ModuleInstall/PackageManager/PackageController.php
\PackageController
Package:
Properties
Methods
PackageController(
)
:
void
Constructor: this class is called from the the ajax call and handles invoking the correct functionality on the server.
checkForUpdates(
)
:
array
Check 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(
)
:
bool
Download the given release
Returns
Type | Description |
---|---|
bool | true is successful in downloading, false otherwise |
getCategories(
)
:
array
Retrieve 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(
)
:
\packages
Retrieve 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(
)
:
void
build the list of modules that are currently in the staging area waiting to be installed
getReleases(
)
:
void
Obtain 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(
)
:
void
build the list of modules that are currently in the staging area waiting to be installed