ModuleInstall/PackageManager/PackageManagerComm.php
Constants
\PackageManagerComm
Methods
addDownload(
\category_id $category_id, \package_id $package_id, \release_id $release_id
)
:
\the
Add a requested download to the queue
Name | Type | Description |
---|---|---|
$category_id | \category_id | the category_id to fetch |
$package_id | \package_id | the package id which the release belongs to |
$release_id | \release_id | the release we want to download |
Type | Description |
---|---|
\the | filename to download |
checkForUpdates(
\objects_to_check $objects_to_check
)
:
array
Send the list of installed objects, could be patches, or modules, .. to the depot and allow the depot to send back a list of corresponding updates
Name | Type | Description |
---|---|---|
$objects_to_check | \objects_to_check | an array of name_value_lists which contain the appropriate values which will allow the depot to check for updates |
Type | Description |
---|---|
array | of name_value_lists of corresponding updates |
download(
\category_id $category_id, \package_id $package_id, \release_id $release_id
)
:
\download
Download a given release
Name | Type | Description |
---|---|---|
$category_id | \category_id | the category_id to fetch |
$package_id | \package_id | the package id which the release belongs to |
$release_id | \release_id | the release we want to download |
Type | Description |
---|---|
\download |
- See
- \download
downloadedDocumentation(
\document_id $document_id
)
:
void
Log that the user has clicked on a document
Name | Type | Description |
---|---|---|
$document_id | \document_id | the document the user has clicked on |
getCategories(
\category_id $category_id, \filter $filter
=
array()
)
:
\categories_and_packages
Return a list of child categories to the parent specified in category_id
Name | Type | Description |
---|---|---|
$category_id | \category_id | the parent category_id |
$filter | \filter | a filter which will limit theh number of results returned |
Type | Description |
---|---|
\categories_and_packages |
- See
- \categories_and_packages
getCategoryPackages(
\category_id $category_id, \filter $filter
=
array()
)
:
\categories_and_packages
A generic function which given a category_id some filter will return an object which contains categories and packages
Name | Type | Description |
---|---|---|
$category_id | \category_id | the category_id to fetch |
$filter | \filter | a filter which will limit theh number of results returned |
Type | Description |
---|---|
\categories_and_packages |
- See
- \categories_and_packages
getDocumentation(
\package_id $package_id, \release_id $release_id
)
:
\documents
Retrieve documentation for the given release or package
Name | Type | Description |
---|---|---|
$package_id | \package_id | the specified package to retrieve documentation |
$release_id | \release_id | the specified release to retrieve documentation |
Type | Description |
---|---|
\documents |
getPackages(
\category_id $category_id, \filter $filter
=
array()
)
:
\packages
Return a list of packages which belong to the parent category_id
Name | Type | Description |
---|---|---|
$category_id | \category_id | the category_id to fetch |
$filter | \filter | a filter which will limit theh number of results returned |
Type | Description |
---|---|
\packages |
- See
- \packages
getReleases(
\category_id $category_id, \package_id $package_id, $filter
=
array()
)
:
\packages
Return a list of releases belong to a package
Name | Type | Description |
---|---|---|
$category_id | \category_id | the category_id to fetch |
$package_id | \package_id | the package id which the release belongs to |
$filter |
Type | Description |
---|---|
\packages |
- See
- \packages
initialize(
\login $login
=
true
)
:
void
Initialize the soap client and store in the $GLOBALS object for use
Name | Type | Description |
---|---|---|
$login | \login | designates whether we want to try to login after we initialize or not |
isAlive(
)
:
true
Ping the server to determine if we have established proper communication
Type | Description |
---|---|
true | if we can communicate with the server and false otherwise |
login(
$terms_checked
=
true
)
:
true
Login to the depot
Name | Type | Description |
---|---|---|
$terms_checked |
Type | Description |
---|---|
true | if successful, false otherwise |
performDownload(
\filename $filename
)
:
\path
Call the PackageManagerDownloader function which uses curl in order to download the specified file
Name | Type | Description |
---|---|---|
$filename | \filename | the file to download |
Type | Description |
---|---|
\path | to downloaded file |