|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for PhpOffice\PhpSpreadsheet\Style\Protection:
Collaboration diagram for PhpOffice\PhpSpreadsheet\Style\Protection:Public Member Functions | |
| __construct ($isSupervisor=false, $isConditional=false) | |
| Create a new Protection. 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... | |
| getLocked () | |
| Get locked. More... | |
| setLocked ($pValue) | |
| Set locked. More... | |
| getHidden () | |
| Get hidden. More... | |
| setHidden ($pValue) | |
| Set hidden. 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... | |
| getHashCode () | |
| Get hash code. More... | |
Data Fields | |
| const | PROTECTION_INHERIT = 'inherit' |
| Protection styles. More... | |
| const | PROTECTION_PROTECTED = 'protected' |
| const | PROTECTION_UNPROTECTED = 'unprotected' |
Protected Member Functions | |
| exportArray1 () | |
| Abstract method to be implemented in anything which extends this class. More... | |
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 | |
| $locked | |
| $hidden | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Style\Supervisor | |
| $isSupervisor | |
| $parent | |
| $parentPropertyName | |
Definition at line 5 of file Protection.php.
| PhpOffice\PhpSpreadsheet\Style\Protection::__construct | ( | $isSupervisor = false, |
|
$isConditional = false |
|||
| ) |
Create a new Protection.
| 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 36 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\$isSupervisor, and PhpOffice\PhpSpreadsheet\Style\Protection\PROTECTION_INHERIT.
| PhpOffice\PhpSpreadsheet\Style\Protection::applyFromArray | ( | array | $pStyles | ) |
Apply styles from array.
$spreadsheet->getActiveSheet()->getStyle('B2')->getLocked()->applyFromArray( [ 'locked' => TRUE, 'hidden' => FALSE ] );
| array | $pStyles | Array containing style information |
Definition at line 87 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), PhpOffice\PhpSpreadsheet\Style\Protection\getStyleArray(), PhpOffice\PhpSpreadsheet\Style\Protection\setHidden(), and PhpOffice\PhpSpreadsheet\Style\Protection\setLocked().
Here is the call graph for this function:
|
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.
Definition at line 187 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\exportArray2(), PhpOffice\PhpSpreadsheet\Style\Protection\getHidden(), and PhpOffice\PhpSpreadsheet\Style\Protection\getLocked().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
Definition at line 174 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Protection\getSharedComponent().
Here is the call graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::getHidden | ( | ) |
Get hidden.
Definition at line 141 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Protection\$hidden, and PhpOffice\PhpSpreadsheet\Style\Protection\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\exportArray1().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::getLocked | ( | ) |
Get locked.
Definition at line 108 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Protection\$locked, and PhpOffice\PhpSpreadsheet\Style\Protection\getSharedComponent().
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\exportArray1().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::getSharedComponent | ( | ) |
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor.
Definition at line 54 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\getHashCode(), PhpOffice\PhpSpreadsheet\Style\Protection\getHidden(), and PhpOffice\PhpSpreadsheet\Style\Protection\getLocked().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::getStyleArray | ( | $array | ) |
Build style array from subcomponents.
| array | $array |
Definition at line 66 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\applyFromArray(), PhpOffice\PhpSpreadsheet\Style\Protection\setHidden(), and PhpOffice\PhpSpreadsheet\Style\Protection\setLocked().
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::setHidden | ( | $pValue | ) |
Set hidden.
| string | $pValue | see self::PROTECTION_* |
Definition at line 157 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Protection\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\applyFromArray().
Here is the call graph for this function:
Here is the caller graph for this function:| PhpOffice\PhpSpreadsheet\Style\Protection::setLocked | ( | $pValue | ) |
Set locked.
| string | $pValue | see self::PROTECTION_* |
Definition at line 124 of file Protection.php.
References PhpOffice\PhpSpreadsheet\Style\Supervisor\getActiveSheet(), PhpOffice\PhpSpreadsheet\Style\Supervisor\getSelectedCells(), and PhpOffice\PhpSpreadsheet\Style\Protection\getStyleArray().
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\applyFromArray().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 24 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\getHidden().
|
protected |
Definition at line 17 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\getLocked().
| const PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_INHERIT = 'inherit' |
Protection styles.
Definition at line 8 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Style\Protection\__construct(), PhpOffice\PhpSpreadsheet\Reader\Xls\readXf(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeCellStyleDxf(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeCellStyleXf().
| const PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED = 'protected' |
Definition at line 9 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Xls\Worksheet\getDataBlockProtection(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionHidden(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionLocked(), PhpOffice\PhpSpreadsheet\Reader\Xls\readXf(), PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeCellStyleDxf(), and PhpOffice\PhpSpreadsheet\Writer\Xlsx\Style\writeCellStyleXf().
| const PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_UNPROTECTED = 'unprotected' |
Definition at line 10 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionHidden(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionLocked(), and PhpOffice\PhpSpreadsheet\Reader\Xls\readXf().