ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Run.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\RichText
;
4
5
use
PhpOffice\PhpSpreadsheet\Style\Font
;
6
7
class
Run
extends
TextElement
implements
ITextElement
8
{
14
private
$font
;
15
21
public
function
__construct
($pText =
''
)
22
{
23
parent::__construct($pText);
24
// Initialise variables
25
$this->font =
new
Font
();
26
}
27
33
public
function
getFont
()
34
{
35
return
$this->font
;
36
}
37
45
public
function
setFont
(?
Font
$pFont = null)
46
{
47
$this->font = $pFont;
48
49
return
$this;
50
}
51
57
public
function
getHashCode
()
58
{
59
return
md5(
60
$this->
getText
() .
61
$this->font->getHashCode() .
62
__CLASS__
63
);
64
}
65
}
PhpOffice\PhpSpreadsheet\RichText\ITextElement\getText
getText()
Get text.
PhpOffice\PhpSpreadsheet\RichText\Run\getHashCode
getHashCode()
Get hash code.
Definition:
Run.php:57
PhpOffice\PhpSpreadsheet\RichText\Run\__construct
__construct($pText='')
Create a new Run instance.
Definition:
Run.php:21
PhpOffice\PhpSpreadsheet\Style\Font
Definition:
Font.php:5
PhpOffice\PhpSpreadsheet\RichText\ITextElement
Definition:
ITextElement.php:5
PhpOffice\PhpSpreadsheet\RichText\Run
Definition:
Run.php:7
PhpOffice\PhpSpreadsheet\RichText\Run\getFont
getFont()
Get font.
Definition:
Run.php:33
PhpOffice\PhpSpreadsheet\RichText\Run\setFont
setFont(?Font $pFont=null)
Set font.
Definition:
Run.php:45
PhpOffice\PhpSpreadsheet\RichText\TextElement
Definition:
TextElement.php:5
PhpOffice\PhpSpreadsheet\RichText
Definition:
ITextElement.php:3
Font
php
PhpOffice\PhpSpreadsheet\RichText\Run\$font
$font
Definition:
Run.php:14
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
RichText
Run.php
Generated on Thu Jan 16 2025 19:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)