CORE POS - IS4C
The CORE POS front end
Public Member Functions | List of all members
SpecialUPC Class Reference
Inheritance diagram for SpecialUPC:
CouponCode DatabarCoupon HouseCoupon MagicPLU MemberBarcode SpecialOrder

Public Member Functions

 isSpecial ($upc)
 
 is_special ($upc)
 
 handle ($upc, $json)
 

Detailed Description

Handler module for non-product UPCs

If a scanned UPC does not correspond to an entry in the products table, enabled SpecialUPC modules can supplement processing.

CouponCode is the most universal example.

Member Function Documentation

SpecialUPC::handle (   $upc,
  $json 
)

Process the UPC

Parameters
$upcThe UPC
$jsonKeyed array See the Parser class for array format
Returns
Keyed array See the Parser class for array format

These modules supplement parsing to make UPC handling more customizable. The module will be invoked within a Paser object and hence uses the same return format.

SpecialUPC::isSpecial (   $upc)

Check function

Parameters
$upcThe UPC
Returns
  • True This module handles this UPC
  • False This module doesn't handle this UPC

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