@@ -14,6 +14,11 @@ discard block |
||
14 | 14 | */ |
15 | 15 | class HtmlGridRow extends HtmlDoubleElement { |
16 | 16 | private $cols; |
17 | + |
|
18 | + /** |
|
19 | + * @param string $identifier |
|
20 | + * @param integer $numCols |
|
21 | + */ |
|
17 | 22 | public function __construct($identifier,$numCols=NULL){ |
18 | 23 | parent::__construct($identifier,"div"); |
19 | 24 | $this->setProperty("class", "row"); |
@@ -85,6 +90,11 @@ discard block |
||
85 | 90 | $this->delete($size,$start+1, $width); |
86 | 91 | } |
87 | 92 | } |
93 | + |
|
94 | + /** |
|
95 | + * @param integer $start |
|
96 | + * @param integer $width |
|
97 | + */ |
|
88 | 98 | public function delete($size=CssSize::SIZE_MD,$start,$width){ |
89 | 99 | while($start<sizeof($this->cols)+1 && $width>0){ |
90 | 100 | $col=$this->getColAt($start,false); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | public function getCol($index,$force=true){ |
43 | 43 | if($index<sizeof($this->cols)+1){ |
44 | 44 | $result=$this->cols[$index-1]; |
45 | - }else if ($force){ |
|
45 | + } else if ($force){ |
|
46 | 46 | $result=$this->addColAt(CssSize::SIZE_MD,1,$index); |
47 | 47 | } |
48 | 48 | return $result; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->cols = array_values($this->cols); |
96 | 96 | $width=$width-$widthCol; |
97 | 97 | } |
98 | - }else{ |
|
98 | + } else{ |
|
99 | 99 | $width=0; |
100 | 100 | } |
101 | 101 | } |
@@ -16,6 +16,10 @@ |
||
16 | 16 | class HtmlGridSystem extends HtmlDoubleElement { |
17 | 17 | private $rows; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $identifier |
|
21 | + * @param integer $numCols |
|
22 | + */ |
|
19 | 23 | public function __construct($identifier,$numRows=1,$numCols=NULL){ |
20 | 24 | parent::__construct($identifier,"div"); |
21 | 25 | $this->setProperty("class", "container-fluid"); |