Hyperlink
in package
Table of Contents
Methods
- __construct() : mixed
- Create a new Hyperlink.
- getDisplay() : string
- getHashCode() : string
- Get hash code.
- getTooltip() : string
- Get tooltip.
- getTypeHyperlink() : string
- getUrl() : string
- Get URL.
- isInternal() : bool
- Is this hyperlink internal? (to another worksheet or a cell in this worksheet).
- setDisplay() : self
- This can be displayed in cell rather than actual cell contents.
- setTooltip() : $this
- Set tooltip.
- setUrl() : $this
- Set URL.
Methods
__construct()
Create a new Hyperlink.
public
__construct([string $url = '' ][, string $tooltip = '' ]) : mixed
Parameters
- $url : string = ''
-
Url to link the cell to
- $tooltip : string = ''
-
Tooltip to display on the hyperlink
getDisplay()
public
getDisplay() : string
Return values
stringgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getTooltip()
Get tooltip.
public
getTooltip() : string
Return values
stringgetTypeHyperlink()
public
getTypeHyperlink() : string
Return values
stringgetUrl()
Get URL.
public
getUrl() : string
Return values
stringisInternal()
Is this hyperlink internal? (to another worksheet or a cell in this worksheet).
public
isInternal() : bool
Return values
boolsetDisplay()
This can be displayed in cell rather than actual cell contents.
public
setDisplay(string $display) : self
It seems to be ignored by Excel. It may be used by Google Sheets.
Parameters
- $display : string
Return values
selfsetTooltip()
Set tooltip.
public
setTooltip(string $tooltip) : $this
Parameters
- $tooltip : string
Return values
$thissetUrl()
Set URL.
public
setUrl(string $url) : $this
Parameters
- $url : string