| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[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.33.2.1 2006/06/08 00:04:13 pajoye Exp $ |
| Poids: | 441 lignes (15 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
PEAR_PackageFile:: (12 méthodes):
PEAR_PackageFile()
rawReturn()
setLogger()
parserFactory()
getClassPrefix()
factory()
fromArray()
fromXmlString()
addTempFile()
fromTgzFile()
fromPackageFile()
fromAnyFile()
Classe: PEAR_PackageFile - X-Ref
Abstraction for the package.xml package description file| PEAR_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 |
| 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 : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|