mixed PEAR_PackageUpdate::factory (
string $driver
, string $packageName
, string $channel
, string $user_file
= ''
, string $system_file
= ''
, string $pref_file
= ''
)
Factory method for creating PEAR_PackageUpdate frontend instances.
$driver
The name of a frontend driver class. Must be one of
Gtk2
, Cli
, or
Web
.
$packageName
The name of the package to be updated. Example: PEAR_PackageFileManager_Web.
$channel
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
.
$user_file
The path to the file to read PEAR user-defined options from.
$system_file
The path to the file to read PEAR system-wide defaults from.
$pref_file
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).
since 0.4.0a1
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).