ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
CellBorder.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Writer\Xls\Style
;
4
5
use
PhpOffice\PhpSpreadsheet\Style\Border
;
6
7
class
CellBorder
8
{
12
protected
static
$styleMap
= [
13
Border::BORDER_NONE
=> 0x00,
14
Border::BORDER_THIN
=> 0x01,
15
Border::BORDER_MEDIUM
=> 0x02,
16
Border::BORDER_DASHED
=> 0x03,
17
Border::BORDER_DOTTED
=> 0x04,
18
Border::BORDER_THICK
=> 0x05,
19
Border::BORDER_DOUBLE
=> 0x06,
20
Border::BORDER_HAIR
=> 0x07,
21
Border::BORDER_MEDIUMDASHED
=> 0x08,
22
Border::BORDER_DASHDOT
=> 0x09,
23
Border::BORDER_MEDIUMDASHDOT
=> 0x0A,
24
Border::BORDER_DASHDOTDOT
=> 0x0B,
25
Border::BORDER_MEDIUMDASHDOTDOT
=> 0x0C,
26
Border::BORDER_SLANTDASHDOT
=> 0x0D,
27
];
28
29
public
static
function
style
(
Border
$border
): int
30
{
31
$borderStyle = $border->
getBorderStyle
();
32
33
if
(is_string($borderStyle) && array_key_exists($borderStyle, self::$styleMap)) {
34
return
self::$styleMap[$borderStyle];
35
}
36
37
return
self::$styleMap[
Border::BORDER_NONE
];
38
}
39
}
PhpOffice\PhpSpreadsheet\Style\Border
Definition:
Border.php:7
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_DOTTED
const BORDER_DOTTED
Definition:
Border.php:14
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_THICK
const BORDER_THICK
Definition:
Border.php:22
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_HAIR
const BORDER_HAIR
Definition:
Border.php:16
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_THIN
const BORDER_THIN
Definition:
Border.php:23
PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellBorder
Definition:
CellBorder.php:7
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_DASHED
const BORDER_DASHED
Definition:
Border.php:13
Border
$border
$border
Definition:
example_057.php:236
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_DOUBLE
const BORDER_DOUBLE
Definition:
Border.php:15
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_MEDIUMDASHED
const BORDER_MEDIUMDASHED
Definition:
Border.php:20
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_DASHDOT
const BORDER_DASHDOT
Definition:
Border.php:11
PhpOffice\PhpSpreadsheet\Writer\Xls\Style
Definition:
CellAlignment.php:3
PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellBorder\style
static style(Border $border)
Definition:
CellBorder.php:29
PhpOffice\PhpSpreadsheet\Style\Border\getBorderStyle
getBorderStyle()
Get Border style.
Definition:
Border.php:142
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_DASHDOTDOT
const BORDER_DASHDOTDOT
Definition:
Border.php:12
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_SLANTDASHDOT
const BORDER_SLANTDASHDOT
Definition:
Border.php:21
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_MEDIUM
const BORDER_MEDIUM
Definition:
Border.php:17
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_MEDIUMDASHDOTDOT
const BORDER_MEDIUMDASHDOTDOT
Definition:
Border.php:19
php
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_NONE
const BORDER_NONE
Definition:
Border.php:10
PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellBorder\$styleMap
static $styleMap
Definition:
CellBorder.php:12
PhpOffice\PhpSpreadsheet\Style\Border\BORDER_MEDIUMDASHDOT
const BORDER_MEDIUMDASHDOT
Definition:
Border.php:18
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Writer
Xls
Style
CellBorder.php
Generated on Thu Jan 16 2025 19:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)