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
  • Function
  • Tree
 1: <?php
 2: 
 3: function cli_error_handler($err_code, $err_text, $err_file, $err_line) {
 4:     global $parser;
 5:     switch ($err_code) {
 6:         case E_USER_ERROR:
 7:             $parser->outputter->stderr(sprintf("Error: %s\n", $err_text));
 8:             exit(1);
 9:             break;
10: 
11:         case E_USER_WARNING:
12:             $parser->outputter->stderr(sprintf("Warning: %s\n", $err_text));
13:             break;
14: 
15:         case E_USER_NOTICE:
16:             $parser->outputter->stderr(sprintf("Notice: %s\n", $err_text));
17:             break;
18: 
19:         default:
20:             $parser->outputter->stderr(sprintf("Unknown Error: %s in %s at %s\n", $err_text, $err_file, $err_line));
21:             /* let php handle this error */
22:             return false;
23:             break;
24:     }
25:     /* don't let php handle this error */
26:     return true;
27: }
28: 
29: set_error_handler("cli_error_handler", E_ALL);
30: ?>
31: 
tbro API documentation generated by ApiGen 2.8.0