PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 2.2.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v2.2.0
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/phpoffice/phpexcel/Classes/PHPExcel/Cell/Hyperlink.php +30 -28 3.1.12.2.0 View file →
@@ -1,10 +1,9 @@
1 1 <?php
2 -
3 2 /**
4 - * PHPExcel_Cell_Hyperlink
3 + * PHPExcel
5 4 *
6 - * Copyright (c) 2006 - 2015 PHPExcel
5 + * Copyright (c) 2006 - 2014 PHPExcel
7 6 *
8 7 * This library is free software; you can redistribute it and/or
9 8 * modify it under the terms of the GNU Lesser General Public
10 9 * License as published by the Free Software Foundation; either
@@ -20,12 +19,21 @@
20 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 20 *
22 21 * @category PHPExcel
23 22 * @package PHPExcel_Cell
24 - * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
23 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
25 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
26 25 * @version ##VERSION##, ##DATE##
27 26 */
27 +
28 +
29 +/**
30 + * PHPExcel_Cell_Hyperlink
31 + *
32 + * @category PHPExcel
33 + * @package PHPExcel_Cell
34 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 + */
28 36 class PHPExcel_Cell_Hyperlink
29 37 {
30 38 /**
31 39 * URL to link the cell to
@@ -31,9 +39,9 @@
31 39 * URL to link the cell to
32 40 *
33 41 * @var string
34 42 */
35 - private $url;
43 + private $_url;
36 44
37 45 /**
38 46 * Tooltip to display on the hyperlink
39 47 *
@@ -38,9 +46,9 @@
38 46 * Tooltip to display on the hyperlink
39 47 *
40 48 * @var string
41 49 */
42 - private $tooltip;
50 + private $_tooltip;
43 51
44 52 /**
45 53 * Create a new PHPExcel_Cell_Hyperlink
46 54 *
@@ -49,10 +57,10 @@
49 57 */
50 58 public function __construct($pUrl = '', $pTooltip = '')
51 59 {
52 60 // Initialise member variables
53 - $this->url = $pUrl;
54 - $this->tooltip = $pTooltip;
61 + $this->_url = $pUrl;
62 + $this->_tooltip = $pTooltip;
55 63 }
56 64
57 65 /**
58 66 * Get URL
@@ -58,11 +66,10 @@
58 66 * Get URL
59 67 *
60 68 * @return string
61 69 */
62 - public function getUrl()
63 - {
64 - return $this->url;
70 + public function getUrl() {
71 + return $this->_url;
65 72 }
66 73
67 74 /**
68 75 * Set URL
@@ -69,11 +76,10 @@
69 76 *
70 77 * @param string $value
71 78 * @return PHPExcel_Cell_Hyperlink
72 79 */
73 - public function setUrl($value = '')
74 - {
75 - $this->url = $value;
80 + public function setUrl($value = '') {
81 + $this->_url = $value;
76 82 return $this;
77 83 }
78 84
79 85 /**
@@ -80,11 +86,10 @@
80 86 * Get tooltip
81 87 *
82 88 * @return string
83 89 */
84 - public function getTooltip()
85 - {
86 - return $this->tooltip;
90 + public function getTooltip() {
91 + return $this->_tooltip;
87 92 }
88 93
89 94 /**
90 95 * Set tooltip
@@ -91,11 +96,10 @@
91 96 *
92 97 * @param string $value
93 98 * @return PHPExcel_Cell_Hyperlink
94 99 */
95 - public function setTooltip($value = '')
96 - {
97 - $this->tooltip = $value;
100 + public function setTooltip($value = '') {
101 + $this->_tooltip = $value;
98 102 return $this;
99 103 }
100 104
101 105 /**
@@ -102,11 +106,10 @@
102 106 * Is this hyperlink internal? (to another worksheet)
103 107 *
104 108 * @return boolean
105 109 */
106 - public function isInternal()
107 - {
108 - return strpos($this->url, 'sheet://') !== false;
110 + public function isInternal() {
111 + return strpos($this->_url, 'sheet://') !== false;
109 112 }
110 113
111 114 /**
112 115 * Get hash code
@@ -112,13 +115,12 @@
112 115 * Get hash code
113 116 *
114 117 * @return string Hash code
115 118 */
116 - public function getHashCode()
117 - {
119 + public function getHashCode() {
118 120 return md5(
119 - $this->url .
120 - $this->tooltip .
121 - __CLASS__
121 + $this->_url
122 + . $this->_tooltip
123 + . __CLASS__
122 124 );
123 125 }
124 126 }