PEAR_PackageFile::fromAnyFile()

PEAR_PackageFile::fromAnyFile()  -- Returns package information from different sources

Opis

This method is able to extract information about a package from a .tgz archive or from a XML package definition file.

Parametr

string $info

path to a file containing a package.xml (package archive or package.xml)

integer $state

package state (one of PEAR_VALIDATE_* constants)

Wyjątki

throws no exceptions thrown

Uwagi

Ta funkcja powinna być wywołana statycznie.