PEAR_PackageFile::fromPackageFile()

PEAR_PackageFile::fromPackageFile()  --  Returns information about a package file. Expects the name of a package.xml file as input.

Synopsis

require_once '/PackageFile.php';

array& PEAR_PackageFile::fromPackageFile (string $descfile, int $state, string|false [$archive = FALSE])

Beschreibung

parse and return a package.xml object from a package.xml file, or a PEAR_Error object upon error.

Parameter

string $descfile

name of package.xml file

integer $state

package state (one of PEAR_VALIDATE_* constants)

string|FALSE $archive

full path to the full package .tgz file containing the package.xml, or false for none.

Rückgabewert

returns array with package information

Fehler-Meldungen

throws no exceptions thrown

Hinweise

Diese Methode sollte statisch aufgerufen werden..