1 | <?php |
||
16 | class HtmlGrid extends HtmlCollection{ |
||
17 | |||
18 | private $_createCols; |
||
19 | private $_colSizing=true; |
||
20 | public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true){ |
||
33 | |||
34 | /** |
||
35 | * Create $numRows rows |
||
36 | * @param int $numRows |
||
37 | * @param int $numCols |
||
38 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
39 | */ |
||
40 | public function setNumRows($numRows,$numCols=NULL){ |
||
47 | |||
48 | /** |
||
49 | * return the row at $index |
||
50 | * @param int $index |
||
51 | * @return \Ajax\semantic\html\collections\HtmlGridRow |
||
52 | */ |
||
53 | public function getRow($index){ |
||
56 | |||
57 | /** |
||
58 | * @param int $row |
||
59 | * @param int $col |
||
60 | * @return \Ajax\semantic\html\collections\HtmlGridCol |
||
61 | */ |
||
62 | public function getCell($row,$col){ |
||
69 | |||
70 | /** |
||
71 | * Adds dividers between columns ($vertically=false) or between rows ($vertically=true) |
||
72 | * @param boolean $vertically |
||
73 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
74 | */ |
||
75 | public function setDivided($vertically=false){ |
||
79 | |||
80 | /** |
||
81 | * Divides rows into cells |
||
82 | * @param boolean $internal true for internal cells |
||
83 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
84 | */ |
||
85 | public function setCelled($internal=false){ |
||
89 | |||
90 | /** |
||
91 | * automatically resize all elements to split the available width evenly |
||
92 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
93 | */ |
||
94 | public function setEqualWidth(){ |
||
97 | |||
98 | /** |
||
99 | * Adds vertical or/and horizontal gutters |
||
100 | * @param string $value |
||
101 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
102 | */ |
||
103 | public function setPadded($value=NULL){ |
||
108 | |||
109 | /** |
||
110 | * @param boolean $very |
||
111 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
112 | */ |
||
113 | public function setRelaxed($very=false){ |
||
117 | |||
118 | public function setTextAlignment($value=TextAlignment::LEFT){ |
||
121 | |||
122 | /** |
||
123 | * {@inheritDoc} |
||
124 | * @see \Ajax\common\html\HtmlCollection::createItem() |
||
125 | */ |
||
126 | protected function createItem($value){ |
||
132 | |||
133 | } |