| Conditions | 4 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function __construct( $identifier,$numCols=NULL,$colSizing=false){ |
||
| 11 | parent::__construct( $identifier,"div"); |
||
| 12 | $this->setClass("row"); |
||
| 13 | $width=null; |
||
| 14 | if(isset($numCols)){ |
||
| 15 | $numCols=min(16,$numCols); |
||
| 16 | $numCols=max(1,$numCols); |
||
| 17 | if($colSizing) |
||
| 18 | $width=(int)(16/$numCols); |
||
| 19 | else |
||
| 20 | $this->_colSize=16/$numCols; |
||
| 21 | for ($i=0;$i<$numCols;$i++){ |
||
| 22 | $this->addItem($width); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 40 | } |