|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to version 1.0 of the Zend Framework |
|
8 * license, that is bundled with this package in the file LICENSE.txt, and |
|
9 * is available through the world-wide-web at the following URL: |
|
10 * http://framework.zend.com/license/new-bsd. If you did not receive |
|
11 * a copy of the Zend Framework license and are unable to obtain it |
|
12 * through the world-wide-web, please send a note to license@zend.com |
|
13 * so we can mail you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Barcode |
|
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
19 * @version $Id: Exception.php 22999 2010-09-23 19:43:14Z mikaelkael $ |
|
20 */ |
|
21 /** |
|
22 * Zend_Exception |
|
23 */ |
|
24 require_once 'Zend/Exception.php'; |
|
25 |
|
26 /** |
|
27 * Zend_Barcode_Exception |
|
28 * |
|
29 * @category Zend |
|
30 * @package Zend_Barcode |
|
31 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
32 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
33 */ |
|
34 class Zend_Barcode_Exception extends Zend_Exception |
|
35 { |
|
36 /** |
|
37 * Is this exception renderable? |
|
38 * @var bool |
|
39 */ |
|
40 protected $_isRenderable = true; |
|
41 |
|
42 /** |
|
43 * Set renderable flag |
|
44 * |
|
45 * @param bool $flag |
|
46 * @return Zend_Barcode_Exception |
|
47 */ |
|
48 public function setIsRenderable($flag) |
|
49 { |
|
50 $this->_isRenderable = (bool) $flag; |
|
51 return $this; |
|
52 } |
|
53 |
|
54 /** |
|
55 * Retrieve renderable flag |
|
56 * |
|
57 * @return bool |
|
58 */ |
|
59 public function isRenderable() |
|
60 { |
|
61 return $this->_isRenderable; |
|
62 } |
|
63 } |