|
| __construct ($items, $source='', $source_id=0) |
|
| setDB ($dbc) |
|
| loadItems () |
|
| drawBarcode ($upc, $pdf, $x, $y, $args=array()) |
|
| listItems () |
|
| updateItem ($upc, $brand, $description) |
|
| saveItems () |
|
| addOverride ($upc, $field_name, $value) |
|
| addExclude ($upc) |
|
| formatPrice ($price, $multiplier=1, $regPrice=0) |
|
| drawPDF () |
|
|
| getDB () |
|
| listFromShelftags () |
|
| listFromBatchBarcodes () |
|
| listFromBatches ($dbc) |
|
| unrollLikeCode ($dbc, $code, $item) |
|
| listFromCurrentRetail ($dbc) |
|
| listFromUpcomingRetail ($dbc) |
|
| listFromCurrentSale ($dbc) |
|
| listFromUpcomingSale ($dbc) |
|
| upcToBitString ($upc) |
|
| updateShelftagItem ($upc, $brand, $description) |
|
| updateBatchBarcodeItem ($upc, $brand, $description) |
|
| updateRealItem ($upc, $brand, $description) |
|
| decodeItem ($item) |
|
| getDateString ($start, $end) |
|
| formatSize ($size, $item) |
|
| printablePrice ($item) |
|
| loadPluginFonts ($pdf) |
|
| fitText ($pdf, $font_size, $text, $spacing) |
|
| twoLineText ($pdf, $text, $y, $spacing) |
|
|
static | formatScalePrice ($price, $multiplier, $regPrice) |
|
static | formatOffString ($price, $multiplier, $regPrice) |
|
static | dollarsOff ($price, $regPrice) |
|
static | percentOff ($price, $regPrice) |
|
|
| $items = array() |
|
| $source = '' |
|
| $source_id = 0 |
|
| $data = array() |
|
| $overrides = array() |
|
| $excludes = array() |
|
| $width |
|
| $height |
|
| $top |
|
| $left |
|
| $connection = null |
|
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
- provided => $items contains all necessary data
- 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::decodeItem |
( |
|
$item | ) |
|
|
protected |
Convert HTML entities in strings to normal characters for PDF output
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