PEAR_Command::factory

PEAR_Command::factory() – コマンドを実行するためのオブジェクトを取得する

Synopsis

require_once 'PEAR/command.php';

object PEAR_Command::factory ( string $command , object &$config )

Description

コマンドを実行するための、正しいオブジェクトを取得します。

Parameter

string $command

コマンドの名前。

object &$config

PEAR_Config オブジェクトのインスタンス。

Return value

コマンドオブジェクトを返します。

Throws

Possible PEAR_Error values
エラーコード エラーの値 意味 対応
  "    

Note

This function should be called statically.