mixed PEAR_PackageUpdate::factory (
, string $packageName
, string $channel
, string $user_file
, string $system_file
, string $pref_file
Factory method for creating PEAR_PackageUpdate frontend instances.
The name of a frontend driver class. Must be one of Gtk2, Cli, or Web.
The name of the package to be updated. Example: PEAR_PackageFileManager_Web.
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.
The path to the file to read PEAR user-defined options from.
The path to the file to read PEAR system-wide defaults from.
The path to the file to read user's preferences from.
throws PEAR_PACKAGEUPDATE_ERROR_NONEXISTENTDRIVER, when invalid driver name is used (i.e. Gtk2, Cli, Web).
This function should be called statically.
mixed - reference to a new object or FALSE if the object could not be created (i.e. invalid driver name).