Source for file AGridLayout.php
Documentation is available at AGridLayout.php
* Lays out the widgets in a grid
* @author Jordan Wambaugh <jordan@wambaugh.org>
* adds widgets to the layout.
* @param AWidget $widget the parent widget
* @param int $row the row (starting at 0)
* @param int $col the column (starting at 0)
* @param int|null$colspan Number of columns the widget spans. Optional.
public function addWidget(AWidget $widget, $row,$col,$colspan=
null){
$this->__widgets[$row][$col]['widget']=
$widget;
$this->__widgets[$row][$col]['colspan']=
$colspan;
//get the max number of columns
for($y=
0;$y <
$max;$y++
){
//prevent annoying notice errors with this if
$buffer.=
($span=
$this->__widgets[$x][$y]['colspan']) ?
" colspan='$span'>" :
">";
Documentation generated on Fri, 11 Jul 2008 13:28:39 -0400 by phpDocumentor 1.4.2