PEAR_Info::getStyleSheet (Previous) (Next) PEAR_Info::pearImage

View this page in Last updated: Sun, 24 Aug 2008
English | French | German | Japanese | Plain HTML

PEAR_Info::packageInstalled()

PEAR_Info::packageInstalled() -- パッケージがインストールされているかどうかを調べる

説明

あるパッケージがユーザあるいはシステムの PEAR にインストールされているかどうかを調べます。 最小のバージョンとチャネル情報をサポートしています。

パラメータ

string $name

パッケージ名。

string $version

(オプション) インストールされている必要がある最小のバージョン。

string $channel

(オプション) パッケージを配布しているチャネル。

string $user_file

(オプション) PEAR のユーザ定義オプションを読み込むファイル。

string $system_file

(オプション) PEAR のシステム全体のデフォルトを読み込むファイル。

利用可能なバージョン

バージョン 1.6.0 (2005-01-03)

例外・エラー

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

注意

この関数は、スタティックにコール されます。


<?php
require_once 'PEAR/Info.php';

$res PEAR_Info::packageInstalled('Role_Web''1.1.0''pearified');
if ($res) {
    print "パッケージ pearified/Role_Web 1.1.0 以降がインストールされています\n";
} else {
    print "パッケージ pearified/Role_Web はまだインストールされていません\n";
}

$res PEAR_Info::packageInstalled('PEAR_PackageFileManager');
if ($res) {
    print "パッケージ pear/PEAR_PackageFileManager がインストールされています\n";
} else {
    print "パッケージ pear/PEAR_PackageFileManager はまだインストールされていません\n";
}
?>

PEAR_Info::getStyleSheet (Previous) (Next) PEAR_Info::pearImage

Download Documentation Last updated: Sun, 24 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.