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

Class: PEAR_REST_13

Source Location: /PEAR-1.10.0dev1/PEAR/REST/13.php

Class Overview

PEAR_REST_10
   |
   --PEAR_REST_13

Implement REST 1.3


Author(s):

Version:

  • Release: 1.10.0dev1

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 ]


Documentation generated on Sat, 25 Jul 2015 13:30:18 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.