CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | List of all members
FannieDispatch Class Reference

Static Public Member Functions

static errorHandler ($errno, $errstr, $errfile='', $errline=0, $errcontext=array())
 
static exceptionHandler ($exception)
 
static catchFatal ()
 
static logUsage (SQLManager $dbc, $op_db)
 
static i18n ()
 
static setErrorHandlers ()
 
static conditionalExec ($custom_errors=true)
 

Member Function Documentation

static FannieDispatch::catchFatal ( )
static

Try to print a call stack on fatal errors if the environment / configuration permits

static FannieDispatch::conditionalExec (   $custom_errors = true)
static

Render the current page if appropriate The page is only shown if it's accessed directly rather than through an include().

Parameters
$custom_errors\xrefitemdeprecated 1.
static FannieDispatch::errorHandler (   $errno,
  $errstr,
  $errfile = '',
  $errline = 0,
  $errcontext = array() 
)
static

Error handler function. Can register as PHP's error handling function and use Fannie's output format

static FannieDispatch::exceptionHandler (   $exception)
static

Exception handler function. Can register as PHP's exception handling function and use Fannie's output format

static FannieDispatch::logUsage ( SQLManager  $dbc,
  $op_db 
)
static

Log page load in usageStats table

Parameters
$dbc[SQLManager] database connection
Returns
[boolean] success / fail

The documentation for this class was generated from the following file: