File indexing completed on 2024-12-29 05:28:07
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Text_Table 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 /** 0023 * @see Zend_Text_Table_Decorator_Interface 0024 */ 0025 // require_once 'Zend/Text/Table/Decorator/Interface.php'; 0026 0027 /** 0028 * ASCII Decorator for Zend_Text_Table 0029 * 0030 * @category Zend 0031 * @package Zend_Text_Table 0032 * @uses Zend_Text_Table_Decorator_Interface 0033 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0034 * @license http://framework.zend.com/license/new-bsd New BSD License 0035 */ 0036 class Zend_Text_Table_Decorator_Ascii implements Zend_Text_Table_Decorator_Interface 0037 { 0038 /** 0039 * Defined by Zend_Text_Table_Decorator_Interface 0040 * 0041 * @return string 0042 */ 0043 public function getTopLeft() 0044 { 0045 return '+'; 0046 } 0047 0048 /** 0049 * Defined by Zend_Text_Table_Decorator_Interface 0050 * 0051 * @return string 0052 */ 0053 public function getTopRight() 0054 { 0055 return '+'; 0056 } 0057 0058 /** 0059 * Defined by Zend_Text_Table_Decorator_Interface 0060 * 0061 * @return string 0062 */ 0063 public function getBottomLeft() 0064 { 0065 return '+'; 0066 } 0067 0068 /** 0069 * Defined by Zend_Text_Table_Decorator_Interface 0070 * 0071 * @return string 0072 */ 0073 public function getBottomRight() 0074 { 0075 return '+'; 0076 } 0077 0078 /** 0079 * Defined by Zend_Text_Table_Decorator_Interface 0080 * 0081 * @return string 0082 */ 0083 public function getVertical() 0084 { 0085 return '|'; 0086 } 0087 0088 /** 0089 * Defined by Zend_Text_Table_Decorator_Interface 0090 * 0091 * @return string 0092 */ 0093 public function getHorizontal() 0094 { 0095 return '-'; 0096 } 0097 0098 /** 0099 * Defined by Zend_Text_Table_Decorator_Interface 0100 * 0101 * @return string 0102 */ 0103 public function getCross() 0104 { 0105 return '+'; 0106 } 0107 0108 /** 0109 * Defined by Zend_Text_Table_Decorator_Interface 0110 * 0111 * @return string 0112 */ 0113 public function getVerticalRight() 0114 { 0115 return '+'; 0116 } 0117 0118 /** 0119 * Defined by Zend_Text_Table_Decorator_Interface 0120 * 0121 * @return string 0122 */ 0123 public function getVerticalLeft() 0124 { 0125 return '+'; 0126 } 0127 0128 /** 0129 * Defined by Zend_Text_Table_Decorator_Interface 0130 * 0131 * @return string 0132 */ 0133 public function getHorizontalDown() 0134 { 0135 return '+'; 0136 } 0137 0138 /** 0139 * Defined by Zend_Text_Table_Decorator_Interface 0140 * 0141 * @return string 0142 */ 0143 public function getHorizontalUp() 0144 { 0145 return '+'; 0146 } 0147 }