84 $this->_isSupervisor = $isSupervisor;
99 $this->_parent = $parent;
121 return $this->_parent->getSharedComponent()->getProtection();
131 return $this->_parent->getActiveSheet();
164 return array(
'protection' => $array);
179 if (is_array($pStyles)) {
180 if ($this->_isSupervisor) {
183 if (array_key_exists(
'locked', $pStyles)) {
186 if (array_key_exists(
'hidden', $pStyles)) {
191 throw new Exception(
"Invalid style array passed.");
202 if ($this->_isSupervisor) {
214 public function setLocked($pValue = self::PROTECTION_INHERIT) {
215 if ($this->_isSupervisor) {
216 $styleArray = $this->
getStyleArray(array(
'locked' => $pValue));
219 $this->_locked = $pValue;
230 if ($this->_isSupervisor) {
242 public function setHidden($pValue = self::PROTECTION_INHERIT) {
243 if ($this->_isSupervisor) {
244 $styleArray = $this->
getStyleArray(array(
'hidden' => $pValue));
247 $this->_hidden = $pValue;
258 if ($this->_isSupervisor) {
272 $vars = get_object_vars($this);
273 foreach ($vars as $key => $value) {
274 if ((is_object($value)) && ($key !=
'_parent')) {
275 $this->$key = clone $value;
277 $this->$key = $value;