Prado\Web\UI\WebControls\THyperLink::getImageUrl PHP Method

getImageUrl() public method

public getImageUrl ( ) : string
return string the location of the image file for the THyperLink
    public function getImageUrl()
    {
        return $this->getViewState('ImageUrl', '');
    }

Usage Example

コード例 #1
0
ファイル: TActiveHyperLink.php プロジェクト: pradosoft/prado
 /**
  * Sets the location of image file of the THyperLink.
  * @param string the image file location
  */
 public function setImageUrl($value)
 {
     if (parent::getImageUrl() === $value) {
         return;
     }
     parent::setImageUrl($value);
     if ($this->getActiveControl()->canUpdateClientSide() && $value !== '') {
         $textWriter = new TTextWriter();
         $renderer = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), $textWriter);
         $this->createImage($value)->renderControl($renderer);
         $this->getPage()->getCallbackClient()->update($this, $textWriter->flush());
     }
 }