Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
|
Public Member Functions | |
__construct (bool $isSupervisor=false) | |
Create a new Supervisor. | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. | |
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. | |
getHashCode () | |
getIsSupervisor () | |
Is this a supervisor or a cell style component? | |
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. | |
Protected Member Functions | |
exportArray1 () | |
Abstract method to be implemented in anything which extends this class. | |
exportArray2 (array &$exportedArray, string $index, mixed $objOrValue) | |
Populate array from exportArray1. | |
Protected Attributes | |
bool | $isSupervisor |
Spreadsheet Supervisor | $parent |
Parent. | |
string | $parentPropertyName = null |
Parent property name. | |
PhpOffice\PhpSpreadsheet\Style\Supervisor::__construct | ( | bool | $isSupervisor = false | ) |
Create a new Supervisor.
bool | $isSupervisor | Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are |
PhpOffice\PhpSpreadsheet\Style\Supervisor::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Reimplemented in PhpOffice\PhpSpreadsheet\Style\Font.
PhpOffice\PhpSpreadsheet\Style\Supervisor::bindParent | ( | Spreadsheet|self | $parent, |
?string | $parentPropertyName = null ) |
Bind parent.
Only used for supervisor.
$this |
|
final |
Export style as array.
Available to anything which extends this class: Alignment, Border, Borders, Color, Fill, Font, NumberFormat, Protection, and Style.
|
abstractprotected |
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 in PhpOffice\PhpSpreadsheet\Style\Alignment, PhpOffice\PhpSpreadsheet\Style\Border, PhpOffice\PhpSpreadsheet\Style\Borders, PhpOffice\PhpSpreadsheet\Style\Color, PhpOffice\PhpSpreadsheet\Style\Fill, PhpOffice\PhpSpreadsheet\Style\Font, PhpOffice\PhpSpreadsheet\Style\NumberFormat, PhpOffice\PhpSpreadsheet\Style\Protection, and PhpOffice\PhpSpreadsheet\Style\Style.
|
finalprotected |
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.
PhpOffice\PhpSpreadsheet\Style\Supervisor::getActiveCell | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor.
string | E.g. 'A1' |
PhpOffice\PhpSpreadsheet\Style\Supervisor::getActiveSheet | ( | ) |
Get the currently active sheet.
Only used for supervisor.
|
inherited |
Implemented in PhpOffice\PhpSpreadsheet\Comment, PhpOffice\PhpSpreadsheet\RichText\RichText, PhpOffice\PhpSpreadsheet\Style\Alignment, PhpOffice\PhpSpreadsheet\Style\Border, PhpOffice\PhpSpreadsheet\Style\Borders, PhpOffice\PhpSpreadsheet\Style\Color, PhpOffice\PhpSpreadsheet\Style\Conditional, PhpOffice\PhpSpreadsheet\Style\Fill, PhpOffice\PhpSpreadsheet\Style\Font, PhpOffice\PhpSpreadsheet\Style\NumberFormat, PhpOffice\PhpSpreadsheet\Style\Protection, PhpOffice\PhpSpreadsheet\Style\Style, PhpOffice\PhpSpreadsheet\Worksheet\BaseDrawing, PhpOffice\PhpSpreadsheet\Worksheet\Drawing, PhpOffice\PhpSpreadsheet\Worksheet\Drawing\Shadow, and PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing.
PhpOffice\PhpSpreadsheet\Style\Supervisor::getSelectedCells | ( | ) |
Get the currently active cell coordinate in currently active sheet.
Only used for supervisor.
string | E.g. 'A1' |
|
abstract |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Reimplemented in PhpOffice\PhpSpreadsheet\Style\Alignment, PhpOffice\PhpSpreadsheet\Style\Border, PhpOffice\PhpSpreadsheet\Style\Borders, PhpOffice\PhpSpreadsheet\Style\Color, PhpOffice\PhpSpreadsheet\Style\Fill, PhpOffice\PhpSpreadsheet\Style\Font, PhpOffice\PhpSpreadsheet\Style\NumberFormat, PhpOffice\PhpSpreadsheet\Style\Protection, and PhpOffice\PhpSpreadsheet\Style\Style.
|
abstract |
Build style array from subcomponents.
Reimplemented in PhpOffice\PhpSpreadsheet\Style\Alignment, PhpOffice\PhpSpreadsheet\Style\Border, PhpOffice\PhpSpreadsheet\Style\Borders, PhpOffice\PhpSpreadsheet\Style\Color, PhpOffice\PhpSpreadsheet\Style\Fill, PhpOffice\PhpSpreadsheet\Style\Font, PhpOffice\PhpSpreadsheet\Style\NumberFormat, PhpOffice\PhpSpreadsheet\Style\Protection, and PhpOffice\PhpSpreadsheet\Style\Style.
|
protected |
Parent.
Only used for supervisor.