ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($isSupervisor=false, $isConditional=false) | |
Create a new Fill. More... | |
getSharedComponent () | |
Get the shared style component for the currently active cell in currently active sheet. More... | |
getStyleArray ($array) | |
Build style array from subcomponents. More... | |
applyFromArray (array $pStyles) | |
Apply styles from array. More... | |
getFillType () | |
Get Fill Type. More... | |
setFillType ($pValue) | |
Set Fill Type. More... | |
getRotation () | |
Get Rotation. More... | |
setRotation ($pValue) | |
Set Rotation. More... | |
getStartColor () | |
Get Start Color. More... | |
setStartColor (Color $pValue) | |
Set Start Color. More... | |
getEndColor () | |
Get End Color. More... | |
setEndColor (Color $pValue) | |
Set End Color. More... | |
getHashCode () | |
Get hash code. More... | |
Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
__construct ($isSupervisor=false) | |
Create a new Supervisor. More... | |
bindParent ($parent, $parentPropertyName=null) | |
Bind parent. More... | |
getIsSupervisor () | |
Is this a supervisor or a cell style component? More... | |
getActiveSheet () | |
Get the currently active sheet. More... | |
getSelectedCells () | |
Get the currently active cell coordinate in currently active sheet. More... | |
getActiveCell () | |
Get the currently active cell coordinate in currently active sheet. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
exportArray () | |
Export style as array. More... | |
Data Fields | |
const | FILL_NONE = 'none' |
const | FILL_SOLID = 'solid' |
const | FILL_GRADIENT_LINEAR = 'linear' |
const | FILL_GRADIENT_PATH = 'path' |
const | FILL_PATTERN_DARKDOWN = 'darkDown' |
const | FILL_PATTERN_DARKGRAY = 'darkGray' |
const | FILL_PATTERN_DARKGRID = 'darkGrid' |
const | FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal' |
const | FILL_PATTERN_DARKTRELLIS = 'darkTrellis' |
const | FILL_PATTERN_DARKUP = 'darkUp' |
const | FILL_PATTERN_DARKVERTICAL = 'darkVertical' |
const | FILL_PATTERN_GRAY0625 = 'gray0625' |
const | FILL_PATTERN_GRAY125 = 'gray125' |
const | FILL_PATTERN_LIGHTDOWN = 'lightDown' |
const | FILL_PATTERN_LIGHTGRAY = 'lightGray' |
const | FILL_PATTERN_LIGHTGRID = 'lightGrid' |
const | FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal' |
const | FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis' |
const | FILL_PATTERN_LIGHTUP = 'lightUp' |
const | FILL_PATTERN_LIGHTVERTICAL = 'lightVertical' |
const | FILL_PATTERN_MEDIUMGRAY = 'mediumGray' |
$startcolorIndex | |
$endcolorIndex | |
Protected Member Functions | |
exportArray1 () | |
Protected Member Functions inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
exportArray1 () | |
Abstract method to be implemented in anything which extends this class. More... | |
exportArray2 (array &$exportedArray, string $index, $objOrValue) | |
Populate array from exportArray1. More... | |
Protected Attributes | |
$fillType = self::FILL_NONE | |
$rotation = 0 | |
$startColor | |
$endColor | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
$isSupervisor | |
$parent | |
$parentPropertyName | |
PhpOffice\PhpSpreadsheet\Style\Fill::__construct | ( | $isSupervisor = false , |
|
$isConditional = false |
|||
) |
Create a new Fill.
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
bool | $isConditional | Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are |
Definition at line 78 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$isSupervisor, PhpOffice\PhpSpreadsheet\Style\Color\COLOR_BLACK, and PhpOffice\PhpSpreadsheet\Style\Color\COLOR_WHITE.
PhpOffice\PhpSpreadsheet\Style\Fill::applyFromArray | ( | array | $pStyles | ) |
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray( [ 'fillType' => Fill::FILL_GRADIENT_LINEAR, 'rotation' => 0, 'startColor' => [ 'rgb' => '000000' ], 'endColor' => [ 'argb' => 'FFFFFFFF' ] ] );
array | $pStyles | Array containing style information |
Definition at line 142 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Fill\getEndColor(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Style\Fill\getStartColor(), PhpOffice\PhpSpreadsheet\Style\Fill\getStyleArray(), PhpOffice\PhpSpreadsheet\Style\Fill\setFillType(), and PhpOffice\PhpSpreadsheet\Style\Fill\setRotation().
|
protected |
Definition at line 315 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), PhpOffice\PhpSpreadsheet\Style\Fill\getEndColor(), PhpOffice\PhpSpreadsheet\Style\Fill\getFillType(), PhpOffice\PhpSpreadsheet\Style\Fill\getRotation(), and PhpOffice\PhpSpreadsheet\Style\Fill\getStartColor().
PhpOffice\PhpSpreadsheet\Style\Fill::getEndColor | ( | ) |
Get End Color.
Definition at line 269 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Fill\$endColor.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Fill\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Fill\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readNumberFormat(), PhpOffice\PhpSpreadsheet\Style\Fill\setEndColor(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeGradientFill(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writePatternFill().
PhpOffice\PhpSpreadsheet\Style\Fill::getFillType | ( | ) |
Get Fill Type.
Definition at line 173 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Fill\$fillType, and PhpOffice\PhpSpreadsheet\Style\Fill\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFill(), PhpOffice\PhpSpreadsheet\Style\Fill\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Fill\getHashCode(), PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellFill\style(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFill(), PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeFillStyle(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeGradientFill(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writePatternFill().
PhpOffice\PhpSpreadsheet\Style\Fill::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
Definition at line 299 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Fill\getEndColor(), PhpOffice\PhpSpreadsheet\Style\Fill\getFillType(), PhpOffice\PhpSpreadsheet\Style\Fill\getRotation(), PhpOffice\PhpSpreadsheet\Style\Fill\getSharedComponent(), and PhpOffice\PhpSpreadsheet\Style\Fill\getStartColor().
PhpOffice\PhpSpreadsheet\Style\Fill::getRotation | ( | ) |
Get Rotation.
Definition at line 206 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Fill\$rotation, and PhpOffice\PhpSpreadsheet\Style\Fill\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Fill\getHashCode(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeGradientFill().
PhpOffice\PhpSpreadsheet\Style\Fill::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Definition at line 103 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\getFillType(), PhpOffice\PhpSpreadsheet\Style\Fill\getHashCode(), and PhpOffice\PhpSpreadsheet\Style\Fill\getRotation().
PhpOffice\PhpSpreadsheet\Style\Fill::getStartColor | ( | ) |
Get Start Color.
Definition at line 239 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Fill\$startColor.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFill(), PhpOffice\PhpSpreadsheet\Style\Fill\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Fill\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readNumberFormat(), PhpOffice\PhpSpreadsheet\Style\Fill\setStartColor(), PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeFillStyle(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeGradientFill(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writePatternFill().
PhpOffice\PhpSpreadsheet\Style\Fill::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 115 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Fill\setFillType(), and PhpOffice\PhpSpreadsheet\Style\Fill\setRotation().
PhpOffice\PhpSpreadsheet\Style\Fill::setEndColor | ( | Color | $pValue | ) |
Set End Color.
Definition at line 279 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Fill\getEndColor(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getIsSupervisor(), and PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells().
PhpOffice\PhpSpreadsheet\Style\Fill::setFillType | ( | $pValue | ) |
Set Fill Type.
string | $pValue | Fill type, see self::FILL_* |
Definition at line 189 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Fill\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readNumberFormat().
PhpOffice\PhpSpreadsheet\Style\Fill::setRotation | ( | $pValue | ) |
Set Rotation.
float | $pValue |
Definition at line 222 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Fill\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readNumberFormat().
PhpOffice\PhpSpreadsheet\Style\Fill::setStartColor | ( | Color | $pValue | ) |
Set Start Color.
Definition at line 249 of file Fill.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getIsSupervisor(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Fill\getStartColor().
|
protected |
Definition at line 66 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\getEndColor().
|
protected |
Definition at line 45 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\getFillType().
|
protected |
Definition at line 52 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\getRotation().
|
protected |
Definition at line 59 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Fill\getStartColor().
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_GRADIENT_LINEAR = 'linear' |
Definition at line 10 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFill(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeFillStyle().
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_GRADIENT_PATH = 'path' |
Definition at line 11 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeFill(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeFillStyle().
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_NONE = 'none' |
Definition at line 8 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\allConditionalStyles(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFill(), PhpOffice\PhpSpreadsheet\Reader\Xls\Style\FillPattern\lookup(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readNumberFormat(), PhpOffice\PhpSpreadsheet\Writer\Xls\Style\CellFill\style(), PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeFillStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writePatternFill().
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKDOWN = 'darkDown' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKGRAY = 'darkGray' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKGRID = 'darkGrid' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKTRELLIS = 'darkTrellis' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKUP = 'darkUp' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_DARKVERTICAL = 'darkVertical' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_GRAY0625 = 'gray0625' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_GRAY125 = 'gray125' |
Definition at line 20 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\allConditionalStyles(), and PhpOffice\PhpSpreadsheet\Reader\Slk\styleSettings().
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTDOWN = 'lightDown' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTGRAY = 'lightGray' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTGRID = 'lightGrid' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTUP = 'lightUp' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_LIGHTVERTICAL = 'lightVertical' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_PATTERN_MEDIUMGRAY = 'mediumGray' |
const PhpOffice\PhpSpreadsheet\Style\Fill::FILL_SOLID = 'solid' |
Definition at line 9 of file Fill.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Html\applyInlineStyle(), PhpOffice\PhpSpreadsheet\Reader\Html\processDomElementBgcolor(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readNumberFormat(), and PhpOffice\PhpSpreadsheet\Writer\Ods\Cell\Style\writeFillStyle().