aLinks = $aNewLinks; $this->aLinksText = $aNewLinksText; $this->aLinkImages = $aNewLinkImages; $this->iRows = $iNewRows; $this->iColumns = $iNewColumns; $this->iLinkType = $iNewLinkType; } /** * Build the HTML string used to render the object * * @return String of HTML used to render object */ function & render() { $iArraySize = array_count_values($this->aLinks); $iArrayCount = 0; $sToRender = "\n"; //build the table for ($i = 0; $i < $this->iRows; $i++) { $sToRender = $sToRender . "\n"; for ($j = 0; $j < $this->iColumns; $j++) { $sToRender = $sToRender . "\n"; } $sToRender = $sToRender . "\n"; } $sToRender = $sToRender . "
"; if ($iArrayCount < $iArraySize) { $sToRender = $sToRender . "aLinks[$iArrayCount] . "\" />"; if ($this->iLinkType == TEXT) { $sToRender = $sToRender . $this->aLinksText[$iArrayCount]; } else if ($this->iLinkType == IMAGE) { $oImage = new PatternImage($this->aLinkImages[$iArrayCount]); $sToRender = $sToRender . $oImage->render(); } $sToRender = $sToRender . ""; $iArrayCount++; } $sToRender = $sToRender . "
\n"; return $sToRender; } } ?>