Table of Contents
-
FILL_MAPPINGS
= ['fillType' => [
'solid' => PhpOfficePhpSpreadsheetStyleFill::FILL_SOLID,
'gray75' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKGRAY,
'gray50' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_MEDIUMGRAY,
'gray25' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTGRAY,
'gray125' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_GRAY125,
'gray0625' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_GRAY0625,
'horzstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKHORIZONTAL,
// horizontal stripe
'vertstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKVERTICAL,
// vertical stripe
'reversediagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKUP,
// reverse diagonal stripe
'diagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKDOWN,
// diagonal stripe
'diagcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKGRID,
// diagoanl crosshatch
'thickdiagcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKTRELLIS,
// thick diagonal crosshatch
'thinhorzstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTHORIZONTAL,
'thinvertstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTVERTICAL,
'thinreversediagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTUP,
'thindiagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTDOWN,
'thinhorzcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTGRID,
// thin horizontal crosshatch
'thindiagcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTTRELLIS,
]]
-
parseStyle()
: array<string|int, mixed>
-
getAttributes()
: SimpleXMLElement
-
identifyFixedStyleValue()
: bool
FILL_MAPPINGS
public
array<string|int, mixed>
FILL_MAPPINGS
= ['fillType' => [
'solid' => PhpOfficePhpSpreadsheetStyleFill::FILL_SOLID,
'gray75' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKGRAY,
'gray50' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_MEDIUMGRAY,
'gray25' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTGRAY,
'gray125' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_GRAY125,
'gray0625' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_GRAY0625,
'horzstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKHORIZONTAL,
// horizontal stripe
'vertstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKVERTICAL,
// vertical stripe
'reversediagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKUP,
// reverse diagonal stripe
'diagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKDOWN,
// diagonal stripe
'diagcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKGRID,
// diagoanl crosshatch
'thickdiagcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_DARKTRELLIS,
// thick diagonal crosshatch
'thinhorzstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTHORIZONTAL,
'thinvertstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTVERTICAL,
'thinreversediagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTUP,
'thindiagstripe' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTDOWN,
'thinhorzcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTGRID,
// thin horizontal crosshatch
'thindiagcross' => PhpOfficePhpSpreadsheetStyleFill::FILL_PATTERN_LIGHTTRELLIS,
]]
parseStyle()
public
parseStyle(SimpleXMLElement $styleAttributes) : array<string|int, mixed>
Parameters
-
$styleAttributes
: SimpleXMLElement
-
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
—