Documentation

Border extends StyleBase

Table of Contents

BORDER_MAPPINGS  = ['borderStyle' => ['1continuous' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_THIN, '1dash' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DASHED, '1dashdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DASHDOT, '1dashdotdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DASHDOTDOT, '1dot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOTTED, '1double' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOUBLE, '2continuous' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUM, '2dash' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHED, '2dashdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOT, '2dashdotdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOTDOT, '2dot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOTTED, '2double' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOUBLE, '3continuous' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_THICK, '3dash' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHED, '3dashdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOT, '3dashdotdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOTDOT, '3dot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOTTED, '3double' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOUBLE]]
BORDER_POSITIONS  = ['top', 'left', 'bottom', 'right']
parseStyle()  : array<string|int, mixed>
getAttributes()  : SimpleXMLElement
identifyFixedStyleValue()  : bool
parsePosition()  : array<string|int, mixed>

Constants

BORDER_MAPPINGS

public array<string|int, mixed> BORDER_MAPPINGS = ['borderStyle' => ['1continuous' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_THIN, '1dash' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DASHED, '1dashdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DASHDOT, '1dashdotdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DASHDOTDOT, '1dot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOTTED, '1double' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOUBLE, '2continuous' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUM, '2dash' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHED, '2dashdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOT, '2dashdotdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOTDOT, '2dot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOTTED, '2double' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOUBLE, '3continuous' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_THICK, '3dash' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHED, '3dashdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOT, '3dashdotdot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_MEDIUMDASHDOTDOT, '3dot' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOTTED, '3double' => PhpOfficePhpSpreadsheetStyleBorder::BORDER_DOUBLE]]

BORDER_POSITIONS

protected mixed BORDER_POSITIONS = ['top', 'left', 'bottom', 'right']

Methods

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
Return values
bool

parsePosition()

protected parsePosition(string $borderStyleValue, string $diagonalDirection) : array<string|int, mixed>
Parameters
$borderStyleValue : string
$diagonalDirection : string
Return values
array<string|int, mixed>

Search results