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

Public Member Functions

 quickkey ($t, $o, $i="")
 
 display ($id="")
 

Public Attributes

 $title
 
 $img
 
 $output_text
 

Detailed Description

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.

Examples:
271828.php.

Member Function Documentation

quickkey::quickkey (   $t,
  $o,
  $i = "" 
)

Constructor

Parameters
$tis the button text. There's no automatic wrapping to include newline(s) if needed
$ois what the button does. When the button is selected, this string is fed back into POS as input.
$ian image filename. Support for images on buttons instead of text is theoretical and not yet tested.

Member Data Documentation

quickkey::$img

An image name.

quickkey::$output_text

What the button does

quickkey::$title

The button text.


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