PEAR_Info (Previous) (Next) PEAR_Info::display

View this page in Last updated: Sun, 17 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

constructor PEAR_Info::PEAR_Info()

constructor PEAR_Info::PEAR_Info() -- PHP 4 形式のコンストラクタ (ZE1)

説明

重要項目 $user_file$system_file および $options はバージョン 1.7.0RC1 以降で使用できるようになりました。これらにより PEAR 設定ファイルをより簡単に定義できるようになり、PHP の phpinfo() と同様に「どの情報を表示するのか」を選択できるようになりました。

パラメータ

string $pear_dir

(オプション) PEAR の基底インストールディレクトリ。

string $user_file

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

string $system_file

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

array $options

(オプション) 出力する PEAR 情報に関する設定。

例外・エラー

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

利用可能なバージョン

バージョン 1.0.1 (2003-04-24)

注意

この関数は、スタティックにコールする ことはできません。


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

// PEAR のバージョンとロゴ、設定ファイルの場所、チャネルの一覧と
// インストールされているパッケージの簡単な情報 (バージョンのみ)
// を、チャネル pear、__uri、pecl について表示します
$options = array('resume' =>  PEAR_INFO_GENERAL PEAR_INFO_CHANNELS PEAR_INFO_PACKAGES_VERSION,
    'channels' => array('pear.php.net''__uri''pecl.php_net')
);

// PEAR のインストールディレクトリを指定します。ここから pear.ini あるいは pearsys.ini を探します
$info = new PEAR_Info('c:\wamp\php'''''$options);

$info->display();

?>

PEAR_Info (Previous) (Next) PEAR_Info::display

Download Documentation Last updated: Sun, 17 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.