|
| __construct (bool $isSupervisor=false, bool $isConditional=false) |
| Create a new Borders.
|
|
| __clone () |
| Implement PHP __clone to create a deep clone, not just a shallow copy.
|
|
| applyFromArray (array $styleArray) |
| Apply styles from array.
|
|
| bindParent (Spreadsheet|self $parent, ?string $parentPropertyName=null) |
| Bind parent.
|
|
| exportArray () |
| Export style as array.
|
|
| getActiveCell () |
| Get the currently active cell coordinate in currently active sheet.
|
|
| getActiveSheet () |
| Get the currently active sheet.
|
|
| getAllBorders () |
| Get AllBorders (pseudo-border).
|
|
| getBottom () |
| Get Bottom.
|
|
| getDiagonal () |
| Get Diagonal.
|
|
| getDiagonalDirection () |
| Get DiagonalDirection.
|
|
| getHashCode () |
| Get hash code.
|
|
| getHorizontal () |
| Get Horizontal (pseudo-border).
|
|
| getInside () |
| Get Inside (pseudo-border).
|
|
| getIsSupervisor () |
| Is this a supervisor or a cell style component?
|
|
| getLeft () |
| Get Left.
|
|
| getOutline () |
| Get Outline (pseudo-border).
|
|
| getRight () |
| Get Right.
|
|
| getSelectedCells () |
| Get the currently active cell coordinate in currently active sheet.
|
|
| getSharedComponent () |
| Get the shared style component for the currently active cell in currently active sheet.
|
|
| getStyleArray (array $array) |
| Build style array from subcomponents.
|
|
| getTop () |
| Get Top.
|
|
| getVertical () |
| Get Vertical (pseudo-border).
|
|
| setDiagonalDirection (int $direction) |
| Set DiagonalDirection.
|
|
|
const | DIAGONAL_BOTH = 3 |
|
const | DIAGONAL_DOWN = 2 |
|
const | DIAGONAL_NONE = 0 |
|
const | DIAGONAL_UP = 1 |
|
|
| exportArray1 () |
| Abstract method to be implemented in anything which extends this class.
|
|
| exportArray2 (array &$exportedArray, string $index, mixed $objOrValue) |
| Populate array from exportArray1.
|
|
◆ __construct()
PhpOffice\PhpSpreadsheet\Style\Borders::__construct |
( |
bool | $isSupervisor = false, |
|
|
bool | $isConditional = false ) |
Create a new Borders.
- Parameters
-
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
◆ __clone()
PhpOffice\PhpSpreadsheet\Style\Supervisor::__clone |
( |
| ) |
|
|
inherited |
◆ applyFromArray()
PhpOffice\PhpSpreadsheet\Style\Borders::applyFromArray |
( |
array | $styleArray | ) |
|
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' ] ] ] );
- Parameters
-
array | $styleArray | Array containing style information |
- Return values
-
◆ bindParent()
PhpOffice\PhpSpreadsheet\Style\Supervisor::bindParent |
( |
Spreadsheet|self | $parent, |
|
|
?string | $parentPropertyName = null ) |
|
inherited |
Bind parent.
Only used for supervisor.
- Return values
-
◆ exportArray()
PhpOffice\PhpSpreadsheet\Style\Supervisor::exportArray |
( |
| ) |
|
|
finalinherited |
Export style as array.
Available to anything which extends this class: Alignment, Border, Borders, Color, Fill, Font, NumberFormat, Protection, and Style.
◆ exportArray1()
PhpOffice\PhpSpreadsheet\Style\Borders::exportArray1 |
( |
| ) |
|
|
protected |
Abstract method to be implemented in anything which extends this class.
This method invokes exportArray2 with the names and values of all properties to be included in output array, returning that array to exportArray, then to caller.
Reimplemented from PhpOffice\PhpSpreadsheet\Style\Supervisor.
◆ exportArray2()
PhpOffice\PhpSpreadsheet\Style\Supervisor::exportArray2 |
( |
array & | $exportedArray, |
|
|
string | $index, |
|
|
mixed | $objOrValue ) |
|
finalprotectedinherited |
Populate array from exportArray1.
This method is available to anything which extends this class. The parameter index is the key to be added to the array. The parameter objOrValue is either a primitive type, which is the value added to the array, or a Style object to be recursively added via exportArray.
◆ getActiveCell()
PhpOffice\PhpSpreadsheet\Style\Supervisor::getActiveCell |
( |
| ) |
|
|
inherited |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor.
- Return values
-
◆ getActiveSheet()
PhpOffice\PhpSpreadsheet\Style\Supervisor::getActiveSheet |
( |
| ) |
|
|
inherited |
Get the currently active sheet.
Only used for supervisor.
◆ getAllBorders()
PhpOffice\PhpSpreadsheet\Style\Borders::getAllBorders |
( |
| ) |
|
Get AllBorders (pseudo-border).
Only applies to supervisor.
◆ getHashCode()
PhpOffice\PhpSpreadsheet\Style\Borders::getHashCode |
( |
| ) |
|
◆ getHorizontal()
PhpOffice\PhpSpreadsheet\Style\Borders::getHorizontal |
( |
| ) |
|
Get Horizontal (pseudo-border).
Only applies to supervisor.
◆ getInside()
PhpOffice\PhpSpreadsheet\Style\Borders::getInside |
( |
| ) |
|
Get Inside (pseudo-border).
Only applies to supervisor.
◆ getOutline()
PhpOffice\PhpSpreadsheet\Style\Borders::getOutline |
( |
| ) |
|
Get Outline (pseudo-border).
Only applies to supervisor.
◆ getSelectedCells()
PhpOffice\PhpSpreadsheet\Style\Supervisor::getSelectedCells |
( |
| ) |
|
|
inherited |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor.
- Return values
-
◆ getSharedComponent()
PhpOffice\PhpSpreadsheet\Style\Borders::getSharedComponent |
( |
| ) |
|
◆ getStyleArray()
PhpOffice\PhpSpreadsheet\Style\Borders::getStyleArray |
( |
array | $array | ) |
|
◆ getVertical()
PhpOffice\PhpSpreadsheet\Style\Borders::getVertical |
( |
| ) |
|
Get Vertical (pseudo-border).
Only applies to supervisor.
◆ setDiagonalDirection()
PhpOffice\PhpSpreadsheet\Style\Borders::setDiagonalDirection |
( |
int | $direction | ) |
|
Set DiagonalDirection.
- Parameters
-
int | $direction | see self::DIAGONAL_* |
- Return values
-
◆ $allBorders
Border PhpOffice\PhpSpreadsheet\Style\Borders::$allBorders |
|
protected |
All borders pseudo-border.
Only applies to supervisor.
◆ $horizontal
Border PhpOffice\PhpSpreadsheet\Style\Borders::$horizontal |
|
protected |
Horizontal pseudo-border.
Only applies to supervisor.
◆ $inside
Border PhpOffice\PhpSpreadsheet\Style\Borders::$inside |
|
protected |
Inside pseudo-border.
Only applies to supervisor.
◆ $outline
Border PhpOffice\PhpSpreadsheet\Style\Borders::$outline |
|
protected |
Outline pseudo-border.
Only applies to supervisor.
◆ $parent
Spreadsheet Supervisor PhpOffice\PhpSpreadsheet\Style\Supervisor::$parent |
|
protectedinherited |
Parent.
Only used for supervisor.
◆ $vertical
Border PhpOffice\PhpSpreadsheet\Style\Borders::$vertical |
|
protected |
Vertical pseudo-border.
Only applies to supervisor.
The documentation for this class was generated from the following file:
- lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet/Style/Borders.php