/library/Zend/Text/Table/Decorator/Ascii.php

https://bitbucket.org/hamidrezas/melobit · PHP · 147 lines · 49 code · 12 blank · 86 comment · 0 complexity · b4da947b1fba31d810cdc08ea68b8530 MD5 · raw file

  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Text_Table
  17. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id: Ascii.php 24594 2012-01-05 21:27:01Z matthew $
  20. */
  21. /**
  22. * @see Zend_Text_Table_Decorator_Interface
  23. */
  24. require_once 'Zend/Text/Table/Decorator/Interface.php';
  25. /**
  26. * ASCII Decorator for Zend_Text_Table
  27. *
  28. * @category Zend
  29. * @package Zend_Text_Table
  30. * @uses Zend_Text_Table_Decorator_Interface
  31. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Text_Table_Decorator_Ascii implements Zend_Text_Table_Decorator_Interface
  35. {
  36. /**
  37. * Defined by Zend_Text_Table_Decorator_Interface
  38. *
  39. * @return string
  40. */
  41. public function getTopLeft()
  42. {
  43. return '+';
  44. }
  45. /**
  46. * Defined by Zend_Text_Table_Decorator_Interface
  47. *
  48. * @return string
  49. */
  50. public function getTopRight()
  51. {
  52. return '+';
  53. }
  54. /**
  55. * Defined by Zend_Text_Table_Decorator_Interface
  56. *
  57. * @return string
  58. */
  59. public function getBottomLeft()
  60. {
  61. return '+';
  62. }
  63. /**
  64. * Defined by Zend_Text_Table_Decorator_Interface
  65. *
  66. * @return string
  67. */
  68. public function getBottomRight()
  69. {
  70. return '+';
  71. }
  72. /**
  73. * Defined by Zend_Text_Table_Decorator_Interface
  74. *
  75. * @return string
  76. */
  77. public function getVertical()
  78. {
  79. return '|';
  80. }
  81. /**
  82. * Defined by Zend_Text_Table_Decorator_Interface
  83. *
  84. * @return string
  85. */
  86. public function getHorizontal()
  87. {
  88. return '-';
  89. }
  90. /**
  91. * Defined by Zend_Text_Table_Decorator_Interface
  92. *
  93. * @return string
  94. */
  95. public function getCross()
  96. {
  97. return '+';
  98. }
  99. /**
  100. * Defined by Zend_Text_Table_Decorator_Interface
  101. *
  102. * @return string
  103. */
  104. public function getVerticalRight()
  105. {
  106. return '+';
  107. }
  108. /**
  109. * Defined by Zend_Text_Table_Decorator_Interface
  110. *
  111. * @return string
  112. */
  113. public function getVerticalLeft()
  114. {
  115. return '+';
  116. }
  117. /**
  118. * Defined by Zend_Text_Table_Decorator_Interface
  119. *
  120. * @return string
  121. */
  122. public function getHorizontalDown()
  123. {
  124. return '+';
  125. }
  126. /**
  127. * Defined by Zend_Text_Table_Decorator_Interface
  128. *
  129. * @return string
  130. */
  131. public function getHorizontalUp()
  132. {
  133. return '+';
  134. }
  135. }