ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
CellFont.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Reader\Xls\Style
;
4
5
use
PhpOffice\PhpSpreadsheet\Style\Font
;
6
7
class
CellFont
8
{
9
public
static
function
escapement
(
Font
$font,
int
$escapement): void
10
{
11
switch
($escapement) {
12
case
0x0001:
13
$font->
setSuperscript
(
true
);
14
15
break
;
16
case
0x0002:
17
$font->
setSubscript
(
true
);
18
19
break
;
20
}
21
}
22
26
protected
static
$underlineMap
= [
27
0x01 =>
Font::UNDERLINE_SINGLE
,
28
0x02 =>
Font::UNDERLINE_DOUBLE
,
29
0x21 =>
Font::UNDERLINE_SINGLEACCOUNTING
,
30
0x22 =>
Font::UNDERLINE_DOUBLEACCOUNTING
,
31
];
32
33
public
static
function
underline
(
Font
$font,
int
$underline): void
34
{
35
if
(array_key_exists($underline, self::$underlineMap)) {
36
$font->
setUnderline
(self::$underlineMap[$underline]);
37
}
38
}
39
}
php
An exception for terminatinating execution or to throw for unit testing.
PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont
Definition:
CellFont.php:8
PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont\underline
static underline(Font $font, int $underline)
Definition:
CellFont.php:33
PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont\escapement
static escapement(Font $font, int $escapement)
Definition:
CellFont.php:9
PhpOffice\PhpSpreadsheet\Reader\Xls\Style\CellFont\$underlineMap
static $underlineMap
Definition:
CellFont.php:26
PhpOffice\PhpSpreadsheet\Style\Font
Definition:
Font.php:6
PhpOffice\PhpSpreadsheet\Style\Font\UNDERLINE_SINGLEACCOUNTING
const UNDERLINE_SINGLEACCOUNTING
Definition:
Font.php:12
PhpOffice\PhpSpreadsheet\Style\Font\setSubscript
setSubscript(bool $pValue)
Set Subscript.
Definition:
Font.php:403
PhpOffice\PhpSpreadsheet\Style\Font\UNDERLINE_DOUBLEACCOUNTING
const UNDERLINE_DOUBLEACCOUNTING
Definition:
Font.php:10
PhpOffice\PhpSpreadsheet\Style\Font\UNDERLINE_DOUBLE
const UNDERLINE_DOUBLE
Definition:
Font.php:9
PhpOffice\PhpSpreadsheet\Style\Font\setUnderline
setUnderline($pValue)
Set Underline.
Definition:
Font.php:441
PhpOffice\PhpSpreadsheet\Style\Font\UNDERLINE_SINGLE
const UNDERLINE_SINGLE
Definition:
Font.php:11
PhpOffice\PhpSpreadsheet\Style\Font\setSuperscript
setSuperscript(bool $pValue)
Set Superscript.
Definition:
Font.php:369
PhpOffice\PhpSpreadsheet\Reader\Xls\Style
Definition:
Border.php:3
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Reader
Xls
Style
CellFont.php
Generated on Thu Oct 2 2025 19:01:10 for ILIAS by
1.9.4 (using
Doxyfile
)