ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($isSupervisor=false) | |
Create a new Borders. 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... | |
getLeft () | |
Get Left. More... | |
getRight () | |
Get Right. More... | |
getTop () | |
Get Top. More... | |
getBottom () | |
Get Bottom. More... | |
getDiagonal () | |
Get Diagonal. More... | |
getAllBorders () | |
Get AllBorders (pseudo-border). More... | |
getOutline () | |
Get Outline (pseudo-border). More... | |
getInside () | |
Get Inside (pseudo-border). More... | |
getVertical () | |
Get Vertical (pseudo-border). More... | |
getHorizontal () | |
Get Horizontal (pseudo-border). More... | |
getDiagonalDirection () | |
Get DiagonalDirection. More... | |
setDiagonalDirection ($pValue) | |
Set DiagonalDirection. 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 | DIAGONAL_NONE = 0 |
const | DIAGONAL_UP = 1 |
const | DIAGONAL_DOWN = 2 |
const | DIAGONAL_BOTH = 3 |
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 | |
$left | |
$right | |
$top | |
$bottom | |
$diagonal | |
$diagonalDirection | |
$allBorders | |
$outline | |
$inside | |
$vertical | |
$horizontal | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
$isSupervisor | |
$parent | |
$parentPropertyName | |
Definition at line 7 of file Borders.php.
PhpOffice\PhpSpreadsheet\Style\Borders::__construct | ( | $isSupervisor = false | ) |
Create a new Borders.
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
Definition at line 99 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$isSupervisor, and left.
PhpOffice\PhpSpreadsheet\Style\Borders::applyFromArray | ( | array | $pStyles | ) |
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( [ 'bottom' => [ 'borderStyle' => Border::BORDER_DASHDOT, 'color' => [ 'rgb' => '808080' ] ], 'top' => [ 'borderStyle' => Border::BORDER_DASHDOT, 'color' => [ 'rgb' => '808080' ] ] ] );
$spreadsheet->getActiveSheet()->getStyle('B2')->getBorders()->applyFromArray( [ 'allBorders' => [ 'borderStyle' => Border::BORDER_DASHDOT, 'color' => [ 'rgb' => '808080' ] ] ] );
array | $pStyles | Array containing style information |
Definition at line 197 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Borders\getBottom(), PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonal(), PhpOffice\PhpSpreadsheet\Style\Borders\getLeft(), PhpOffice\PhpSpreadsheet\Style\Borders\getRight(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Style\Borders\getStyleArray(), PhpOffice\PhpSpreadsheet\Style\Borders\getTop(), and PhpOffice\PhpSpreadsheet\Style\Borders\setDiagonalDirection().
|
protected |
Definition at line 409 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), PhpOffice\PhpSpreadsheet\Style\Borders\getBottom(), PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonal(), PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonalDirection(), PhpOffice\PhpSpreadsheet\Style\Borders\getLeft(), PhpOffice\PhpSpreadsheet\Style\Borders\getRight(), and PhpOffice\PhpSpreadsheet\Style\Borders\getTop().
PhpOffice\PhpSpreadsheet\Style\Borders::getAllBorders | ( | ) |
Get AllBorders (pseudo-border).
Only applies to supervisor.
Definition at line 286 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$allBorders.
PhpOffice\PhpSpreadsheet\Style\Borders::getBottom | ( | ) |
Get Bottom.
Definition at line 266 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$bottom.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorders(), PhpOffice\PhpSpreadsheet\Style\Borders\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder().
PhpOffice\PhpSpreadsheet\Style\Borders::getDiagonal | ( | ) |
Get Diagonal.
Definition at line 276 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$diagonal.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Borders\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder().
PhpOffice\PhpSpreadsheet\Style\Borders::getDiagonalDirection | ( | ) |
Get DiagonalDirection.
Definition at line 356 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$diagonalDirection, and PhpOffice\PhpSpreadsheet\Style\Borders\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder().
PhpOffice\PhpSpreadsheet\Style\Borders::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
Definition at line 392 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\getBottom(), PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonal(), PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonalDirection(), PhpOffice\PhpSpreadsheet\Style\Borders\getLeft(), PhpOffice\PhpSpreadsheet\Style\Borders\getRight(), PhpOffice\PhpSpreadsheet\Style\Borders\getSharedComponent(), and PhpOffice\PhpSpreadsheet\Style\Borders\getTop().
PhpOffice\PhpSpreadsheet\Style\Borders::getHorizontal | ( | ) |
Get Horizontal (pseudo-border).
Only applies to supervisor.
Definition at line 342 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$horizontal.
PhpOffice\PhpSpreadsheet\Style\Borders::getInside | ( | ) |
Get Inside (pseudo-border).
Only applies to supervisor.
Definition at line 314 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$inside.
PhpOffice\PhpSpreadsheet\Style\Borders::getLeft | ( | ) |
Get Left.
Definition at line 236 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$left.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorders(), PhpOffice\PhpSpreadsheet\Style\Borders\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder().
PhpOffice\PhpSpreadsheet\Style\Borders::getOutline | ( | ) |
Get Outline (pseudo-border).
Only applies to supervisor.
Definition at line 300 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$outline.
PhpOffice\PhpSpreadsheet\Style\Borders::getRight | ( | ) |
Get Right.
Definition at line 246 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$right.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorders(), PhpOffice\PhpSpreadsheet\Style\Borders\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder().
PhpOffice\PhpSpreadsheet\Style\Borders::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Definition at line 141 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonalDirection(), and PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode().
PhpOffice\PhpSpreadsheet\Style\Borders::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
array | $array |
Definition at line 153 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), and PhpOffice\PhpSpreadsheet\Style\Borders\setDiagonalDirection().
PhpOffice\PhpSpreadsheet\Style\Borders::getTop | ( | ) |
Get Top.
Definition at line 256 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$top.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorders(), PhpOffice\PhpSpreadsheet\Style\Borders\exportArray1(), PhpOffice\PhpSpreadsheet\Style\Borders\getHashCode(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder().
PhpOffice\PhpSpreadsheet\Style\Borders::getVertical | ( | ) |
Get Vertical (pseudo-border).
Only applies to supervisor.
Definition at line 328 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Borders\$vertical.
PhpOffice\PhpSpreadsheet\Style\Borders::setDiagonalDirection | ( | $pValue | ) |
Set DiagonalDirection.
int | $pValue | see self::DIAGONAL_* |
Definition at line 372 of file Borders.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Borders\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\applyFromArray(), and PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle().
|
protected |
Definition at line 62 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getAllBorders().
|
protected |
Definition at line 41 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getBottom().
|
protected |
Definition at line 48 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonal().
|
protected |
Definition at line 55 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getDiagonalDirection().
|
protected |
Definition at line 90 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getHorizontal().
|
protected |
Definition at line 76 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getInside().
|
protected |
Definition at line 20 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getLeft().
|
protected |
Definition at line 69 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getOutline().
|
protected |
Definition at line 27 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getRight().
|
protected |
Definition at line 34 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getTop().
|
protected |
Definition at line 83 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Borders\getVertical().
const PhpOffice\PhpSpreadsheet\Style\Borders::DIAGONAL_BOTH = 3 |
Definition at line 13 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\Style\Border\parsePosition(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), PhpOffice\PhpSpreadsheet\Reader\Xls\readXf(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Xf\writeXf().
const PhpOffice\PhpSpreadsheet\Style\Borders::DIAGONAL_DOWN = 2 |
Definition at line 12 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\Style\Border\parsePosition(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), PhpOffice\PhpSpreadsheet\Reader\Xls\readXf(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Xf\writeXf().
const PhpOffice\PhpSpreadsheet\Style\Borders::DIAGONAL_NONE = 0 |
Definition at line 10 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), and PhpOffice\PhpSpreadsheet\Reader\Xls\readXf().
const PhpOffice\PhpSpreadsheet\Style\Borders::DIAGONAL_UP = 1 |
Definition at line 11 of file Borders.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\Style\Border\parsePosition(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readBorderStyle(), PhpOffice\PhpSpreadsheet\Reader\Xls\readXf(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeBorder(), and PhpOffice\PhpSpreadsheet\Writer\Xls\Xf\writeXf().