@@ -14,6 +14,10 @@ discard block |
||
14 | 14 | */ |
15 | 15 | class HtmlGridRow extends HtmlDoubleElement { |
16 | 16 | private $cols; |
17 | + |
|
18 | + /** |
|
19 | + * @param string $identifier |
|
20 | + */ |
|
17 | 21 | public function __construct($identifier){ |
18 | 22 | parent::__construct($identifier,"div"); |
19 | 23 | $this->setProperty("class", "row"); |
@@ -41,6 +45,9 @@ discard block |
||
41 | 45 | return $result; |
42 | 46 | } |
43 | 47 | |
48 | + /** |
|
49 | + * @param integer $offset |
|
50 | + */ |
|
44 | 51 | public function getColAt($offset,$force=true){ |
45 | 52 | $result=null; |
46 | 53 | foreach ($this->cols as $col){ |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function getCol($index,$force=true){ |
35 | 35 | if($index<sizeof($this->cols)+1){ |
36 | 36 | $result=$this->cols[$index-1]; |
37 | - }else if ($force){ |
|
37 | + } else if ($force){ |
|
38 | 38 | $result=$this->addColAt(CssSize::SIZE_MD,1,$index); |
39 | 39 | $this->cols[]=$result; |
40 | 40 | } |
@@ -16,6 +16,9 @@ discard block |
||
16 | 16 | class HtmlGridSystem extends HtmlDoubleElement { |
17 | 17 | private $rows; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $identifier |
|
21 | + */ |
|
19 | 22 | public function __construct($identifier,$numRows=1){ |
20 | 23 | parent::__construct($identifier,"div"); |
21 | 24 | $this->setProperty("class", "container"); |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | return $result; |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param integer $numRows |
|
54 | + */ |
|
49 | 55 | public function setNumRows($numRows){ |
50 | 56 | for($i=sizeof($this->rows);$i<$numRows;$i++){ |
51 | 57 | $this->addRow(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function getRow($index,$force=true){ |
40 | 40 | if($index<sizeof($this->rows)){ |
41 | 41 | $result=$this->rows[$index-1]; |
42 | - }else if ($force){ |
|
42 | + } else if ($force){ |
|
43 | 43 | $this->setNumRows($index); |
44 | 44 | $result=$this->rows[$index-1]; |
45 | 45 | } |