1 | <?php |
||
17 | class HtmlGrid extends HtmlCollection{ |
||
18 | |||
19 | private $_createCols; |
||
20 | private $_colSizing=true; |
||
21 | public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true){ |
||
34 | |||
35 | /** |
||
36 | * Create $numRows rows |
||
37 | * @param int $numRows |
||
38 | * @param int $numCols |
||
39 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
40 | */ |
||
41 | public function setNumRows($numRows,$numCols=NULL){ |
||
48 | |||
49 | /** |
||
50 | * return the row at $index |
||
51 | * @param int $index |
||
52 | * @return \Ajax\semantic\html\collections\HtmlGridRow |
||
53 | */ |
||
54 | public function getRow($index){ |
||
57 | |||
58 | /** |
||
59 | * @param int $row |
||
60 | * @param int $col |
||
61 | * @return \Ajax\semantic\html\collections\HtmlGridCol |
||
62 | */ |
||
63 | public function getCell($row,$col){ |
||
70 | |||
71 | /** |
||
72 | * Adds dividers between columns ($vertically=false) or between rows ($vertically=true) |
||
73 | * @param boolean $vertically |
||
74 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
75 | */ |
||
76 | public function setDivided($vertically=false){ |
||
80 | |||
81 | /** |
||
82 | * Divides rows into cells |
||
83 | * @param boolean $internal true for internal cells |
||
84 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
85 | */ |
||
86 | public function setCelled($internal=false){ |
||
90 | |||
91 | /** |
||
92 | * automatically resize all elements to split the available width evenly |
||
93 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
94 | */ |
||
95 | public function setEqualWidth(){ |
||
98 | |||
99 | /** |
||
100 | * Adds vertical or/and horizontal gutters |
||
101 | * @param string $value |
||
102 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
103 | */ |
||
104 | public function setPadded($value=NULL){ |
||
109 | |||
110 | /** |
||
111 | * @param boolean $very |
||
112 | * @return \Ajax\semantic\html\collections\HtmlGrid |
||
113 | */ |
||
114 | public function setRelaxed($very=false){ |
||
118 | |||
119 | public function setTextAlignment($value=TextAlignment::LEFT){ |
||
122 | |||
123 | public function setVerticalAlignment($value=VerticalAlignment::MIDDLE){ |
||
126 | |||
127 | /** |
||
128 | * {@inheritDoc} |
||
129 | * @see \Ajax\common\html\HtmlCollection::createItem() |
||
130 | */ |
||
131 | protected function createItem($value){ |
||
137 | |||
138 | public function setValues($values){ |
||
151 | |||
152 | } |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.