@@ 34-42 (lines=9) @@ | ||
31 | return $col->setOffset($size, max($offset,sizeof($this->cols)+1)); |
|
32 | } |
|
33 | ||
34 | public function getCol($index,$force=true){ |
|
35 | if($index<sizeof($this->cols)+1){ |
|
36 | $result=$this->cols[$index-1]; |
|
37 | }else if ($force){ |
|
38 | $result=$this->addColAt(CssSize::SIZE_MD,1,$index); |
|
39 | $this->cols[]=$result; |
|
40 | } |
|
41 | return $result; |
|
42 | } |
|
43 | ||
44 | public function getColAt($offset,$force=true){ |
|
45 | $result=null; |
@@ 39-47 (lines=9) @@ | ||
36 | * @param int $index |
|
37 | * @return \Ajax\bootstrap\html\content\HtmlGridRow |
|
38 | */ |
|
39 | public function getRow($index,$force=true){ |
|
40 | if($index<sizeof($this->rows)){ |
|
41 | $result=$this->rows[$index-1]; |
|
42 | }else if ($force){ |
|
43 | $this->setNumRows($index); |
|
44 | $result=$this->rows[$index-1]; |
|
45 | } |
|
46 | return $result; |
|
47 | } |
|
48 | ||
49 | public function setNumRows($numRows){ |
|
50 | for($i=sizeof($this->rows);$i<$numRows;$i++){ |