42 if (!$isConditional) {
43 $this->locked = self::PROTECTION_INHERIT;
44 $this->hidden = self::PROTECTION_INHERIT;
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;
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
applyFromArray(array $pStyles)
Apply styles from array.
const PROTECTION_PROTECTED
const PROTECTION_INHERIT
Protection styles.
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
setLocked($pValue)
Set locked.
getHashCode()
Get hash code.
const PROTECTION_UNPROTECTED
getStyleArray($array)
Build style array from subcomponents.
getActiveSheet()
Get the currently active sheet.
__construct($isSupervisor=false, $isConditional=false)
Create a new Protection.
setHidden($pValue)
Set hidden.
exportArray2(array &$exportedArray, string $index, $objOrValue)
Populate array from exportArray1.