[ Index ]
 

Code source de PHP PEAR 1.4.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/PEAR/PackageFile/v2/ -> rw.php (sommaire)

PEAR_PackageFile_v2, package.xml version 2.0, read/write version PHP versions 4 and 5

Author: Greg Beaver <cellog@php.net>
Copyright: 1997-2006 The PHP Group
License: http://www.php.net/license/3_0.txt PHP License 3.0
Version: CVS: $Id: rw.php,v 1.19 2006/10/30 04:12:02 cellog Exp $
Poids: 1601 lignes (63 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 1 fichier
 PEAR/PackageFile/v2.php

Définit 1 class

PEAR_PackageFile_v2_rw:: (62 méthodes):
  setProvidesExtension()
  setPackage()
  _setPackageVersion2_1()
  setUri()
  setChannel()
  setExtends()
  setSummary()
  setDescription()
  addMaintainer()
  updateMaintainer()
  deleteMaintainer()
  setReleaseVersion()
  setAPIVersion()
  setReleaseStability()
  setAPIStability()
  setLicense()
  setNotes()
  setInstalledAs()
  installedFile()
  clearContents()
  addBundledPackage()
  addTaskToFile()
  addFile()
  addCompatiblePackage()
  resetUsesrole()
  addUsesrole()
  resetUsestask()
  addUsestask()
  clearCompatible()
  clearDeps()
  setPhpDep()
  setPearinstallerDep()
  addConflictingPackageDepWithChannel()
  addConflictingPackageDepWithUri()
  addDependencyGroup()
  _constructDep()
  addGroupPackageDepWithChannel()
  addGroupPackageDepWithURI()
  addGroupExtensionDep()
  _addGroupDependency()
  addPackageDepWithChannel()
  addPackageDepWithUri()
  addSubpackageDepWithChannel()
  addSubpackageDepWithUri()
  addExtensionDep()
  addOsDep()
  addArchDep()
  setPackageType()
  addRelease()
  _getCurrentRelease()
  addInstallAs()
  addIgnore()
  addBinarypackage()
  addConfigureOption()
  setPhpInstallCondition()
  addExtensionInstallCondition()
  setOsInstallCondition()
  setArchInstallCondition()
  setSourcePackage()
  generateChangeLogEntry()
  setChangelogEntry()
  clearChangeLog()


Classe: PEAR_PackageFile_v2_rw  - X-Ref


setProvidesExtension($extension)   X-Ref

param: string Extension name
return: bool success of operation

setPackage($package)   X-Ref
Pas de description

_setPackageVersion2_1()   X-Ref
set this as a package.xml version 2.1


setUri($uri)   X-Ref
Pas de description

setChannel($channel)   X-Ref
Pas de description

setExtends($extends)   X-Ref
Pas de description

setSummary($summary)   X-Ref
Pas de description

setDescription($desc)   X-Ref
Pas de description

addMaintainer($role, $handle, $name, $email, $active = 'yes')   X-Ref
Adds a new maintainer - no checking of duplicates is performed, use
updatemaintainer for that purpose.


updateMaintainer($newrole, $handle, $name, $email, $active = 'yes')   X-Ref
Pas de description

deleteMaintainer($handle)   X-Ref
Pas de description

setReleaseVersion($version)   X-Ref
Pas de description

setAPIVersion($version)   X-Ref
Pas de description

setReleaseStability($state)   X-Ref
snapshot|devel|alpha|beta|stable


setAPIStability($state)   X-Ref

param: devel|alpha|beta|stable

setLicense($license, $uri = false, $filesource = false)   X-Ref
Pas de description

setNotes($notes)   X-Ref
Pas de description

setInstalledAs($file, $path)   X-Ref
This is only used at install-time, after all serialization
is over.

param: string file name
param: string installed path

installedFile($file, $atts)   X-Ref
This is only used at install-time, after all serialization
is over.


clearContents($baseinstall = false)   X-Ref
Reset the listing of package contents

param: string base installation dir for the whole package, if any

addBundledPackage($path)   X-Ref

param: string relative path of the bundled package.

addTaskToFile($filename, $task)   X-Ref

param: string file name
param: PEAR_Task_Common a read/write task

addFile($dir, $file, $attrs)   X-Ref

param: string path to the file
param: string filename
param: array extra attributes

addCompatiblePackage($name, $channel, $min, $max, $exclude = false)   X-Ref

param: string Dependent package name
param: string Dependent package's channel name
param: string minimum version of specified package that this release is guaranteed to be
param: string maximum version of specified package that this release is guaranteed to be
param: string versions of specified package that this release is not compatible with

resetUsesrole()   X-Ref
Removes the <usesrole> tag entirely


addUsesrole($role, $packageOrUri, $channel = false)   X-Ref

param: string
param: string package name or uri
param: string channel name if non-uri

resetUsestask()   X-Ref
Removes the <usestask> tag entirely


addUsestask($task, $packageOrUri, $channel = false)   X-Ref

param: string
param: string package name or uri
param: string channel name if non-uri

clearCompatible()   X-Ref
Remove all compatible tags


clearDeps()   X-Ref
Reset dependencies prior to adding new ones


setPhpDep($min, $max = false, $exclude = false)   X-Ref

param: string minimum PHP version allowed
param: string maximum PHP version allowed
param: array $exclude incompatible PHP versions

setPearinstallerDep($min, $max = false, $recommended = false, $exclude = false)   X-Ref

param: string minimum allowed PEAR installer version
param: string maximum allowed PEAR installer version
param: string recommended PEAR installer version
param: array incompatible version of the PEAR installer

addConflictingPackageDepWithChannel($name, $channel,$providesextension = false, $min = false, $max = false, $exclude = false)   X-Ref
Mark a package as conflicting with this package

param: string package name
param: string package channel
param: string extension this package provides, if any
param: string|false minimum version required
param: string|false maximum version allowed
param: array|false versions to exclude from installation

addConflictingPackageDepWithUri($name, $uri, $providesextension = false)   X-Ref
Mark a package as conflicting with this package

param: string package name
param: string package channel
param: string extension this package provides, if any

addDependencyGroup($name, $hint)   X-Ref
Pas de description

_constructDep($name, $channel, $uri, $min, $max, $recommended, $exclude,$providesextension = false, $nodefault = false,$conflicts = false)   X-Ref

param: string package name
param: string|false channel name, false if this is a uri
param: string|false uri name, false if this is a channel
param: string|false minimum version required
param: string|false maximum version allowed
param: string|false recommended installation version
param: array|false versions to exclude from installation
param: string extension this package provides, if any
param: bool if true, tells the installer to ignore the default optional dependency group
param: bool if true, tells the installer to negate this dependency (conflicts)
return: array

addGroupPackageDepWithChannel($type, $groupname, $name, $channel, $min = false,$max = false, $recommended = false, $exclude = false,$providesextension = false, $nodefault = false)   X-Ref

param: package|subpackage
param: string group name
param: string package name
param: string package channel
param: string minimum version
param: string maximum version
param: string recommended version
param: array|false optional excluded versions
param: string extension this package provides, if any
param: bool if true, tells the installer to ignore the default optional dependency group
return: bool false if the dependency group has not been initialized with

addGroupPackageDepWithURI($type, $groupname, $name, $uri, $providesextension = false,$nodefault = false)   X-Ref

param: package|subpackage
param: string group name
param: string package name
param: string package uri
param: string extension this package provides, if any
param: bool if true, tells the installer to ignore the default optional dependency group
return: bool false if the dependency group has not been initialized with

addGroupExtensionDep($groupname, $name, $min = false, $max = false,$recommended = false, $exclude = false)   X-Ref

param: string group name (must be pre-existing)
param: string extension name
param: string minimum version allowed
param: string maximum version allowed
param: string recommended version
param: array incompatible versions

_addGroupDependency($type, $dep, $groupname)   X-Ref

param: package|subpackage|extension
param: array dependency contents
param: string name of the dependency group to add this to
return: boolean

addPackageDepWithChannel($type, $name, $channel, $min = false, $max = false,$recommended = false, $exclude = false,$providesextension = false, $nodefault = false)   X-Ref

param: optional|required
param: string package name
param: string package channel
param: string minimum version
param: string maximum version
param: string recommended version
param: string extension this package provides, if any
param: bool if true, tells the installer to ignore the default optional dependency group
param: array|false optional excluded versions

addPackageDepWithUri($type, $name, $uri, $providesextension = false,$nodefault = false)   X-Ref

param: optional|required
param: string name of the package
param: string uri of the package
param: string extension this package provides, if any
param: bool if true, tells the installer to ignore the default optional dependency group

addSubpackageDepWithChannel($type, $name, $channel, $min = false, $max = false,$recommended = false, $exclude = false,$nodefault = false)   X-Ref

param: optional|required optional, required
param: string package name
param: string package channel
param: string minimum version
param: string maximum version
param: string recommended version
param: array incompatible versions
param: bool if true, tells the installer to ignore the default optional dependency group

addSubpackageDepWithUri($type, $name, $uri, $nodefault = false)   X-Ref

param: optional|required optional, required
param: string package name
param: string package uri for download
param: bool if true, tells the installer to ignore the default optional dependency group

addExtensionDep($type, $name, $min = false, $max = false, $recommended = false,$exclude = false)   X-Ref

param: optional|required optional, required
param: string extension name
param: string minimum version
param: string maximum version
param: string recommended version
param: array incompatible versions

addOsDep($name, $conflicts = false)   X-Ref

param: string Operating system name
param: boolean true if this package cannot be installed on this OS

addArchDep($pattern, $conflicts = false)   X-Ref

param: string Architecture matching pattern
param: boolean true if this package cannot be installed on this architecture

setPackageType($type)   X-Ref
Set the kind of package, and erase all release tags

- a php package is a PEAR-style package
- an extbin package is a PECL-style extension binary
- an extsrc package is a PECL-style source for a binary
- an zendextbin package is a PECL-style zend extension binary
- an zendextsrc package is a PECL-style source for a zend extension binary
- a bundle package is a collection of other pre-packaged packages
param: php|extbin|extsrc|zendextsrc|zendextbin|bundle
return: bool success

addRelease()   X-Ref

return: bool true if package type is set up

_getCurrentRelease($strict = true)   X-Ref
Get the current release tag in order to add to it

param: bool returns only releases that have installcondition if true
return: array|null

addInstallAs($path, $as)   X-Ref
Add a file to the current release that should be installed under a different name

param: string <contents> path to file
param: string name the file should be installed as

addIgnore($path)   X-Ref
Add a file to the current release that should be ignored

param: string <contents> path to file
return: bool success of operation

addBinarypackage($package)   X-Ref
Add an extension binary package for this extension source code release

Note that the package must be from the same channel as the extension source package
param: string

addConfigureOption($name, $prompt, $default = null)   X-Ref
Add a configureoption to an extension source package

param: string
param: string
param: string

setPhpInstallCondition($min, $max, $exclude = false)   X-Ref
Set an installation condition based on php version for the current release set

param: string minimum version
param: string maximum version
param: false|array incompatible versions of PHP

addExtensionInstallCondition($name, $min = false, $max = false, $recommended = false,$exclude = false)   X-Ref

param: optional|required optional, required
param: string extension name
param: string minimum version
param: string maximum version
param: string recommended version
param: array incompatible versions

setOsInstallCondition($name, $conflicts = false)   X-Ref
Set an installation condition based on operating system for the current release set

param: string OS name
param: bool whether this OS is incompatible with the current release

setArchInstallCondition($pattern, $conflicts = false)   X-Ref
Set an installation condition based on architecture for the current release set

param: string architecture pattern
param: bool whether this arch is incompatible with the current release

setSourcePackage($packageOrUri)   X-Ref
For extension binary releases, this is used to specify either the
static URI to a source package, or the package name and channel of the extsrc/zendextsrc
package it is based on.

param: string Package name, or full URI to source package (extsrc/zendextsrc type)

generateChangeLogEntry($notes = false)   X-Ref
Generate a valid change log entry from the current package.xml

param: string|false

setChangelogEntry($releaseversion, $contents)   X-Ref

param: string release version to set change log notes for
param: array output of {@link generateChangeLogEntry()}

clearChangeLog()   X-Ref
Remove the changelog entirely




Généré le : Sun Feb 25 14:08:00 2007 par Balluche grâce à PHPXref 0.7