public function __construct($strText = '', $strValue = null, $strAnchor = null) { parent::__construct($strText, $strValue); if ($strAnchor) { $this->strAnchor = $strAnchor; } }
public function __construct($strText = '', $strValue = null, $strAnchor = null) { parent::__construct($strText, $strValue); if ($strAnchor) { $this->strAnchor = $strAnchor; } else { $this->strAnchor = '#'; // need a default for attaching clicks and correct styling. } }
public function __construct($strImageUrl, $strAltText, $strText = null, $strAnchor = null, $strId = null) { parent::__construct($strText, $strAnchor, $strId); $this->strImageUrl = $strImageUrl; $this->strAltText = $strAltText; }