|
| drawPDF () |
|
| __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 () |
|
|
| $BIG_FONT = 40 |
|
| $MED_FONT = 14 |
|
| $SMALL_FONT = 10 |
|
| $SMALLER_FONT = 8 |
|
| $SMALLEST_FONT = 6 |
|
| $footer_image = 'cd_line_16.png' |
|
| $width = 68.67 |
|
| $left = 6.0 |
|
| $items = array() |
|
| $source = '' |
|
| $source_id = 0 |
|
| $data = array() |
|
| $overrides = array() |
|
| $excludes = array() |
|
| $width |
|
| $height |
|
| $top |
|
| $left |
|
| $connection = null |
|
|
| 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) |
|
COREPOS\Fannie\Plugin\CoopDealsSigns\CoopDeals12UpDarkL::drawPDF |
( |
| ) |
|
This block attempts to write the description then checks how many lines it took. If the description was longer than two lines, it whites the whole thing out, drops one font size, and tries again. Calculating effective text size with smart line breaks seems really tough.
The documentation for this class was generated from the following file:
- fannie/modules/plugins2.0/CoopDealsSigns/CoopDeals12UpDarkL.php