當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。