67 public function __construct($isSupervisor = FALSE, $isConditional = FALSE)
70 parent::__construct($isSupervisor);
73 if (!$isConditional) {
74 $this->_locked = self::PROTECTION_INHERIT;
75 $this->_hidden = self::PROTECTION_INHERIT;
87 return $this->_parent->getSharedComponent()->getProtection();
98 return array(
'protection' => $array);
118 if (is_array($pStyles)) {
119 if ($this->_isSupervisor) {
122 if (isset($pStyles[
'locked'])) {
125 if (isset($pStyles[
'hidden'])) {
141 if ($this->_isSupervisor) {
153 public function setLocked($pValue = self::PROTECTION_INHERIT) {
154 if ($this->_isSupervisor) {
158 $this->_locked = $pValue;
169 if ($this->_isSupervisor) {
181 public function setHidden($pValue = self::PROTECTION_INHERIT) {
182 if ($this->_isSupervisor) {
186 $this->_hidden = $pValue;
197 if ($this->_isSupervisor) {
getStyleArray($array)
Build style array from subcomponents.
setLocked($pValue=self::PROTECTION_INHERIT)
Set locked.
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
__construct($isSupervisor=FALSE, $isConditional=FALSE)
Create a new PHPExcel_Style_Protection.
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
const PROTECTION_UNPROTECTED
applyFromArray($pStyles=NULL)
Apply styles from array.
const PROTECTION_INHERIT
Protection styles.
Create styles array
The data for the language used.
const PROTECTION_PROTECTED
setHidden($pValue=self::PROTECTION_INHERIT)
Set hidden.
getActiveSheet()
Get the currently active sheet.
getHashCode()
Get hash code.