File indexing completed on 2024-12-22 05:36:29
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to version 1.0 of the Zend Framework 0008 * license, that is bundled with this package in the file LICENSE.txt, and 0009 * is available through the world-wide-web at the following URL: 0010 * http://framework.zend.com/license/new-bsd. If you did not receive 0011 * a copy of the Zend Framework license and are unable to obtain it 0012 * through the world-wide-web, please send a note to license@zend.com 0013 * so we can mail you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Barcode 0017 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0018 * @license http://framework.zend.com/license/new-bsd New BSD License 0019 * @version $Id$ 0020 */ 0021 /** 0022 * Zend_Exception 0023 */ 0024 // require_once 'Zend/Exception.php'; 0025 0026 /** 0027 * Zend_Barcode_Exception 0028 * 0029 * @category Zend 0030 * @package Zend_Barcode 0031 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0032 * @license http://framework.zend.com/license/new-bsd New BSD License 0033 */ 0034 class Zend_Barcode_Exception extends Zend_Exception 0035 { 0036 /** 0037 * Is this exception renderable? 0038 * @var bool 0039 */ 0040 protected $_isRenderable = true; 0041 0042 /** 0043 * Set renderable flag 0044 * 0045 * @param bool $flag 0046 * @return Zend_Barcode_Exception 0047 */ 0048 public function setIsRenderable($flag) 0049 { 0050 $this->_isRenderable = (bool) $flag; 0051 return $this; 0052 } 0053 0054 /** 0055 * Retrieve renderable flag 0056 * 0057 * @return bool 0058 */ 0059 public function isRenderable() 0060 { 0061 return $this->_isRenderable; 0062 } 0063 }