コード例 #1
0
ファイル: Image.php プロジェクト: kobmaki/icingaweb2
 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);
 }
コード例 #2
0
ファイル: Image.php プロジェクト: Kliwer/lms
 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);
 }
コード例 #3
0
ファイル: Svg.php プロジェクト: netvlies/zf
 /**
  * Draw the barcode in the rendering resource
  * @return mixed
  */
 public function draw()
 {
     parent::draw();
     $this->_resource->appendChild($this->_rootElement);
     return $this->_resource;
 }