CORE POS - IS4C
The CORE POS front end
|
Public Member Functions | |
quickkey ($t, $o, $i="") | |
display ($id="") | |
Public Attributes | |
$title | |
$img | |
$output_text | |
A class for building menus from buttons
This class just displays a button that maps to an input string - essentially a virtual programmable key. If you define an array of these buttons, POS can build a menu automatically.
These arrays should be defined in .php files in the quickkeys/keys/ directory. The files must have numeric names. 0.php will be triggered by QK0, 1.php will be triggered by QK1, etc. The array must be named $my_keys.
quickkey::quickkey | ( | $t, | |
$o, | |||
$i = "" |
|||
) |
Constructor
$t | is the button text. There's no automatic wrapping to include newline(s) if needed |
$o | is what the button does. When the button is selected, this string is fed back into POS as input. |
$i | an image filename. Support for images on buttons instead of text is theoretical and not yet tested. |
quickkey::$img |
An image name.
quickkey::$output_text |
What the button does
quickkey::$title |
The button text.