@@ 106-108 (lines=3) @@ | ||
103 | $count=$this->count(); |
|
104 | $valuesSize=\sizeof($values); |
|
105 | if($force===true){ |
|
106 | for($i=$count;$i<$valuesSize;$i++){ |
|
107 | $this->addItem(new HtmlGridCol($this->identifier."-col-".($this->count()+1),null)); |
|
108 | } |
|
109 | } |
|
110 | $count=\min(array($this->count(),$valuesSize)); |
|
111 | for($i=0;$i<$count;$i++){ |
@@ 114-116 (lines=3) @@ | ||
111 | public function setRowsCount($rowsCount, $colsCount=NULL, $force=false) { |
|
112 | $count=$this->count(); |
|
113 | if ($rowsCount < 2 && $force === false) { |
|
114 | for($i=$count; $i < $colsCount; $i++) { |
|
115 | $this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i)); |
|
116 | } |
|
117 | } else { |
|
118 | if ($this->hasOnlyCols($count)) { |
|
119 | $tmpContent=$this->content; |
|
@@ 150-152 (lines=3) @@ | ||
147 | if ($toCreate === true) { |
|
148 | $count=$this->count(); |
|
149 | if ($count == 0 || $this->hasOnlyCols($count)) { |
|
150 | for($i=$count; $i < $numCols; $i++) { |
|
151 | $this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i, $width)); |
|
152 | } |
|
153 | } else { |
|
154 | for($i=0; $i < $count; $i++) { |
|
155 | $this->getItem($i)->setColsCount($numCols); |