|
| __construct ($items, $source='', $source_id=0) |
|
| loadItems () |
|
| drawBarcode ($upc, $pdf, $x, $y, $args=array()) |
|
| listItems () |
|
| updateItem ($upc, $brand, $description) |
|
| saveItems () |
|
| addOverride ($upc, $field_name, $value) |
|
| drawPDF () |
|
|
| $items = array() |
|
| $source = '' |
|
| $source_id = 0 |
|
| $data = array() |
|
| $overrides = array() |
|
COREPOS\Fannie\API\item\FannieSignage::__construct |
( |
|
$items, |
|
|
|
$source = '' , |
|
|
|
$source_id = 0 |
|
) |
| |
constructor
- Parameters
-
$items | [array] of upcs |
$source | [optional] string shelftags, batchbarcodes, batch, or empty.
- shelftags => data is in shelftags table
- batchbarcodes => data is in batchBarcodes table
- batch => get data from normal product and vendor tables but use batch(es) for price
- empty => get data from normal product and vendor tables
|
$source_id | [optional]
- for shelftags, shelftags.id
- for batchbarcodes, array of batchIDs
- for batch, array of batchIDs
- for empty: 0 => use current price 1 => use upcoming retail from price change batch 2 => use current sale price 3 => use upcoming sale price from sale batch
|
COREPOS\Fannie\API\item\FannieSignage::drawBarcode |
( |
|
$upc, |
|
|
|
$pdf, |
|
|
|
$x, |
|
|
|
$y, |
|
|
|
$args = array() |
|
) |
| |
Draw barcode on given PDF
- Parameters
-
$upc | [string] barcode value (UPC or EAN) |
$pdf | [object] FPDF instance |
$x | [numeric] x-coordinate of barcode |
$y | [numeric] y-coordinate of barcode |
$args | [keyed array] of extra options
- height [default 16] height of the barcode
- width [default 0.35] width of each bar
- align [default C] horizontal alignment of barcode number (L/C/R)
- valign [default B] vertical alignment of barcode number (T, "top", above barcode) or (B, "botton", below barcode)
- prefix [default empty] prepend value to barcode number
- suffix [default empty] append value to barcode number
- font [default Arial] name of font for barcode number
- fontsize [default 9] size of font for barcode number
|
The documentation for this class was generated from the following file:
- fannie/classlib2.0/item/FannieSignage.php