Zend Framework  1.12
Protected Member Functions | Protected Attributes | List of all members
Zend_Barcode_Object_Ean2 Class Reference

Protected Member Functions

 _getDefaultOptions ()
 Default options for Ean2 barcode.
 
 _getParity ($i)
 
- Protected Member Functions inherited from Zend_Barcode_Object_Ean5
 _getDefaultOptions ()
 Default options for Ean5 barcode.
 
 _calculateBarcodeWidth ()
 Width of the barcode (in pixels)
 
 _prepareBarcode ()
 Prepare array to draw barcode.
 
 _getParity ($i)
 
- Protected Member Functions inherited from Zend_Barcode_Object_Ean13
 _getDefaultOptions ()
 Default options for Postnet barcode.
 
 _calculateBarcodeWidth ()
 Width of the barcode (in pixels)
 
 _checkParams ()
 Partial check of interleaved EAN/UPC barcode.
 
 _prepareBarcode ()
 Prepare array to draw barcode.
 
 _drawText ()
 Partial function to draw text.
 
 _drawEan13Text ()
 
- Protected Member Functions inherited from Zend_Barcode_Object_ObjectAbstract
 _getDefaultOptions ()
 Set default options for particular object.
 
 _addLeadingZeros ($text, $withoutChecksum=false)
 Automatically add leading zeros if barcode length is fixed.
 
 _addInstruction (array $instruction)
 Add an instruction in the array of instructions.
 
 _addPolygon (array $points, $color=null, $filled=true)
 Add a polygon drawing instruction in the set of instructions.
 
 _addText ($text, $size, $position, $font, $color, $alignment= 'center', $orientation=0)
 Add a text drawing instruction in the set of instructions.
 
 _checkText ($value=null)
 Check if a text is really provided to barcode.
 
 _checkRatio ($min=2, $max=3)
 Check the ratio between the thick and the thin bar.
 
 _checkFontAndOrientation ()
 Drawing with an angle is just allow TTF font.
 
 _calculateWidth ()
 Width of the result image (before any rotation)
 
 _calculateBarcodeWidth ()
 Calculate the width of the barcode.
 
 _calculateHeight ()
 Height of the result object.
 
 _calculateBarcodeHeight ()
 Height of the barcode.
 
 _rotate ($x1, $y1)
 Apply rotation on a point in X/Y dimensions.
 
 _drawBarcode ()
 Draw the barcode.
 
 _drawBorder ()
 Partial function to draw border.
 
 _drawText ()
 Partial function to draw text.
 
 _validateText ($value, $options=array())
 Standard validation for most of barcode objects.
 
 _prepareBarcode ()
 Each child must prepare the barcode and return a table like array( 0 => array( 0 => int (visible(black) or not(white)) 1 => int (width of the bar) 2 => float (0->1 position from the top of the beginning of the bar in %) 3 => float (0->1 position from the top of the end of the bar in %) ), 1 => ...
 
 _checkParams ()
 Checking of parameters after all settings.
 
 _preDrawBarcode ()
 Allow each child to draw something else.
 
 _postDrawBarcode ()
 Allow each child to draw something else (ex: bearer bars in interleaved 2 of 5 code)
 

Protected Attributes

 $_parities
 
- Protected Attributes inherited from Zend_Barcode_Object_Ean5
 $_parities
 
- Protected Attributes inherited from Zend_Barcode_Object_Ean13
 $_codingMap
 
 $_parities
 
- Protected Attributes inherited from Zend_Barcode_Object_ObjectAbstract
 $_barcodeNamespace = 'Zend_Barcode_Object'
 
 $_instructions = array()
 
 $_type = null
 
 $_height = null
 
 $_width = null
 
 $_barHeight = 50
 
 $_barThinWidth = 1
 
 $_barThickWidth = 3
 
 $_factor = 1
 
 $_foreColor = 0x000000
 
 $_backgroundColor = 0xFFFFFF
 
 $_withBorder = false
 
 $_withQuietZones = true
 
 $_mandatoryQuietZones = false
 
 $_orientation = 0
 
 $_offsetTop = null
 
 $_offsetLeft = null
 
 $_text = null
 
 $_drawText = true
 
 $_stretchText = false
 
 $_font = null
 
 $_fontSize = 10
 
 $_withChecksum = false
 
 $_withChecksumInText = false
 
 $_barcodeLength = null
 
 $_addLeadingZeros = true
 
 $_mandatoryChecksum = false
 
 $_substituteChecksumCharacter = 0
 

Additional Inherited Members

- Public Member Functions inherited from Zend_Barcode_Object_Ean5
 getChecksum ($text)
 Get barcode checksum.
 
 getText ()
 Retrieve text to encode.
 
- Static Public Member Functions inherited from Zend_Barcode_Object_ObjectAbstract
static setBarcodeFont ($font)
 Set the font for all instances of barcode.
 
- Static Protected Attributes inherited from Zend_Barcode_Object_ObjectAbstract
static $_staticFont = null
 

Member Function Documentation

_getDefaultOptions ( )
protected

Default options for Ean2 barcode.

Returns
void
_getParity (   $i)
protected

Member Data Documentation

$_parities
protected
Initial value:
= array(
0 => array('A','A'),
1 => array('A','B'),
2 => array('B','A'),
3 => array('B','B')
)