ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Hyperlink.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Cell
;
4
5
class
Hyperlink
6
{
12
private
$url
;
13
19
private
$tooltip
;
20
27
public
function
__construct
($pUrl =
''
, $pTooltip =
''
)
28
{
29
// Initialise member variables
30
$this->url = $pUrl;
31
$this->tooltip = $pTooltip;
32
}
33
39
public
function
getUrl
()
40
{
41
return
$this->url
;
42
}
43
51
public
function
setUrl
($value)
52
{
53
$this->url = $value;
54
55
return
$this;
56
}
57
63
public
function
getTooltip
()
64
{
65
return
$this->tooltip
;
66
}
67
75
public
function
setTooltip
($value)
76
{
77
$this->tooltip = $value;
78
79
return
$this;
80
}
81
87
public
function
isInternal
()
88
{
89
return
strpos($this->url,
'sheet://'
) !==
false
;
90
}
91
95
public
function
getTypeHyperlink
()
96
{
97
return
$this->
isInternal
() ?
''
:
'External'
;
98
}
99
105
public
function
getHashCode
()
106
{
107
return
md5(
108
$this->url .
109
$this->tooltip .
110
__CLASS__
111
);
112
}
113
}
PhpOffice\PhpSpreadsheet\Cell\Hyperlink
Definition:
Hyperlink.php:5
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\$tooltip
$tooltip
Definition:
Hyperlink.php:19
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\setTooltip
setTooltip($value)
Set tooltip.
Definition:
Hyperlink.php:75
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\isInternal
isInternal()
Is this hyperlink internal? (to another worksheet).
Definition:
Hyperlink.php:87
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\getTooltip
getTooltip()
Get tooltip.
Definition:
Hyperlink.php:63
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\setUrl
setUrl($value)
Set URL.
Definition:
Hyperlink.php:51
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\getHashCode
getHashCode()
Get hash code.
Definition:
Hyperlink.php:105
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\getUrl
getUrl()
Get URL.
Definition:
Hyperlink.php:39
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\getTypeHyperlink
getTypeHyperlink()
Definition:
Hyperlink.php:95
php
PhpOffice\PhpSpreadsheet\Cell
Definition:
AddressHelper.php:3
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\__construct
__construct($pUrl='', $pTooltip='')
Create a new Hyperlink.
Definition:
Hyperlink.php:27
PhpOffice\PhpSpreadsheet\Cell\Hyperlink\$url
$url
Definition:
Hyperlink.php:12
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Cell
Hyperlink.php
Generated on Thu Jan 16 2025 19:01:45 for ILIAS by
1.8.13 (using
Doxyfile
)