BarcodeTest.php 863 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. require_once 'Zend/Barcode/Object/ObjectAbstract.php';
  3. class Zend_Barcode_Object_Test extends Zend_Barcode_Object_ObjectAbstract
  4. {
  5. protected function _calculateBarcodeWidth()
  6. {
  7. return 1;
  8. }
  9. public function validateText($value)
  10. {}
  11. protected function _prepareBarcode()
  12. {
  13. return array();
  14. }
  15. protected function _checkParams()
  16. {}
  17. public function addInstruction(array $instruction)
  18. {
  19. $this->_addInstruction($instruction);
  20. }
  21. public function addPolygon(array $points, $color = null, $filled = true)
  22. {
  23. $this->_addPolygon($points, $color, $filled);
  24. }
  25. public function addText($text, $size, $position, $font, $color, $alignment = 'center', $orientation = 0)
  26. {
  27. $this->_addText($text, $size, $position, $font, $color, $alignment, $orientation);
  28. }
  29. }