Table of Contents
Constants
-
BORDER_MAPPINGS
= ['borderStyle' => ['continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_HAIR, 'dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHED, 'dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOT, 'dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOTDOT, 'dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, 'double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '0continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_HAIR, '0dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHED, '0dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOT, '0dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOTDOT, '0dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '0double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '1continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, '1dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHED, '1dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOT, '1dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOTDOT, '1dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '1double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '2continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUM, '2dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHED, '2dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOT, '2dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOTDOT, '2dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '2double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '3continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THICK, '3dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHED, '3dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOT, '3dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOTDOT, '3dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '3double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE]]
-
BORDER_POSITIONS
= ['top', 'left', 'bottom', 'right']
Methods
-
parseStyle()
: array<string|int, mixed>
-
getAttributes()
: SimpleXMLElement
-
identifyFixedStyleValue()
: bool
-
parsePosition()
: array<string|int, mixed>
BORDER_MAPPINGS
public
array<string|int, mixed>
BORDER_MAPPINGS
= ['borderStyle' => ['continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_HAIR, 'dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHED, 'dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOT, 'dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOTDOT, 'dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, 'double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '0continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_HAIR, '0dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHED, '0dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOT, '0dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOTDOT, '0dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '0double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '1continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN, '1dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHED, '1dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOT, '1dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DASHDOTDOT, '1dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '1double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '2continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUM, '2dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHED, '2dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOT, '2dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOTDOT, '2dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '2double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE, '3continuous' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THICK, '3dash' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHED, '3dashdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOT, '3dashdotdot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_MEDIUMDASHDOTDOT, '3dot' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOTTED, '3double' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_DOUBLE]]
BORDER_POSITIONS
protected
mixed
BORDER_POSITIONS
= ['top', 'left', 'bottom', 'right']
parseStyle()
public
parseStyle(SimpleXMLElement $styleData, array<string|int, mixed> $namespaces) : array<string|int, mixed>
Parameters
-
$styleData
: SimpleXMLElement
-
-
$namespaces
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
getAttributes()
protected
static getAttributes(SimpleXMLElement|null $simple, string $node) : SimpleXMLElement
Parameters
-
$simple
: SimpleXMLElement|null
-
-
$node
: string
-
Return values
SimpleXMLElement
identifyFixedStyleValue()
protected
static identifyFixedStyleValue(array<string|int, mixed> $styleList, string &$styleAttributeValue) : bool
Parameters
-
$styleList
: array<string|int, mixed>
-
-
$styleAttributeValue
: string
-
parsePosition()
protected
parsePosition(string $borderStyleValue, string $diagonalDirection) : array<string|int, mixed>
Parameters
-
$borderStyleValue
: string
-
-
$diagonalDirection
: string
-
Return values
array<string|int, mixed>