/** * Gets the TImage for rendering the ImageUrl property. This is not for * creating dynamic images. * @param string image url. * @return TImage image control for rendering. */ protected function createImage($imageUrl) { $image = new TImage(); $image->setImageUrl($imageUrl); if (($width = $this->getImageWidth()) !== '') { $image->setWidth($width); } if (($height = $this->getImageHeight()) !== '') { $image->setHeight($height); } if (($toolTip = $this->getToolTip()) !== '') { $image->setToolTip($toolTip); } if (($text = $this->getText()) !== '') { $image->setAlternateText($text); } if (($align = $this->getImageAlign()) !== '') { $image->setImageAlign($align); } $image->setBorderWidth('0'); return $image; }