CORE POS - Fannie
The CORE POS back end
Public Member Functions | Protected Attributes | List of all members
COREPOS\Fannie\Plugin\CoopDealsSigns\CoopDeals12UpDarkL Class Reference
Inheritance diagram for COREPOS\Fannie\Plugin\CoopDealsSigns\CoopDeals12UpDarkL:
COREPOS\Fannie\API\item\FannieSignage COREPOS\Fannie\Plugin\CoopDealsSigns\CoopDeals12UpLightL

Public Member Functions

 drawPDF ()
 
- Public Member Functions inherited from COREPOS\Fannie\API\item\FannieSignage
 __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 ()
 

Protected Attributes

 $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
 
- Protected Attributes inherited from COREPOS\Fannie\API\item\FannieSignage
 $items = array()
 
 $source = ''
 
 $source_id = 0
 
 $data = array()
 
 $overrides = array()
 
 $excludes = array()
 
 $width
 
 $height
 
 $top
 
 $left
 
 $connection = null
 

Additional Inherited Members

- Protected Member Functions inherited from COREPOS\Fannie\API\item\FannieSignage
 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 Protected Member Functions inherited from COREPOS\Fannie\API\item\FannieSignage
static formatScalePrice ($price, $multiplier, $regPrice)
 
static formatOffString ($price, $multiplier, $regPrice)
 
static dollarsOff ($price, $regPrice)
 
static percentOff ($price, $regPrice)
 

Member Function Documentation

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: