[ Index ] |
|
Code source de PHP PEAR 1.4.5 |
[Code source] [Imprimer] [Statistiques]
PEAR_PackageFile, package.xml parsing utility class 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: PackageFile.php,v 1.40 2006/09/25 05:12:21 cellog Exp $ |
Poids: | 474 lignes (17 kb) |
Inclus ou requis: | 12 fois |
Référencé: | 0 fois |
Nécessite: | 3 fichiers PEAR/ErrorStack.php Archive/Tar.php PEAR/Validate.php |
PEAR_PackageFile:: (13 méthodes):
PEAR_PackageFile()
rawReturn()
setLogger()
parserFactory()
getClassPrefix()
factory()
fromArray()
fromXmlString()
addTempFile()
fromTgzFile()
_extractErrors()
fromPackageFile()
fromAnyFile()
Classe: PEAR_PackageFile - X-Ref
Abstraction for the package.xml package description filePEAR_PackageFile(&$config, $debug = false, $tmpdir = false) X-Ref |
param: PEAR_Config $config param: ? $debug param: string @tmpdir Optional temporary directory for uncompressing |
rawReturn() X-Ref |
Turn off validation - return a parsed package.xml without checking it This is used by the package-validate command |
setLogger(&$l) X-Ref |
Pas de description |
parserFactory($version) X-Ref |
Create a PEAR_PackageFile_Parser_v* of a given version. param: int $version return: PEAR_PackageFile_Parser_v1|PEAR_PackageFile_Parser_v1 |
getClassPrefix() X-Ref |
For simpler unit-testing return: string |
factory($version) X-Ref |
Create a PEAR_PackageFile_v* of a given version. param: int $version return: PEAR_PackageFile_v1|PEAR_PackageFile_v1 |
fromArray($arr) X-Ref |
Create a PEAR_PackageFile_v* from its toArray() method WARNING: no validation is performed, the array is assumed to be valid, always parse from xml if you want validation. param: array $arr return: PEAR_PackageFileManager_v1|PEAR_PackageFileManager_v2 |
fromXmlString($data, $state, $file, $archive = false) X-Ref |
Create a PEAR_PackageFile_v* from an XML string. param: string $data contents of package.xml file param: int $state package state (one of PEAR_VALIDATE_* constants) param: string $file full path to the package.xml file (and the files param: string $archive optional name of the archive that the XML was return: PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
addTempFile($file) X-Ref |
Register a temporary file or directory. When the destructor is executed, all registered temporary files and directories are removed. param: string $file name of file or directory return: void |
fromTgzFile($file, $state) X-Ref |
Create a PEAR_PackageFile_v* from a compresed Tar or Tgz file. param: string contents of package.xml file param: int package state (one of PEAR_VALIDATE_* constants) return: PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
_extractErrors($err = null) X-Ref |
helper callback for extracting Archive_Tar errors param: PEAR_Error|null $err return: array |
fromPackageFile($descfile, $state, $archive = false) X-Ref |
Create a PEAR_PackageFile_v* from a package.xml file. param: string $descfile name of package xml file param: int $state package state (one of PEAR_VALIDATE_* constants) param: string|false $archive name of the archive this package.xml came return: PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
fromAnyFile($info, $state) X-Ref |
Create a PEAR_PackageFile_v* from a .tgz archive or package.xml file. This method is able to extract information about a package from a .tgz archive or from a XML package definition file. param: string $info file name param: int $state package state (one of PEAR_VALIDATE_* constants) return: PEAR_PackageFile_v1|PEAR_PackageFile_v2 |
Généré le : Sun Feb 25 14:08:00 2007 | par Balluche grâce à PHPXref 0.7 |