1 | <?php |
||
14 | class HtmlTable extends HtmlSemDoubleElement { |
||
15 | private $_colCount; |
||
16 | public function __construct($identifier, $rowCount, $colCount) { |
||
22 | |||
23 | /** |
||
24 | * Returns/create eventually a part of the table corresponding to the $key : thead, tbody or tfoot |
||
25 | * @param string $key |
||
26 | * @return HtmlTableContent |
||
27 | */ |
||
28 | private function getPart($key){ |
||
37 | |||
38 | /** |
||
39 | * Returns/create eventually the body of the table |
||
40 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
41 | */ |
||
42 | public function getBody(){ |
||
45 | |||
46 | /** |
||
47 | * Returns/create eventually the header of the table |
||
48 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
49 | */ |
||
50 | public function getHeader(){ |
||
53 | |||
54 | /** |
||
55 | * Returns/create eventually the footer of the table |
||
56 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
57 | */ |
||
58 | public function getFooter(){ |
||
61 | |||
62 | /** |
||
63 | * Checks if the part corresponding to $key exists |
||
64 | * @param string $key |
||
65 | * @return boolean |
||
66 | */ |
||
67 | public function hasPart($key){ |
||
70 | |||
71 | /** |
||
72 | * @param int $rowCount |
||
73 | * @param int $colCount |
||
74 | * @return \Ajax\semantic\html\content\table\HtmlTableContent |
||
75 | */ |
||
76 | public function setRowCount($rowCount, $colCount) { |
||
80 | |||
81 | /** |
||
82 | * Returns the cell (HtmlTD) at position $row,$col |
||
83 | * @param int $row |
||
84 | * @param int $col |
||
85 | * @return \Ajax\semantic\html\content\HtmlTD |
||
86 | */ |
||
87 | public function getCell($row,$col){ |
||
90 | |||
91 | public function setValues($values=array()){ |
||
95 | |||
96 | public function setColValues($colIndex,$values=array()){ |
||
100 | |||
101 | public function colCenter($colIndex){ |
||
107 | |||
108 | public function setCelled(){ |
||
111 | } |