CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | List of all members
COREPOS\Fannie\API\item\HobartDgwLib Class Reference
Inheritance diagram for COREPOS\Fannie\API\item\HobartDgwLib:
HobartDgwLib

Static Public Member Functions

static getItemLine ($item_info)
 
static writeItemsToScales ($items, $scales=array())
 
static deleteItemsFromScales ($items)
 
static readItemsFromFile ($filename)
 
static readTextsFromFile ($filename)
 
static labelToAttributes ($label_number)
 
static attributesToLabel ($align, $fixed_weight=false, $graphics=false)
 

Member Function Documentation

static COREPOS\Fannie\API\item\HobartDgwLib::attributesToLabel (   $align,
  $fixed_weight = false,
  $graphics = false 
)
static

Get appropriate label number for given attributes

Parameters
$align[string] vertical or horizontal
$fixed_weight[boolean, default false]
$graphics[boolean, default false]
Returns
[integer] label number
static COREPOS\Fannie\API\item\HobartDgwLib::deleteItemsFromScales (   $items)
static

Delete item(s) from scale

Parameters
$items[string] four digit PLU or [array] of [string] 4 digit PLUs
static COREPOS\Fannie\API\item\HobartDgwLib::getItemLine (   $item_info)
static

Generate CSV line for a given item

Parameters
$item_info[keyed array] of value. Keys correspond to WRITE_ITEM_FIELDS
Returns
[string] CSV formatted line

PLU has a few corresponding fields that always follow:

  1. Barcode Number System
  2. Bar Code
  3. Expanded Text Number
static COREPOS\Fannie\API\item\HobartDgwLib::labelToAttributes (   $label_number)
static

Get attributes for a given label number

Parameters
$label_number[integer]
Returns
keyed array
  • align => vertical or horizontal
  • fixed_weight => boolean
  • graphics => boolean
static COREPOS\Fannie\API\item\HobartDgwLib::readItemsFromFile (   $filename)
static

Import Hobart Data into scaleItems table This one is for "item" data

Parameters
$filename[string] scale-exported data CSV
Returns
[int] number of items imported
static COREPOS\Fannie\API\item\HobartDgwLib::readTextsFromFile (   $filename)
static

Import Hobart Data into scaleItems table This one is for "expanded text" data

Parameters
$filename[string] scale-exported data CSV
Returns
[int] number of items imported
static COREPOS\Fannie\API\item\HobartDgwLib::writeItemsToScales (   $items,
  $scales = array() 
)
static

Write item update CSVs to Data Gate Weigh

Parameters
$items[keyed array] of values. Keys correspond to WRITE_ITEM_FIELDS $items may also be an array of keyed arrays to write multiple items One additional key, ExpandedText, is used to write Expanded Text. This is separate from the Write Item operation so it's excluded from that set of fields.
$scales[keyed array, optional] List of scales items will be written to Must have keys "host", "type", and "dept". May have boolean value with key "new".

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