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

Possible PEAR_Error values
Error code Error value Meaning Solution
  "    

Note

This function should be called statically.

PEAR_Command (Previous) get list of currently supported commands (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.