Overview

Namespaces

  • cli_db
    • propel
      • map
      • om
  • cli_import
  • LoggedPDO
  • None
  • PHP
  • webservices
    • cart
    • combisearch
    • details
      • annotations
        • feature
    • graphs
      • barplot
      • genome
    • listing
    • queue

Classes

  • Console_CommandLine_Action_ExtendedHelp
  • LightOpenID
  • Log_firebugJSON
  • WebService

Interfaces

  • CLI_Command

Functions

  • acquire_database
  • cli_error_handler
  • connect_queue_db
  • create_job
  • display_feature
  • display_feature_by_id
  • display_isoform_by_id
  • display_unigene_by_id
  • download
  • execute_command
  • execute_job
  • execute_query_dir
  • get_db_connection
  • get_job_results
  • get_program_databases
  • myErrorHandler
  • pdo_connect
  • report_results_cleanup
  • requestVal
  • smarty_function_call_webservice
  • smarty_function_dbxreflink
  • smarty_function_interprolink
  • smarty_function_publink
  • smarty_modifier_clean_id
  • split_fasta
  • unzip
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: /**
 4:  * interface for classes implementing a command line application subcommand
 5:  */
 6: interface CLI_Command {
 7: 
 8:     /**
 9:      * name of subcommand
10:      */
11:     static function CLI_commandName();
12: 
13:     /**
14:      * description of subcommand
15:      */
16:     static function CLI_commandDescription();
17: 
18:     /**
19:      * will be applied to autogenerated command --help option
20:      */
21:     static function CLI_longHelp();
22: 
23:     /**
24:      * initiate your Console_Commandline subcommand on variable $parser here
25:      * @param Console_CommandLine $parser
26:      */
27:     static function CLI_getCommand(Console_CommandLine $parser);
28: 
29:     /**
30:      * you may check for required options for your command here
31:      * @param type $options
32:      */
33:     static function CLI_checkRequiredOpts(Console_CommandLine_Result $command);
34:     
35:     /**
36:      * execute code according to the $result
37:      * return true on success, return false to display help, throw Error to display Error Message
38:      * @param Console_CommandLine_Result $command
39:      */
40:     static function CLI_execute(Console_CommandLine_Result $command, Console_CommandLine $parser);
41: }
42: 
43: 
44: require_once 'Console/CommandLine/Action.php';
45: 
46: class Console_CommandLine_Action_ExtendedHelp extends Console_CommandLine_Action {
47: 
48:     public function execute($value = false, $params = array()) {
49:         $helpstr = $this->parser->renderer->usage();
50:         if (isset($params['class']) && class_exists($params['class']))
51:             $helpstr.=call_user_func(array($params['class'], 'CLI_longHelp')) . "\n";
52:         $this->parser->outputter->stdout($helpstr);
53:         exit(0);
54:     }
55: 
56: }
57: 
58: //overwrite CommandLine Help function to provide longHelp support... ouch!
59: Console_CommandLine::$actions['Help'] = array('Console_CommandLine_Action_ExtendedHelp', false);
60: 
61: 
62: ?>
63: 
tbro API documentation generated by ApiGen 2.8.0