public function GetAttributes() { $strToReturn = parent::GetAttributes(); if ($this->strAlternateText) { $strToReturn .= sprintf('alt="%s" ', $this->strAlternateText); } if ($this->strImageUrl) { $strToReturn .= sprintf('src="%s" ', $this->strImageUrl); } return $strToReturn; }
public function GetAttributes($blnIncludeCustom = true, $blnIncludeAction = true) { $strToReturn = parent::GetAttributes($blnIncludeCustom, $blnIncludeAction); if ($this->strAlternateText) { $strToReturn .= sprintf('alt="%s" ', $this->strAlternateText); } if ($this->strImageUrl) { $strToReturn .= sprintf('src="%s" ', $this->strImageUrl); } return $strToReturn; }