![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($config, $options=array()) | |
| _returnDownloadURL ($base, $package, $release, $info, $found, $phpversion=false, $channel=false) | |
| _sortReleasesByVersionNumber ($a, $b) | |
| betterStates ($state, $include=false) | |
| getDepDownloadURL ($base, $xsdversion, $dependency, $deppackage, $prefstate='stable', $installed=false, $channel=false) | |
| getDownloadURL ($base, $packageinfo, $prefstate, $installed, $channel=false) | |
| listAll ($base, $dostable, $basic=true, $searchpackage=false, $searchsummary=false, $channel=false) | |
| listCategories ($base, $channel=false) | |
| listCategory ($base, $category, $info=false, $channel=false) | |
| listLatestUpgrades ($base, $pref_state, $installed, $channel, &$reg) | |
| listPackages ($base, $channel=false) | |
| packageInfo ($base, $package, $channel=false) | |
Data Fields | |
| $_rest | |
| _returnDownloadURL | ( | $base, | |
| $package, | |||
| $release, | |||
| $info, | |||
| $found, | |||
| $phpversion = false, | |||
| $channel = false ) |
Take raw data and return the array needed for processing a download URL
| string | $base | REST base uri |
| string | $package | Package name |
| array | $release | an array of format array('v' => version, 's' => state) describing the release to download |
| array | $info | list of all releases as defined by allreleases.xml |
| bool | null | $found | determines whether the release was found or this is the next best alternative. If null, then versions were skipped because of PHP dependency |
Definition at line 259 of file 10.php.
Referenced by getDepDownloadURL(), PEAR_REST_13\getDepDownloadURL(), getDownloadURL(), and PEAR_REST_13\getDownloadURL().
| _sortReleasesByVersionNumber | ( | $a, | |
| $b ) |
Sort releases by version number
@access private
Definition at line 856 of file 10.php.
| betterStates | ( | $state, | |
| $include = false ) |
Return an array containing all of the states that are more stable than or equal to the passed in state
| string | Release state |
| boolean | Determines whether to include $state in the list |
Definition at line 836 of file 10.php.
Referenced by getDepDownloadURL(), PEAR_REST_13\getDepDownloadURL(), getDownloadURL(), PEAR_REST_13\getDownloadURL(), listLatestUpgrades(), and PEAR_REST_13\listLatestUpgrades().
| getDepDownloadURL | ( | $base, | |
| $xsdversion, | |||
| $dependency, | |||
| $deppackage, | |||
| $prefstate = 'stable', | |||
| $installed = false, | |||
| $channel = false ) |
Reimplemented in PEAR_REST_13.
Definition at line 123 of file 10.php.
References _returnDownloadURL(), and betterStates().
| getDownloadURL | ( | $base, | |
| $packageinfo, | |||
| $prefstate, | |||
| $installed, | |||
| $channel = false ) |
Retrieve information about a remote package to be downloaded from a REST server
| string | $base | The uri to prepend to all REST calls |
| array | $packageinfo | an array of format: array( 'package' => 'packagename', 'channel' => 'channelname', ['state' => 'alpha' (or valid state),] -or- ['version' => '1.whatever'] |
| string | $prefstate | Current preferred_state config variable value |
| bool | $installed | the installed version of this package to compare against |
_returnDownloadURL() Reimplemented in PEAR_REST_13.
Definition at line 61 of file 10.php.
References _returnDownloadURL(), and betterStates().
| listAll | ( | $base, | |
| $dostable, | |||
| $basic = true, | |||
| $searchpackage = false, | |||
| $searchsummary = false, | |||
| $channel = false ) |
Definition at line 482 of file 10.php.
References $ui, PEAR_ERROR_RETURN, and PEAR_Frontend\singleton().
| listCategories | ( | $base, | |
| $channel = false ) |
List all categories of a REST server
| string | $base | base URL of the server |
Definition at line 390 of file 10.php.
References PEAR_ERROR_RETURN.
| listCategory | ( | $base, | |
| $category, | |||
| $info = false, | |||
| $channel = false ) |
List a category of a REST server
| string | $base | base URL of the server |
| string | $category | name of the category |
| boolean | $info | also download full package info |
Definition at line 435 of file 10.php.
References PEAR_ERROR_RETURN.
| listLatestUpgrades | ( | $base, | |
| $pref_state, | |||
| $installed, | |||
| $channel, | |||
| & | $reg ) |
Reimplemented in PEAR_REST_13.
Definition at line 650 of file 10.php.
References betterStates(), and PEAR_ERROR_RETURN.
| listPackages | ( | $base, | |
| $channel = false ) |
Definition at line 366 of file 10.php.
| packageInfo | ( | $base, | |
| $package, | |||
| $channel = false ) |
Definition at line 740 of file 10.php.
References PEAR_ERROR_RETURN.