public function __construct($options = null) { if (!function_exists('gd_info')) { throw new Zend_Barcode_Renderer_Exception('Zend_Barcode_Renderer_Image requires the GD extension'); } parent::__construct($options); }
public function __construct($options = null) { if (!function_exists('gd_info')) { require_once LIB_DIR . '/Zend/Barcode/Renderer/Exception.php'; throw new Zend_Barcode_Renderer_Exception('Zend_Barcode_Renderer_Image requires the GD extension'); } parent::__construct($options); }
/** * Draw the barcode in the rendering resource * @return mixed */ public function draw() { parent::draw(); $this->_resource->appendChild($this->_rootElement); return $this->_resource; }