1 | <?php |
||
14 | class HtmlTable extends HtmlSemDoubleElement { |
||
15 | private $_colCount; |
||
16 | |||
17 | public function __construct($identifier, $rowCount, $colCount) { |
||
23 | |||
24 | /** |
||
25 | * Returns/create eventually a part of the table corresponding to the $key : thead, tbody or tfoot |
||
26 | * @param string $key |
||
27 | * @return HtmlTableContent |
||
28 | */ |
||
29 | private function getPart($key) { |
||
38 | |||
39 | /** |
||
40 | * Returns/create eventually the body of the table |
||
41 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
42 | */ |
||
43 | public function getBody() { |
||
46 | |||
47 | /** |
||
48 | * Returns/create eventually the header of the table |
||
49 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
50 | */ |
||
51 | public function getHeader() { |
||
54 | |||
55 | /** |
||
56 | * Returns/create eventually the footer of the table |
||
57 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
58 | */ |
||
59 | public function getFooter() { |
||
62 | |||
63 | /** |
||
64 | * Checks if the part corresponding to $key exists |
||
65 | * @param string $key |
||
66 | * @return boolean |
||
67 | */ |
||
68 | public function hasPart($key) { |
||
71 | |||
72 | /** |
||
73 | * |
||
74 | * @param int $rowCount |
||
75 | * @param int $colCount |
||
76 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
77 | */ |
||
78 | public function setRowCount($rowCount, $colCount) { |
||
82 | |||
83 | /** |
||
84 | * Returns the cell (HtmlTD) at position $row,$col |
||
85 | * @param int $row |
||
86 | * @param int $col |
||
87 | * @return \Ajax\semantic\html\content\HtmlTD |
||
88 | */ |
||
89 | public function getCell($row, $col) { |
||
92 | |||
93 | public function setValues($values=array()) { |
||
97 | |||
98 | public function setHeaderValues($values=array()) { |
||
101 | |||
102 | public function setFooterValues($values=array()) { |
||
105 | |||
106 | public function setColValues($colIndex, $values=array()) { |
||
110 | |||
111 | public function setRowValues($rowIndex, $values=array()) { |
||
115 | |||
116 | public function colCenter($colIndex) { |
||
122 | |||
123 | public function colRight($colIndex) { |
||
129 | |||
130 | public function setCelled() { |
||
133 | |||
134 | public function setBasic($very=false) { |
||
139 | |||
140 | public function setCollapsing() { |
||
143 | |||
144 | public function setDefinition() { |
||
147 | } |