PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_REST_13

Source Location: /PEAR-1.10.12/PEAR/REST/13.php

Class Overview

PEAR_REST_10
   |
   --PEAR_REST_13

Implement REST 1.3


Author(s):

Version:

  • Release: 1.10.12

Copyright:

  • 1997-2009 The Authors

Methods


Inherited Variables

Inherited Methods

Class: PEAR_REST_10

PEAR_REST_10::__construct()
PEAR_REST_10::betterStates()
Return an array containing all of the states that are more stable than or equal to the passed in state
PEAR_REST_10::getDepDownloadURL()
PEAR_REST_10::getDownloadURL()
Retrieve information about a remote package to be downloaded from a REST server
PEAR_REST_10::listAll()
PEAR_REST_10::listCategories()
List all categories of a REST server
PEAR_REST_10::listCategory()
List a category of a REST server
PEAR_REST_10::listLatestUpgrades()
PEAR_REST_10::listPackages()
PEAR_REST_10::packageInfo()

Class Details

[line 34]
Implement REST 1.3


[ Top ]


Method Detail

getDepDownloadURL   [line 144]

void getDepDownloadURL( $base, $xsdversion, $dependency, $deppackage, [ $prefstate = 'stable'], [ $installed = false], [ $channel = false])


Overrides PEAR_REST_10::getDepDownloadURL() (parent method not documented)

Parameters:

   $base   — 
   $xsdversion   — 
   $dependency   — 
   $deppackage   — 
   $prefstate   — 
   $installed   — 
   $channel   — 

[ Top ]

getDownloadURL   [line 54]

array|false|PEAR_Error getDownloadURL( string $base, array $packageinfo, string $prefstate, bool $installed, [ $channel = false])

Retrieve information about a remote package to be downloaded from a REST server

This is smart enough to resolve the minimum PHP version dependency prior to download

  • Return: see _returnDownloadURL()

Overrides PEAR_REST_10::getDownloadURL() (Retrieve information about a remote package to be downloaded from a REST server)

Parameters:

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
   $channel   — 

[ Top ]

listLatestUpgrades   [line 302]

void listLatestUpgrades( $base, $pref_state, $installed, $channel, &$reg)

List package upgrades but take the PHP version into account.

Overrides PEAR_REST_10::listLatestUpgrades() (parent method not documented)

Parameters:

   $base   — 
   $pref_state   — 
   $installed   — 
   $channel   — 
   &$reg   — 

[ Top ]


Documentation generated on Sun, 19 Apr 2020 14:22:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.