Thursday, December 13, 2007

class test


class Paginate
{



function displayObjects()
{
//echo "displsay";
echo $this->containerStartTag;//usually starts the table;
echo "\n".$this->rowStartTag."\n";

while($this->nDisplay < ($this->nRowsMax*$this->nColumnsMax)&& $this->nObjects < $this->nObjectsTotal)
{

if($this->nColumns == $this->nColumnsMax)
{

echo $this->rowEndTag."\n".$this->rowStartTag."\n";

$this->nColumns=0;//reset columns;
}
echo "\t".$this->divisionStartTag.$this->ObjectOpenTag. " id='".$this->ObjectIDprefix.$this->nObjects."'" .$this->ObjectCloseTag.$this->nObjects.$this->divisionEndTag."\n";

$this->nColumns++;
$this->nObjects++;
$this->nDisplay++;
}
echo $this->rowEndTag."\n";
echo $this->containerEndTag."\n";//usually starts the table;
}//end function displayObjects
}
?>

No comments: