ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Hyperlink.php
Go to the documentation of this file.
1<?php
37{
43 private $_url;
44
50 private $_tooltip;
51
58 public function __construct($pUrl = '', $pTooltip = '')
59 {
60 // Initialise member variables
61 $this->_url = $pUrl;
62 $this->_tooltip = $pTooltip;
63 }
64
70 public function getUrl() {
71 return $this->_url;
72 }
73
80 public function setUrl($value = '') {
81 $this->_url = $value;
82 return $this;
83 }
84
90 public function getTooltip() {
91 return $this->_tooltip;
92 }
93
100 public function setTooltip($value = '') {
101 $this->_tooltip = $value;
102 return $this;
103 }
104
110 public function isInternal() {
111 return strpos($this->_url, 'sheet://') !== false;
112 }
113
119 public function getHashCode() {
120 return md5(
121 $this->_url
122 . $this->_tooltip
123 . __CLASS__
124 );
125 }
126}
An exception for terminatinating execution or to throw for unit testing.