sImgURL = $sNewImgURL; } /** * Set the width and height of the image * @param $iNewWidth Image width * @param $iNewHeigth Image heigth */ function setImgSize($iNewWidth, $iNewHeight) { $this->iImgWidth = $iNewWidth; $this->iImgHeight = $iNewHeight; } /** * Renders the image * * @return String to be used in HTML */ function & render() { if (isset($this->sImgWidth) && isset($this->sImgWidth)) { return "sImgURL."\" width=\"". $this->iImgWidth."\" height=\"".$this->iImgHeight."\" align=\"center\" />"; } return "sImgURL."\" align=\"center\" border =\"1\" />"; } } ?>