TableInterface.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. namespace ZN\Components;
  3. interface TableInterface
  4. {
  5. //----------------------------------------------------------------------------------------------------
  6. //
  7. // Yazar : Ozan UYKUN <ozanbote@windowslive.com> | <ozanbote@gmail.com>
  8. // Site : www.zntr.net
  9. // Lisans : The MIT License
  10. // Telif Hakkı: Copyright (c) 2012-2016, zntr.net
  11. //
  12. //----------------------------------------------------------------------------------------------------
  13. //----------------------------------------------------------------------------------------------------
  14. // Attr
  15. //----------------------------------------------------------------------------------------------------
  16. //
  17. // @param array $attributes
  18. //
  19. //----------------------------------------------------------------------------------------------------
  20. public function attr($attributes);
  21. //----------------------------------------------------------------------------------------------------
  22. // Cell
  23. //----------------------------------------------------------------------------------------------------
  24. //
  25. // @param numeric $spacing
  26. // @param numeric $padding
  27. //
  28. //----------------------------------------------------------------------------------------------------
  29. public function cell($spacing, $padding);
  30. //----------------------------------------------------------------------------------------------------
  31. // Cell Spacing
  32. //----------------------------------------------------------------------------------------------------
  33. //
  34. // @param numeric $spacing
  35. //
  36. //----------------------------------------------------------------------------------------------------
  37. public function cellSpacing($spacing);
  38. //----------------------------------------------------------------------------------------------------
  39. // Cell Padding
  40. //----------------------------------------------------------------------------------------------------
  41. //
  42. // @param numeric $padding
  43. //
  44. //----------------------------------------------------------------------------------------------------
  45. public function cellPadding($padding);
  46. //----------------------------------------------------------------------------------------------------
  47. // Border
  48. //----------------------------------------------------------------------------------------------------
  49. //
  50. // @param numeric $border
  51. // @param string $color
  52. //
  53. //----------------------------------------------------------------------------------------------------
  54. public function border($border, $color);
  55. //----------------------------------------------------------------------------------------------------
  56. // Border Size
  57. //----------------------------------------------------------------------------------------------------
  58. //
  59. // @param numeric $border
  60. //
  61. //----------------------------------------------------------------------------------------------------
  62. public function borderSize($border);
  63. //----------------------------------------------------------------------------------------------------
  64. // Border Color
  65. //----------------------------------------------------------------------------------------------------
  66. //
  67. // @param string $color
  68. //
  69. //----------------------------------------------------------------------------------------------------
  70. public function borderColor($color);
  71. //----------------------------------------------------------------------------------------------------
  72. // Align
  73. //----------------------------------------------------------------------------------------------------
  74. //
  75. // @param string $align
  76. //
  77. //----------------------------------------------------------------------------------------------------
  78. public function align($align);
  79. //----------------------------------------------------------------------------------------------------
  80. // Width
  81. //----------------------------------------------------------------------------------------------------
  82. //
  83. // @param numeric $width
  84. //
  85. //----------------------------------------------------------------------------------------------------
  86. public function width($width);
  87. //----------------------------------------------------------------------------------------------------
  88. // Height
  89. //----------------------------------------------------------------------------------------------------
  90. //
  91. // @param numeric $height
  92. //
  93. //----------------------------------------------------------------------------------------------------
  94. public function height($height);
  95. //----------------------------------------------------------------------------------------------------
  96. // Size
  97. //----------------------------------------------------------------------------------------------------
  98. //
  99. // @param numeric $width
  100. // @param numeric $height
  101. //
  102. //----------------------------------------------------------------------------------------------------
  103. public function size($width, $height);
  104. //----------------------------------------------------------------------------------------------------
  105. // Css
  106. //----------------------------------------------------------------------------------------------------
  107. //
  108. // @param string $css
  109. //
  110. //----------------------------------------------------------------------------------------------------
  111. public function css($css);
  112. //----------------------------------------------------------------------------------------------------
  113. // Style
  114. //----------------------------------------------------------------------------------------------------
  115. //
  116. // @param array $attributes
  117. //
  118. //----------------------------------------------------------------------------------------------------
  119. public function style($attributes);
  120. //----------------------------------------------------------------------------------------------------
  121. // Background
  122. //----------------------------------------------------------------------------------------------------
  123. //
  124. // @param mixed $background
  125. //
  126. //----------------------------------------------------------------------------------------------------
  127. public function background($background);
  128. //----------------------------------------------------------------------------------------------------
  129. // Bg Color
  130. //----------------------------------------------------------------------------------------------------
  131. //
  132. // @param string $bgColor
  133. //
  134. //----------------------------------------------------------------------------------------------------
  135. public function bgColor($bgColor);
  136. //----------------------------------------------------------------------------------------------------
  137. // Content
  138. //----------------------------------------------------------------------------------------------------
  139. //
  140. // @param void
  141. //
  142. //----------------------------------------------------------------------------------------------------
  143. public function content();
  144. //----------------------------------------------------------------------------------------------------
  145. // Create
  146. //----------------------------------------------------------------------------------------------------
  147. //
  148. // @param void
  149. //
  150. //----------------------------------------------------------------------------------------------------
  151. public function create();
  152. }