diff options
| author | Tomas V.V.Cox <cox@php.net> | 2002-06-07 08:43:45 +0000 |
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2002-06-07 08:43:45 +0000 |
| commit | 9f46d24922bd04211a0f0c79848d0f2f0d7a2972 (patch) | |
| tree | eec77936dd8e87e89de028d5a96d1cd09f470576 | |
| parent | 149dcec76f799d15e5f41c4c648962d40ca26b19 (diff) | |
| download | php-git-9f46d24922bd04211a0f0c79848d0f2f0d7a2972.tar.gz | |
Make $_deps_rel_trans and $_deps_type_trans globally avaible:
moved from Command/Package.php -> Command/Common.php
| -rw-r--r-- | pear/PEAR/Command/Common.php | 22 | ||||
| -rw-r--r-- | pear/PEAR/Command/Package.php | 19 |
2 files changed, 22 insertions, 19 deletions
diff --git a/pear/PEAR/Command/Common.php b/pear/PEAR/Command/Common.php index e2d7a34dc6..9650e95e2b 100644 --- a/pear/PEAR/Command/Common.php +++ b/pear/PEAR/Command/Common.php @@ -38,6 +38,28 @@ class PEAR_Command_Common extends PEAR */ var $ui; + var $_deps_rel_trans = array( + 'lt' => '<', + 'le' => '<=', + 'eq' => '=', + 'ne' => '!=', + 'gt' => '>', + 'ge' => '>=', + 'has' => '==' + ); + + var $_deps_type_trans = array( + 'pkg' => 'package', + 'extension' => 'extension', + 'php' => 'PHP', + 'prog' => 'external program', + 'ldlib' => 'external library for linking', + 'rtlib' => 'external runtime library', + 'os' => 'operating system', + 'websrv' => 'web server', + 'sapi' => 'SAPI backend' + ); + // }}} // {{{ constructor diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 5e37eca0c5..83f5d40ec8 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -24,25 +24,6 @@ require_once 'PEAR/Command/Common.php'; class PEAR_Command_Package extends PEAR_Command_Common { - var $_deps_rel_trans = array( - 'lt' => '<', - 'le' => '<=', - 'eq' => '=', - 'ne' => '!=', - 'gt' => '>', - 'ge' => '>=', - ); - var $_deps_type_trans = array( - 'pkg' => 'package', - 'extension' => 'extension', - 'php' => 'PHP', - 'prog' => 'external program', - 'ldlib' => 'external library for linking', - 'rtlib' => 'external runtime library', - 'os' => 'operating system', - 'websrv' => 'web server', - 'sapi' => 'SAPI backend' - ); var $commands = array( 'package' => array( 'summary' => 'Build Package', |
