148 $this->_isSupervisor = $isSupervisor;
168 $this->_left->bindParent($this,
'_left');
169 $this->_right->bindParent($this,
'_right');
170 $this->_top->bindParent($this,
'_top');
171 $this->_bottom->bindParent($this,
'_bottom');
172 $this->_diagonal->bindParent($this,
'_diagonal');
173 $this->_allBorders->bindParent($this,
'_allBorders');
174 $this->_outline->bindParent($this,
'_outline');
175 $this->_inside->bindParent($this,
'_inside');
176 $this->_vertical->bindParent($this,
'_vertical');
177 $this->_horizontal->bindParent($this,
'_horizontal');
189 $this->_parent = $parent;
211 return $this->_parent->getSharedComponent()->getBorders();
221 return $this->_parent->getActiveSheet();
254 return array(
'borders' => $array);
296 if (is_array($pStyles)) {
297 if ($this->_isSupervisor) {
300 if (array_key_exists(
'left', $pStyles)) {
301 $this->
getLeft()->applyFromArray($pStyles[
'left']);
303 if (array_key_exists(
'right', $pStyles)) {
304 $this->
getRight()->applyFromArray($pStyles[
'right']);
306 if (array_key_exists(
'top', $pStyles)) {
307 $this->
getTop()->applyFromArray($pStyles[
'top']);
309 if (array_key_exists(
'bottom', $pStyles)) {
310 $this->
getBottom()->applyFromArray($pStyles[
'bottom']);
312 if (array_key_exists(
'diagonal', $pStyles)) {
313 $this->
getDiagonal()->applyFromArray($pStyles[
'diagonal']);
315 if (array_key_exists(
'diagonaldirection', $pStyles)) {
318 if (array_key_exists(
'allborders', $pStyles)) {
319 $this->
getLeft()->applyFromArray($pStyles[
'allborders']);
320 $this->
getRight()->applyFromArray($pStyles[
'allborders']);
321 $this->
getTop()->applyFromArray($pStyles[
'allborders']);
322 $this->
getBottom()->applyFromArray($pStyles[
'allborders']);
326 throw new Exception(
"Invalid style array passed.");
383 if (!$this->_isSupervisor) {
384 throw new Exception(
'Can only get pseudo-border for supervisor.');
396 if (!$this->_isSupervisor) {
397 throw new Exception(
'Can only get pseudo-border for supervisor.');
409 if (!$this->_isSupervisor) {
410 throw new Exception(
'Can only get pseudo-border for supervisor.');
422 if (!$this->_isSupervisor) {
423 throw new Exception(
'Can only get pseudo-border for supervisor.');
435 if (!$this->_isSupervisor) {
436 throw new Exception(
'Can only get pseudo-border for supervisor.');
447 if ($this->_isSupervisor) {
463 if ($this->_isSupervisor) {
464 $styleArray = $this->
getStyleArray(array(
'diagonaldirection' => $pValue));
467 $this->_diagonalDirection = $pValue;
478 if ($this->_isSupervisor) {
496 $vars = get_object_vars($this);
497 foreach ($vars as $key => $value) {
498 if ((is_object($value)) && ($key !=
'_parent')) {
499 $this->$key = clone $value;
501 $this->$key = $value;