PEAR
[ class tree: PEAR ] [ index: PEAR ] [ all elements ]

Class: PEAR_Command_Registry

Source Location: /PEAR-1.9.4/PEAR/Command/Registry.php

Class Overview

PEAR
   |
   --PEAR_Command_Common
      |
      --PEAR_Command_Registry

PEAR commands for registry manipulation


Author(s):

Version:

  • Release: 1.9.4

Copyright:

  • 1997-2009 The Authors

Variables

Methods


Inherited Variables

Inherited Methods

Class: PEAR_Command_Common

PEAR_Command_Common::PEAR_Command_Common()
PEAR_Command_Common constructor.
PEAR_Command_Common::getCommands()
Return a list of all the commands defined by this class.
PEAR_Command_Common::getGetoptArgs()
PEAR_Command_Common::getHelp()
Returns the help message for the given command
PEAR_Command_Common::getHelpArgs()
Returns the help for the accepted arguments of a command
PEAR_Command_Common::getOptions()
PEAR_Command_Common::getShortcuts()
Return a list of all the command shortcuts defined by this class.
PEAR_Command_Common::run()

Class: PEAR

PEAR::PEAR()
Constructor. Registers this object in $_PEAR_destructor_object_list for destructor emulation if a destructor object exists.
PEAR::delExpect()
This method deletes all occurences of the specified element from the expected error codes stack.
PEAR::expectError()
This method is used to tell which errors you expect to get.
PEAR::getStaticProperty()
If you have a class that's mostly/entirely static, and you need static
PEAR::isError()
Tell whether a value is a PEAR error.
PEAR::loadExtension()
OS independant PHP extension load. Remember to take care on the correct extension name for case sensitive OSes.
PEAR::popErrorHandling()
Pop the last error handler used
PEAR::popExpect()
This method pops one element off the expected error codes stack.
PEAR::pushErrorHandling()
Push a new error handler on top of the error handler options stack. With this you can easily override the actual error handler for some code and restore it later with popErrorHandling.
PEAR::raiseError()
This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. If the $mode and $options parameters are not specified, the object's defaults are used.
PEAR::registerShutdownFunc()
Use this function to register a shutdown method for static classes.
PEAR::setErrorHandling()
Sets how errors generated by this object should be handled.
PEAR::staticPopErrorHandling()
PEAR::staticPushErrorHandling()
PEAR::throwError()
Simpler form of raiseError with fewer options. In most cases message, code and userinfo are enough.
PEAR::_PEAR()
Destructor (the emulated type of...). Does nothing right now, but is included for forward compatibility, so subclass destructors should always call it.

Class Details

[line 36]
PEAR commands for registry manipulation


[ Top ]


Class Variables

$commands = array(
        'list' => array(
            'summary' => 'List Installed Packages In The Default Channel',
            'function' => 'doList',
            'shortcut' => 'l',
            'options' => array(
                'channel' => array(
                    'shortopt' => 'c',
                    'doc' => 'list installed packages from this channel',
                    'arg' => 'CHAN',
                    ),'allchannels'=>array('shortopt'=>'a','doc'=>'list installed packages from all channels',),'channelinfo'=>array('shortopt'=>'i','doc'=>'output fully channel-aware data, even on failure',),),'doc'=>'<package>
If invoked without parameters, this command lists the PEAR packages
installed in your php_dir ({config php_dir}).  With a parameter, it
lists the files in a package.
',),'list-files'=>array('summary'=>'List Files In Installed Package','function'=>'doFileList','shortcut'=>'fl','options'=>array(),'doc'=>'<package>
List the files in an installed package.
'),'shell-test'=>array('summary'=>'Shell Script Test','function'=>'doShellTest','shortcut'=>'st','options'=>array(),'doc'=>'<package> [[relation] version]
Tests if a package is installed in the system. Will exit(1) if it is not.
   <relation>   The version comparison operator. One of:
                <, lt, <=, le, >, gt, >=, ge, ==, =, eq, !=, <>, ne
   <version>    The version to compare with
'),'info'=>array('summary'=>'Display information about a package','function'=>'doInfo','shortcut'=>'in','options'=>array(),'doc'=>'<package>
Displays information about a package. The package argument may be a
local package file, an URL to a package file, or the name of an
installed package.'))

[line 38]


Type:   mixed


[ Top ]



Method Detail

PEAR_Command_Registry (Constructor)   [line 101]

PEAR_Command_Registry PEAR_Command_Registry( &$ui, &$config)

PEAR_Command_Registry constructor.
  • Access: public

Parameters:

   &$ui     
   &$config     

[ Top ]

doFileList   [line 247]

void doFileList( $command, $options, $params)


Parameters:

   $command     
   $options     
   $params     

[ Top ]

doInfo   [line 419]

void doInfo( $command, $options, $params)


Parameters:

   $command     
   $options     
   $params     

[ Top ]

doList   [line 113]

void doList( $command, $options, $params)


Parameters:

   $command     
   $options     
   $params     

[ Top ]

doListAll   [line 208]

void doListAll( $command, $options, $params)


Parameters:

   $command     
   $options     
   $params     

[ Top ]

doShellTest   [line 372]

void doShellTest( $command, $options, $params)


Parameters:

   $command     
   $options     
   $params     

[ Top ]


Documentation generated on Wed, 06 Jul 2011 23:31:15 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.