42 if (!$isConditional) {
56 return $this->parent->getSharedComponent()->getProtection();
68 return [
'protection' => $array];
89 if ($this->isSupervisor) {
92 if (isset($pStyles[
'locked'])) {
95 if (isset($pStyles[
'hidden'])) {
110 if ($this->isSupervisor) {
126 if ($this->isSupervisor) {
130 $this->locked = $pValue;
143 if ($this->isSupervisor) {
159 if ($this->isSupervisor) {
163 $this->hidden = $pValue;
176 if ($this->isSupervisor) {
193 return $exportedArray;
An exception for terminatinating execution or to throw for unit testing.
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
const PROTECTION_INHERIT
Protection styles.
getHashCode()
Get hash code.
setLocked($pValue)
Set locked.
getStyleArray($array)
Build style array from subcomponents.
exportArray1()
Abstract method to be implemented in anything which extends this class.
setHidden($pValue)
Set hidden.
__construct($isSupervisor=false, $isConditional=false)
Create a new Protection.
applyFromArray(array $pStyles)
Apply styles from array.
const PROTECTION_UNPROTECTED
const PROTECTION_PROTECTED
getActiveSheet()
Get the currently active sheet.
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
exportArray2(array &$exportedArray, string $index, $objOrValue)
Populate array from exportArray1.