PEAR_PackageFile::parserFactory

PEAR_PackageFile::parserFactory() – parserFactory

Synopsis

require_once '/PackageFile.php';

PEAR_PackageFile_Parser_v1|PEAR_PackageFile_Parser_v2& PEAR_PackageFile::parserFactory ( string $version )

Description

Return a package.xml parsing object appropriate for the selected package.xml version.

Parameter

string $version

The package.xml version represented (1 or 2)

Throws

throws no exceptions thrown

Note

This function can not be called statically.

fromXmlString (Previous) Turn off validation - return a parsed package.xml without checking it for errors (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.