ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
PHPExcel_Cell_Hyperlink Class Reference
+ Collaboration diagram for PHPExcel_Cell_Hyperlink:

Public Member Functions

 __construct ($pUrl='', $pTooltip='')
 Create a new PHPExcel_Cell_Hyperlink. More...
 
 getUrl ()
 Get URL. More...
 
 setUrl ($value='')
 Set URL. More...
 
 getTooltip ()
 Get tooltip. More...
 
 setTooltip ($value='')
 Set tooltip. More...
 
 isInternal ()
 Is this hyperlink internal? (to another worksheet) More...
 
 getHashCode ()
 Get hash code. More...
 

Private Attributes

 $_url
 
 $_tooltip
 

Detailed Description

Definition at line 36 of file Hyperlink.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Cell_Hyperlink::__construct (   $pUrl = '',
  $pTooltip = '' 
)

Create a new PHPExcel_Cell_Hyperlink.

Parameters
string$pUrlUrl to link the cell to
string$pTooltipTooltip to display on the hyperlink

Definition at line 58 of file Hyperlink.php.

59  {
60  // Initialise member variables
61  $this->_url = $pUrl;
62  $this->_tooltip = $pTooltip;
63  }

Member Function Documentation

◆ getHashCode()

PHPExcel_Cell_Hyperlink::getHashCode ( )

Get hash code.

Returns
string Hash code

Definition at line 119 of file Hyperlink.php.

119  {
120  return md5(
121  $this->_url
122  . $this->_tooltip
123  . __CLASS__
124  );
125  }

◆ getTooltip()

PHPExcel_Cell_Hyperlink::getTooltip ( )

Get tooltip.

Returns
string

Definition at line 90 of file Hyperlink.php.

References $_tooltip.

90  {
91  return $this->_tooltip;
92  }

◆ getUrl()

PHPExcel_Cell_Hyperlink::getUrl ( )

Get URL.

Returns
string

Definition at line 70 of file Hyperlink.php.

References $_url.

70  {
71  return $this->_url;
72  }

◆ isInternal()

PHPExcel_Cell_Hyperlink::isInternal ( )

Is this hyperlink internal? (to another worksheet)

Returns
boolean

Definition at line 110 of file Hyperlink.php.

110  {
111  return strpos($this->_url, 'sheet://') !== false;
112  }

◆ setTooltip()

PHPExcel_Cell_Hyperlink::setTooltip (   $value = '')

Set tooltip.

Parameters
string$value
Returns
PHPExcel_Cell_Hyperlink

Definition at line 100 of file Hyperlink.php.

100  {
101  $this->_tooltip = $value;
102  return $this;
103  }

◆ setUrl()

PHPExcel_Cell_Hyperlink::setUrl (   $value = '')

Set URL.

Parameters
string$value
Returns
PHPExcel_Cell_Hyperlink

Definition at line 80 of file Hyperlink.php.

80  {
81  $this->_url = $value;
82  return $this;
83  }

Field Documentation

◆ $_tooltip

PHPExcel_Cell_Hyperlink::$_tooltip
private

Definition at line 50 of file Hyperlink.php.

Referenced by getTooltip().

◆ $_url

PHPExcel_Cell_Hyperlink::$_url
private

Definition at line 43 of file Hyperlink.php.

Referenced by getUrl().


The documentation for this class was generated from the following file: