ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Supervisor.php
Go to the documentation of this file.
1 <?php
37 {
43  protected $_isSupervisor;
44 
50  protected $_parent;
51 
59  public function __construct($isSupervisor = FALSE)
60  {
61  // Supervisor?
62  $this->_isSupervisor = $isSupervisor;
63  }
64 
71  public function bindParent($parent, $parentPropertyName=NULL)
72  {
73  $this->_parent = $parent;
74  return $this;
75  }
76 
82  public function getIsSupervisor()
83  {
84  return $this->_isSupervisor;
85  }
86 
92  public function getActiveSheet()
93  {
94  return $this->_parent->getActiveSheet();
95  }
96 
103  public function getSelectedCells()
104  {
105  return $this->getActiveSheet()->getSelectedCells();
106  }
107 
114  public function getActiveCell()
115  {
116  return $this->getActiveSheet()->getActiveCell();
117  }
118 
122  public function __clone() {
123  $vars = get_object_vars($this);
124  foreach ($vars as $key => $value) {
125  if ((is_object($value)) && ($key != '_parent')) {
126  $this->$key = clone $value;
127  } else {
128  $this->$key = $value;
129  }
130  }
131  }
132 }
__construct($isSupervisor=FALSE)
Create a new PHPExcel_Style_Alignment.
Definition: Supervisor.php:59
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
Definition: Supervisor.php:103
getIsSupervisor()
Is this a supervisor or a cell style component?
Definition: Supervisor.php:82
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition: Supervisor.php:122
bindParent($parent, $parentPropertyName=NULL)
Bind parent.
Definition: Supervisor.php:71
getActiveCell()
Get the currently active cell coordinate in currently active sheet.
Definition: Supervisor.php:114
getActiveSheet()
Get the currently active sheet.
Definition: Supervisor.php:92
$key
Definition: croninfo.php:18