当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Barcode::render方法代码示例

本文整理汇总了PHP中Zend_Barcode::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Barcode::render方法的具体用法?PHP Zend_Barcode::render怎么用?PHP Zend_Barcode::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Barcode的用法示例。


在下文中一共展示了Zend_Barcode::render方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: set_barcode

 private function set_barcode($code)
 {
     $this->load->library('Zend');
     $this->zend->load('Zend/Barcode');
     //generate barcode
     Zend_Barcode::render('code128', 'image', array('text' => $code), array());
 }
开发者ID:heruprambadi,项目名称:barcode,代码行数:7,代码来源:Barcode.php

示例2: barcodeAction

 public function barcodeAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender();
     $barcodeOptions = array('text' => '28810105487');
     $rendererOptions = array('topOffset' => 50);
     $rendererOptions = array('imageType' => 'gif');
     Zend_Barcode::render('code39', 'image', $barcodeOptions, $rendererOptions);
 }
开发者ID:conectapb,项目名称:sysagroweb,代码行数:9,代码来源:ProdutoController.php

示例3: set_barcode

 function set_barcode($code)
 {
     //load library
     $this->load->library("zend");
     //load in folder Zend
     $this->zend->load('Zend/Barcode');
     //generate barcode
     Zend_Barcode::render('code128', 'image', array('text' => $code), array());
 }
开发者ID:DeRossi,项目名称:Training_CI,代码行数:9,代码来源:Barcode.php

示例4: set_bar

 private function set_bar($text)
 {
     $this->load->library('zend');
     $this->zend->load('Zend/Barcode');
     /*$barcodeOptions = array('text' => $text);
     		$rendererOptions = array();
     		Zend_Barcode::factory('code39', 'image', $barcodeOptions, $rendererOptions)->render();*/
     Zend_Barcode::render('code128', 'image', array('text' => $text), array());
 }
开发者ID:virbo,项目名称:ci_barcode,代码行数:9,代码来源:Welcome.php

示例5: barcode

 public function barcode()
 {
     $code = $this->uri->segment(3, 0);
     //load library
     //load in folder Zend
     $this->zend->load('Zend/Barcode');
     //generate barcode
     $barcode = Zend_Barcode::render('code128', 'image', array('text' => $code), array());
 }
开发者ID:jishnuvyala,项目名称:lis,代码行数:9,代码来源:card.php

示例6: barcode

 private function barcode()
 {
     $code = $this->uri->segment(3, 0);
     //load library
     $this->load->library('zend');
     //load in folder Zend
     $this->zend->load('Zend/Barcode');
     //generate barcode
     Zend_Barcode::render('code39', 'image', array('text' => $code), array());
 }
开发者ID:jishnuvyala,项目名称:lis,代码行数:10,代码来源:test.php

示例7: barcodeAction

 /**
  * This can be used to generate barcodes, use the action
  *
  * /openrosa/barcode/code/<tokenid>
  *
  * example:
  * /openrosa/barocde/code/22pq-grkq
  *
  * The image will be a png
  */
 public function barcodeAction()
 {
     $code = $this->getRequest()->getParam('code', 'empty');
     \Zend_Layout::getMvcInstance()->disableLayout();
     $this->_helper->viewRenderer->setNoRender();
     $barcodeOptions = array('text' => $code);
     $rendererOptions = array();
     $barcode = \Zend_Barcode::render('code128', 'image', $barcodeOptions, $rendererOptions);
     $barcode->render();
 }
开发者ID:GemsTracker,项目名称:gemstracker-library,代码行数:20,代码来源:OpenrosaAction.php

示例8: genBarcode

 public function genBarcode($txt = '', $devMode = false)
 {
     $txt = $devMode ? 'Test Generate Barcode' : $txt;
     $this->CI->load->library('zend');
     $this->CI->zend->load('Zend/Barcode');
     $barcodeOption = array('text' => $txt, 'barHeight' => 30, 'font' => 2);
     $renderOption = array('');
     $render = Zend_Barcode::render('code128', 'image', $barcodeOption, $renderOption);
     return $render;
     //exit;
 }
开发者ID:Nirun,项目名称:HAsong01ha,代码行数:11,代码来源:Util.php

示例9: barcode

 function barcode($code)
 {
     // We load her library's reading Zend.php file that contains the loader
     // For existing files in the folder Zend
     $this->load->library('zend');
     // Load that is in a folder Zend
     $this->zend->load('Zend/Barcode');
     // Generate barcodenya
     // $ Code = 12345abc;
     Zend_Barcode::render('code128', 'image', array('text' => $code), array());
 }
开发者ID:VNOME,项目名称:lims_new,代码行数:11,代码来源:new_test_request_controller.php

示例10: generatecodeAction

 /**
  * Generate barcode for books.
  * 
  * Generate barcode in CODE39.
  * @param string text - The text to be printed as barcode.
  */
 public function generatecodeAction()
 {
     $request = $this->getRequest();
     $text = $request->getParam('text');
     $format = $request->getParam('format', 'CODE39');
     $barcodeOptions = array('text' => $text);
     $rendererOptions = array();
     $this->getResponse()->setHeader('Cache-Control', 'public, proxy-revalidate')->setHeader('Set-Cookie', '', true);
     Zend_Barcode::render($format, 'image', $barcodeOptions, $rendererOptions);
 }
开发者ID:sivarajankumar,项目名称:eduis,代码行数:16,代码来源:BarcodeController.php

示例11: barcode

 function barcode($kode = "")
 {
     $this->load->library('zend');
     $this->zend->load('Zend/Barcode');
     Zend_Barcode::render('code128', 'image', array('text' => $kode, 'factor' => 3), array('imageType' => 'png'));
 }
开发者ID:92bayu,项目名称:juragan,代码行数:6,代码来源:code.php

示例12: barcode

 public function barcode($id)
 {
     $this->load->library('zend');
     $this->zend->load('Zend/Barcode');
     Zend_Barcode::render('code128', 'image', array('text' => $id, 'barHeight' => 100), array());
 }
开发者ID:iturbryan,项目名称:Courier,代码行数:6,代码来源:parcels.php

示例13: gen_barcode

 function gen_barcode($item_code = NULL, $bcs = 'code39', $height = 60, $text = 1)
 {
     $drawText = $text != 1 ? FALSE : TRUE;
     $this->load->library('zend');
     $this->zend->load('Zend/Barcode');
     $barcodeOptions = array('text' => $item_code, 'barHeight' => $height, 'drawText' => $drawText);
     $rendererOptions = array('imageType' => 'png', 'horizontalPosition' => 'center', 'verticalPosition' => 'middle');
     $imageResource = Zend_Barcode::render($bcs, 'image', $barcodeOptions, $rendererOptions);
     return $imageResource;
 }
开发者ID:eugeniusyu,项目名称:myassm,代码行数:10,代码来源:Items.php

示例14: generaCodigoBarra

 /**
  * genera código de barra
  */
 public function generaCodigoBarra()
 {
     // $this->set_barcode( $_GET['codigo'] );
     $codigo = empty($_GET['codigo']) ? '123456890' : $_GET['codigo'];
     //load library
     $this->load->library('zend');
     //load in folder Zend
     $this->zend->load('Zend/Barcode');
     //generate barcode
     Zend_Barcode::render('code128', 'image', array('text' => $codigo), array());
 }
开发者ID:LuisLedger,项目名称:testMiNego,代码行数:14,代码来源:Inventario.php


注:本文中的Zend_Barcode::render方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。