|
@@ 56-58 (lines=3) @@
|
| 53 |
|
public function setRowsCount($rowsCount,$colsCount=NULL){ |
| 54 |
|
$count=$this->count(); |
| 55 |
|
if($rowsCount<2){ |
| 56 |
|
for($i=$count;$i<$colsCount;$i++){ |
| 57 |
|
$this->addItem(new HtmlGridCol("col-".$this->identifier."-".$i)); |
| 58 |
|
} |
| 59 |
|
}else{ |
| 60 |
|
if($this->hasOnlyCols($count)){ |
| 61 |
|
$tmpContent=$this->content; |
|
@@ 83-85 (lines=3) @@
|
| 80 |
|
if($toCreate==true){ |
| 81 |
|
$count=$this->count(); |
| 82 |
|
if($count==0 || $this->hasOnlyCols($count)){ |
| 83 |
|
for($i=$count;$i<$numCols;$i++){ |
| 84 |
|
$this->addItem(new HtmlGridCol("col-".$this->identifier."-".$i)); |
| 85 |
|
} |
| 86 |
|
}else{ |
| 87 |
|
for($i=0;$i<$count;$i++){ |
| 88 |
|
$this->getItem($i)->setNumCols($numCols); |