Beispiel #1
0
 /**
  * Constructor
  *
  * @param array|\Traversable $options
  * @throws RendererCreationException
  */
 public function __construct($options = null)
 {
     if (!function_exists('gd_info')) {
         throw new RendererCreationException(__CLASS__ . ' requires the GD extension');
     }
     parent::__construct($options);
 }
Beispiel #2
0
 /**
  * Constructor
  * @param array|\Zend\Config\Config $options
  * @return void
  */
 public function __construct($options = null)
 {
     if (!function_exists('gd_info')) {
         throw new RendererCreationException('\\Zend\\Barcode\\Renderer\\Image requires the GD extension');
     }
     parent::__construct($options);
 }
Beispiel #3
0
 /**
  * Draw the barcode in the rendering resource
  * @return DOMDocument
  */
 public function draw()
 {
     parent::draw();
     $this->resource->appendChild($this->rootElement);
     return $this->resource;
 }