PEAR_PackageUpdate::factory

PEAR_PackageUpdate::factory --  Factory method for createing PEAR_PackageUpdate frontend instances.

Synopsis

publicmixedPEAR_PackageUpdate::factorystring$driverstring$packageNamestring$channel

Description

Factory method for creating PEAR_PackageUpdate frontend instances.

Parameter

string $driver

The name of a frontend driver class. Must be one of Gtk2, CLI, or Web.

string $packageName

The name of the package to be updated. Example: PEAR_PackageFileManager_Web.

string $driver

The name of the channel $packageName is hosted on. This may be a fully qualified channel name such as pear.php.net or a short channel name like pear.

Note

This function should be called statically.

Return value

mixed - reference to a new object or FALSE when if the object could not be created (i.e. invalid driver name).