ILIAS
Release_4_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
TextElement.php
Go to the documentation of this file.
1
<?php
28
if
(!defined(
'PHPEXCEL_ROOT'
)) {
32
define(
'PHPEXCEL_ROOT'
, dirname(__FILE__) .
'/../../'
);
33
}
34
36
require_once PHPEXCEL_ROOT .
'PHPExcel/RichText/ITextElement.php'
;
37
39
require_once PHPEXCEL_ROOT .
'PHPExcel/Style/Font.php'
;
40
41
49
class
PHPExcel_RichText_TextElement
implements
PHPExcel_RichText_ITextElement
50
{
56
private
$_text
;
57
63
public
function
__construct
($pText =
''
)
64
{
65
// Initialise variables
66
$this->_text = $pText;
67
}
68
74
public
function
getText
() {
75
return
$this->_text
;
76
}
77
84
public
function
setText
($pText =
''
) {
85
$this->_text = $pText;
86
return
$this;
87
}
88
94
public
function
getFont
() {
95
return
null;
96
}
97
103
public
function
getHashCode
() {
104
return
md5(
105
$this->_text
106
. __CLASS__
107
);
108
}
109
113
public
function
__clone
() {
114
$vars = get_object_vars($this);
115
foreach
($vars as
$key
=> $value) {
116
if
(is_object($value)) {
117
$this->
$key
= clone $value;
118
}
else
{
119
$this->
$key
= $value;
120
}
121
}
122
}
123
}
Services
Excel
classes
PHPExcel
RichText
TextElement.php
Generated on Wed Apr 27 2016 19:01:36 for ILIAS by
1.8.1.2 (using
Doxyfile
)