ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
Data Fields | |
const | PROTECTION_INHERIT = 'inherit' |
Protection styles. More... | |
const | PROTECTION_PROTECTED = 'protected' |
const | PROTECTION_UNPROTECTED = 'unprotected' |
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 | |
$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.
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().
|
protected |
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().
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().
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().
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().
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().
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().
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().
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().
|
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\Reader\Xls\readXf().
const PhpOffice\PhpSpreadsheet\Style\Protection::PROTECTION_PROTECTED = 'protected' |
Definition at line 9 of file Protection.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionHidden(), PhpOffice\PhpSpreadsheet\Reader\Xlsx\Styles\readProtectionLocked(), and PhpOffice\PhpSpreadsheet\Reader\Xls\readXf().
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().