1 | <?php |
||
21 | class WebsiteLink extends BaseLink |
||
22 | { |
||
23 | /** |
||
24 | * @var string The default value which is used for website links is `_blank` you can override this property in order to change the default value. |
||
25 | */ |
||
26 | public $defaultTarget = '_blank'; |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function init() |
||
39 | |||
40 | private $_href; |
||
41 | |||
42 | /** |
||
43 | * Set the href value for an external link resource. |
||
44 | * |
||
45 | * @param string $href The external link href value, the http protcol will be ensured. |
||
46 | */ |
||
47 | public function setHref($href) |
||
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | public function getHref() |
||
63 | |||
64 | private $_target; |
||
65 | |||
66 | /** |
||
67 | * Setter method for the link target. |
||
68 | * |
||
69 | * @param string $target A valid html link target attribute value. |
||
70 | */ |
||
71 | public function setTarget($target) |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | public function getTarget() |
||
83 | } |
||
84 |