Documentation

Fill extends StyleBase
in package

Table of Contents

Constants

FILL_MAPPINGS  = ['fillType' => [ 'solid' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID, 'gray75' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKGRAY, 'gray50' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_MEDIUMGRAY, 'gray25' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTGRAY, 'gray125' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_GRAY125, 'gray0625' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_GRAY0625, 'horzstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKHORIZONTAL, // horizontal stripe 'vertstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKVERTICAL, // vertical stripe 'reversediagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKUP, // reverse diagonal stripe 'diagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKDOWN, // diagonal stripe 'diagcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKGRID, // diagoanl crosshatch 'thickdiagcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKTRELLIS, // thick diagonal crosshatch 'thinhorzstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTHORIZONTAL, 'thinvertstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTVERTICAL, 'thinreversediagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTUP, 'thindiagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTDOWN, 'thinhorzcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTGRID, // thin horizontal crosshatch 'thindiagcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTTRELLIS, ]]

Methods

parseStyle()  : array<string|int, mixed>
getAttributes()  : SimpleXMLElement
identifyFixedStyleValue()  : bool

Constants

FILL_MAPPINGS

public array<string|int, mixed> FILL_MAPPINGS = ['fillType' => [ 'solid' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID, 'gray75' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKGRAY, 'gray50' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_MEDIUMGRAY, 'gray25' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTGRAY, 'gray125' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_GRAY125, 'gray0625' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_GRAY0625, 'horzstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKHORIZONTAL, // horizontal stripe 'vertstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKVERTICAL, // vertical stripe 'reversediagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKUP, // reverse diagonal stripe 'diagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKDOWN, // diagonal stripe 'diagcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKGRID, // diagoanl crosshatch 'thickdiagcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKTRELLIS, // thick diagonal crosshatch 'thinhorzstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTHORIZONTAL, 'thinvertstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTVERTICAL, 'thinreversediagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTUP, 'thindiagstripe' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTDOWN, 'thinhorzcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTGRID, // thin horizontal crosshatch 'thindiagcross' => \PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTTRELLIS, ]]

Methods

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

        
On this page

Search results