Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Barcode / Object / Error.php
blobee7e00e2db9babd7df6f1809d915bd5b4543adb8
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Barcode\Object;
12 /**
13 * Class for generate Barcode
15 class Error extends AbstractObject
17 /**
18 * All texts are accepted
19 * @param string $value
20 * @return bool
22 public function validateText($value)
24 return true;
27 /**
28 * Height is forced
29 * @param bool $recalculate
30 * @return int
32 public function getHeight($recalculate = false)
34 return 40;
37 /**
38 * Width is forced
39 * @param bool $recalculate
40 * @return int
42 public function getWidth($recalculate = false)
44 return 400;
47 /**
48 * Reset precedent instructions
49 * and draw the error message
50 * @return array
52 public function draw()
54 $this->instructions = array();
55 $this->addText('ERROR:', 10, array(5, 18), $this->font, 0, 'left');
56 $this->addText($this->text, 10, array(5, 32), $this->font, 0, 'left');
57 return $this->instructions;
60 /**
61 * For compatibility reason
62 * @return void
64 protected function prepareBarcode()
68 /**
69 * For compatibility reason
70 * @return void
72 protected function checkSpecificParams()
76 /**
77 * For compatibility reason
78 * @return void
80 protected function calculateBarcodeWidth()