31 public function addRow($numCols=NULL){
32 $row=
new HtmlGridRow($this->identifier.
"-row-".(
sizeof($this->rows)+1),$numCols);
43 public function getRow($index,$force=
true){
44 if($index<
sizeof($this->rows)){
45 $result=$this->rows[$index-1];
48 $result=$this->rows[$index-1];
60 for($i=
sizeof($this->rows);$i<$numRows;$i++){
72 public function getCell($row,$col,$force=
true){
73 $row=$this->
getRow($row,$force);
75 $col=$row->getCol($col,$force);
86 $row=$this->
getRow($row,$force);
88 $col=$row->getColAt($col,$force);
94 foreach ($this->rows as $row){
97 return parent::compile($js,$view);
100 foreach ($this->rows as $row){
getCellAt($row, $col, $force=true)
getCell($row, $col, $force=true)
addRow($numCols=NULL)
Add a new row.
addContent($content, $before=false)
setProperty($name, $value)
Composant Twitter Bootstrap Grid system.
getRow($index, $force=true)
return the row at $index
__construct($identifier, $numRows=1, $numCols=NULL)
compile(JsUtils $js=NULL, &$view=NULL)
Inner element for Twitter Bootstrap Grid row.
setNumRows($numRows, $numCols=NULL)
Create $numRows rows.
setContentForAll($content)