@@ 110-112 (lines=3) @@ | ||
107 | public function setRowsCount($rowsCount, $colsCount=NULL, $force=false) { |
|
108 | $count=$this->count(); |
|
109 | if ($rowsCount < 2 && $force === false) { |
|
110 | for($i=$count; $i < $colsCount; $i++) { |
|
111 | $this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i)); |
|
112 | } |
|
113 | } else { |
|
114 | if ($this->hasOnlyCols($count)) { |
|
115 | $tmpContent=$this->content; |
|
@@ 146-148 (lines=3) @@ | ||
143 | if ($toCreate == true) { |
|
144 | $count=$this->count(); |
|
145 | if ($count == 0 || $this->hasOnlyCols($count)) { |
|
146 | for($i=$count; $i < $numCols; $i++) { |
|
147 | $this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i, $width)); |
|
148 | } |
|
149 | } else { |
|
150 | for($i=0; $i < $count; $i++) { |
|
151 | $this->getItem($i)->setColsCount($numCols); |