Property | Type | Description | |
---|---|---|---|
$_config | PEAR_Config | ||
$_debug | |||
$_extractErrors | array | helper for extracting Archive_Tar errors | |
$_logger | |||
$_rawReturn | boolean |
Method | Description | |
---|---|---|
PEAR_PackageFile ( PEAR_Config &$config, ? $debug = false ) | ||
_extractErrors ( PEAR_Error | null $err = null ) : array | helper callback for extracting Archive_Tar errors | |
addTempFile ( string $file ) : void | Register a temporary file or directory. When the destructor is executed, all registered temporary files and directories are removed. | |
factory ( integer $version ) : PEAR_PackageFile_v1 | Create a PEAR_PackageFile_v* of a given version. | |
fromAnyFile ( string $info, integer $state ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | Create a PEAR_PackageFile_v* from a .tgz archive or package.xml file. | |
fromArray ( array $arr ) : PEAR_PackageFileManager_v1 | PEAR_PackageFileManager_v2 | Create a PEAR_PackageFile_v* from its toArray() method | |
fromPackageFile ( string $descfile, integer $state, string | false $archive = false ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | Create a PEAR_PackageFile_v* from a package.xml file. | |
fromTgzFile ( $file, $state ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | Create a PEAR_PackageFile_v* from a compresed Tar or Tgz file. | |
fromXmlString ( string $data, integer $state, string $file, string $archive = false ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | Create a PEAR_PackageFile_v* from an XML string. | |
getClassPrefix ( ) : string | For simpler unit-testing | |
parserFactory ( integer $version ) : PEAR_PackageFile_Parser_v1 | Create a PEAR_PackageFile_Parser_v* of a given version. | |
rawReturn ( ) | Turn off validation - return a parsed package.xml without checking it | |
setLogger ( &$l ) |
public PEAR_PackageFile ( PEAR_Config &$config, ? $debug = false ) | ||
$config | PEAR_Config | |
$debug | ? |
public _extractErrors ( PEAR_Error | null $err = null ) : array | ||
$err | PEAR_Error | null | |
return | array |
public addTempFile ( string $file ) : void | ||
$file | string | name of file or directory |
return | void |
public fromAnyFile ( string $info, integer $state ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | ||
$info | string | file name |
$state | integer | package state (one of PEAR_VALIDATE_* constants) |
return | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 |
public fromPackageFile ( string $descfile, integer $state, string | false $archive = false ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | ||
$descfile | string | name of package xml file |
$state | integer | package state (one of PEAR_VALIDATE_* constants) |
$archive | string | false | name of the archive this package.xml came from, if any |
return | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 |
public fromTgzFile ( $file, $state ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | ||
return | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 |
public fromXmlString ( string $data, integer $state, string $file, string $archive = false ) : PEAR_PackageFile_v1 | PEAR_PackageFile_v2 | ||
$data | string | contents of package.xml file |
$state | integer | package state (one of PEAR_VALIDATE_* constants) |
$file | string | full path to the package.xml file (and the files it references) |
$archive | string | optional name of the archive that the XML was extracted from, if any |
return | PEAR_PackageFile_v1 | PEAR_PackageFile_v2 |
public getClassPrefix ( ) : string | ||
return | string |
public parserFactory ( integer $version ) : PEAR_PackageFile_Parser_v1 | ||
$version | integer | |
return | PEAR_PackageFile_Parser_v1 |
public array $_extractErrors | ||
return | array |