CORE POS - IS4C
The CORE POS front end
|
Public Member Functions | |
check ($str) | |
parse ($str) | |
isLast () | |
isFirst () | |
doc () | |
Static Public Member Functions | |
static | get_preparse_chain () |
The base module for preparsing input
Preparse modules are all checked for every input. These modueles may modify the input string.
PreParser::check | ( | $str) |
Check whether the module handles this input
$str | The input string |
PreParser::doc | ( | ) |
Display documentation
Ideally you should note what your module it does and what the input format is.
|
static |
Gather preparse modules
Scan the preparse directory for module files. Return an array of available modules.
PreParser::isFirst | ( | ) |
Make this module first
Modules are not run in any guaranteed order. Return True will force this module to be first (or nearly first if multiple modules override this method)
PreParser::isLast | ( | ) |
Make this module last
Modules are not run in any guaranteed order. Return True will force this module to be last.
BE VERY VERY CAREFUL IF YOU OVERRIDE THIS. Quantity is the last preparse module and DefaultTender is the last parse module. Making your own module last will break one of these and probably make a mess.
PreParser::parse | ( | $str) |
Deal with the input
$str | The input string |
Preparse modules should return a string. This value will replace the input string for remaining parsing.