Create a PEAR_PackageFile_v* from a package.xml file.
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 |