ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
Run.php
Go to the documentation of this file.
1
<?php
34
class
PHPExcel_RichText_Run
extends
PHPExcel_RichText_TextElement
implements
PHPExcel_RichText_ITextElement
35
{
41
private
$_font
;
42
48
public
function
__construct
($pText =
''
)
49
{
50
// Initialise variables
51
$this->
setText
($pText);
52
$this->_font =
new
PHPExcel_Style_Font
();
53
}
54
60
public
function
getFont
() {
61
return
$this->_font
;
62
}
63
71
public
function
setFont
(
PHPExcel_Style_Font
$pFont = null) {
72
$this->_font = $pFont;
73
return
$this;
74
}
75
81
public
function
getHashCode
() {
82
return
md5(
83
$this->
getText
()
84
. $this->_font->getHashCode()
85
. __CLASS__
86
);
87
}
88
92
public
function
__clone
() {
93
$vars = get_object_vars($this);
94
foreach
($vars as
$key
=> $value) {
95
if
(is_object($value)) {
96
$this->
$key
= clone $value;
97
}
else
{
98
$this->
$key
= $value;
99
}
100
}
101
}
102
}
PHPExcel_RichText_Run\setFont
setFont(PHPExcel_Style_Font $pFont=null)
Set font.
Definition:
Run.php:71
PHPExcel_RichText_ITextElement
Definition:
ITextElement.php:34
PHPExcel_RichText_Run\__clone
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition:
Run.php:92
PHPExcel_RichText_Run
Definition:
Run.php:34
PHPExcel_Style_Font
Definition:
Font.php:36
PHPExcel_RichText_TextElement
Definition:
TextElement.php:34
PHPExcel_RichText_Run\getHashCode
getHashCode()
Get hash code.
Definition:
Run.php:81
PHPExcel_RichText_Run\__construct
__construct($pText='')
Create a new PHPExcel_RichText_Run instance.
Definition:
Run.php:48
PHPExcel_RichText_ITextElement\getText
getText()
Get text.
PHPExcel_RichText_Run\getFont
getFont()
Get font.
Definition:
Run.php:60
PHPExcel_RichText_ITextElement\setText
setText($pText='')
Set text.
PHPExcel_RichText_Run\$_font
$_font
Definition:
Run.php:41
$key
$key
Definition:
croninfo.php:18
libs
composer
vendor
phpoffice
phpexcel
Classes
PHPExcel
RichText
Run.php
Generated on Tue Jan 28 2025 19:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)