PEAR_PackageFile::fromXmlString()

PEAR_PackageFile::fromXmlString()  -- fromXmlString

Opis

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

Parametr

string $data

contents of package.xml file

integer $state

package state (one of PEAR_VALIDATE_* constants)

string $file

full path to the package.xml file (and the files it references)

string|FALSE $archive

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

Wyjątki

throws no exceptions thrown

Uwagi

Ta funkcja nie może być wywołana statycznie.