4 require_once
"Services/UIComponent/Button/classes/class.ilButtonBase.php";
20 return new self(self::TYPE_LINK);
35 $this->url = trim($a_value);
55 $this->target = trim($a_value);
80 return ' ' . $this->
getCaption() .
' ';
89 $relAttrVal =
'noopener';
91 if (isset($a_additional_attr[
'rel'])) {
92 if (strpos($a_additional_attr[
'rel'], $relAttrVal) ===
false) {
93 $a_additional_attr[
'rel'] .=
' ' . $relAttrVal;
96 $a_additional_attr[
'rel'] = $relAttrVal;
100 return parent::renderAttributes($a_additional_attr);
108 $attr[
"href"] = $this->
getUrl() ? $this->
getUrl() :
"#";