PEAR_Command::factory()

PEAR_Command::factory() -- get object for executing a command.

Synopsis

require_once 'PEAR/command.php';

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

Описание

Get the right object for executing a command.

Параметр

string $command

The name of the command

object &$config

Instance of PEAR_Config object

Возвращаемое значение

object the command object

Throws

Таблица 27-1. Возможные значения PEAR_Error

Error codeError valueMeaningSolution
 ""  

Заметка

Эта функция должна вызываться статически.