CORE POS - IS4C
The CORE POS front end
Public Member Functions | Static Public Member Functions | List of all members
PostParser Class Reference

Public Member Functions

 parse ($json)
 

Static Public Member Functions

static getPostParseChain ()
 

Detailed Description

The base module for parsing modifying Parser results

Enabled PostParser modules look at the output produced by input Parsers and may modify the result

Member Function Documentation

static PostParser::getPostParseChain ( )
static

Gather postparse modules

Returns
array of PostParser class names

Scan the parse directory for module files. Return an array of available modules.

PostParser::parse (   $json)

Re-write the output value

Parameters
[keyedarray] Parser output value
Returns
[keyed array] Parser output value
The output array has the following keys:
 - main_frame If set, change page to this URL
 - output HTML output to be displayed
 - target Javascript selector string describing which
   element should contain the output
 - redraw_footer True or False. Set to True if
   totals have changed.
 - receipt False or string type. Print a receipt with
   the given type.
  • trans_num string current transaction identifier
    • scale Update the scale display and session variables
    • udpmsg False or string. Send a message to hardware device(s)
    • retry False or string. Try the input again shortly.

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