PEAR_Command::factory

PEAR_Command::factory() – obtient un objet pour exécuter une commande

Synopsis

require_once 'PEAR/command.php';

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

Description

Obtient un objet pour exécuter une commande.

Parameter

string $command

Le nom de la commande

object &$config

Instance d'un objet PEAR_Config

Return value

object l'objet commande

Throws

Possible PEAR_Error values
Code erreur Valeur erreur Signification Solution
"

Note

This function should be called statically.