Prado\Web\UI\WebControls\THyperLink::createImage PHP 메소드

createImage() 보호된 메소드

Gets the TImage for rendering the ImageUrl property. This is not for creating dynamic images.
protected createImage ( $imageUrl ) : TImage
리턴 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;
    }