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)

Description

Get the right object for executing a command.

Parameter

string $command

The name of the command

object &$config

Instance of PEAR_Config object

Return value

object the command object

Throws

Table 20-1. Possible PEAR_Error values

Error codeError valueMeaningSolution
 ""  

Note

This function should be called statically.