get package info from tar/tgz file.
string
&getPackageNameFromTgz
(string $filename)
-
string
$filename: package file name.
Ethna_PearWrapper constructor
Ethna_PearWrapper
Ethna_PearWrapper
()
provide yes-or-no dialog.
bool
confirmDialog
( $message, [ $default = 'yes'])
provide table layout
void
displayTable
( $caption, array $headline, array $rows)
-
array
$headline: headline
-
array
$rows: rows which have the same size as headline's.
-
$caption
do info (packages installed with ethna command)
-
string
$package: package name.
do install
true|Ethna_Error
&doInstall
(
string $pkg_name, [
string $state =
null])
-
string
$pkg_name: package name.
-
string
$state: package state.
do install from local tgz file
-
string
$pkg_file: package filename
do list (packages installed with ethna command)
do info (packages installable with ethna command)
-
string
$package: package name.
do remote-list (packages installable with ethna command)
do uninstall (packages installed with ethna command)
do upgrade
true|Ethna_Error
&doUpgrade
(
string $pkg_name, [
string $state =
null])
-
string
$pkg_name: package name.
-
string
$state: package state.
do upgrade from local tgz file
-
string
$pkg_file: package filename
get canonical package name (case sensitive)
string
&getCanonicalPackageName
(string $package)
-
string
$package: package name.
get installed package list
array
&getInstalledPackageList
()
get package version
string
getState
(string $package)
-
string
$package: package name
get package version
string
getVersion
(string $package)
-
string
$package: package name
setup PEAR_Config and so on.
true|Ethna_Error
&init
(
string $target, [
string|null $app_dir =
null], [
string|null $channel =
null])
-
string
$target: whether 'master' or 'local'
-
string|null
$app_dir: local application directory.
-
string|null
$channel: channel for the package repository.
whether channel discovered or not
bool
isChannelExists
()
check package installed
bool
isInstalled
(string $package)
-
string
$package: package name
(experimental)
void
setPearOpt
( $pearopt)
(experimental)
array
_getPearOpt
( &$cmd_obj, $cmd_str, $opt_array)
-
&$cmd_obj
-
$cmd_str
-
$opt_array