PEAR_PackageFile::fromPackageFile

PEAR_PackageFile::fromPackageFile() – package.xml ファイルの名前を入力として受け取り、 パッケージファイルからの情報を返す

Synopsis

require_once '/PackageFile.php';

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

Description

package.xml ファイルをパースし、package.xml オブジェクト、あるいはエラー時に PEAR_Error オブジェクトを返します。

Parameter

string $descfile

package.xml ファイルの名前。

integer $state

パッケージの状態 (定数 PEAR_VALIDATE_* のいずれか)。

string|FALSE $archive

package.xml を含む .tgz ファイルへのフルパス、あるいは存在しない場合に false。

Return value

パッケージ情報を配列で返します。

Throws

例外はスローされません。

Note

This function should be called statically.