abstract class PHPExcel_Style_Supervisor in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Supervisor.php \PHPExcel_Style_Supervisor
PHPExcel_Style_Supervisor
@category PHPExcel @package PHPExcel_Style @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
Hierarchy
- class \PHPExcel_Style_Supervisor
Expanded class hierarchy of PHPExcel_Style_Supervisor
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Supervisor.php, line 36
View source
abstract class PHPExcel_Style_Supervisor {
/**
* Supervisor?
*
* @var boolean
*/
protected $_isSupervisor;
/**
* Parent. Only used for supervisor
*
* @var PHPExcel_Style
*/
protected $_parent;
/**
* Create a new PHPExcel_Style_Alignment
*
* @param boolean $isSupervisor Flag indicating if this is a supervisor or not
* Leave this value at default unless you understand exactly what
* its ramifications are
*/
public function __construct($isSupervisor = FALSE) {
// Supervisor?
$this->_isSupervisor = $isSupervisor;
}
/**
* Bind parent. Only used for supervisor
*
* @param PHPExcel $parent
* @return PHPExcel_Style_Supervisor
*/
public function bindParent($parent, $parentPropertyName = NULL) {
$this->_parent = $parent;
return $this;
}
/**
* Is this a supervisor or a cell style component?
*
* @return boolean
*/
public function getIsSupervisor() {
return $this->_isSupervisor;
}
/**
* Get the currently active sheet. Only used for supervisor
*
* @return PHPExcel_Worksheet
*/
public function getActiveSheet() {
return $this->_parent
->getActiveSheet();
}
/**
* Get the currently active cell coordinate in currently active sheet.
* Only used for supervisor
*
* @return string E.g. 'A1'
*/
public function getSelectedCells() {
return $this
->getActiveSheet()
->getSelectedCells();
}
/**
* Get the currently active cell coordinate in currently active sheet.
* Only used for supervisor
*
* @return string E.g. 'A1'
*/
public function getActiveCell() {
return $this
->getActiveSheet()
->getActiveCell();
}
/**
* Implement PHP __clone to create a deep clone, not just a shallow copy.
*/
public function __clone() {
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value) && $key != '_parent') {
$this->{$key} = clone $value;
}
else {
$this->{$key} = $value;
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHPExcel_Style_Supervisor:: |
protected | property | * Supervisor? * * | |
PHPExcel_Style_Supervisor:: |
protected | property | * Parent. Only used for supervisor * * | |
PHPExcel_Style_Supervisor:: |
public | function | * Bind parent. Only used for supervisor * * | 2 |
PHPExcel_Style_Supervisor:: |
public | function | * Get the currently active cell coordinate in currently active sheet. * Only used for supervisor * * | |
PHPExcel_Style_Supervisor:: |
public | function | * Get the currently active sheet. Only used for supervisor * * | |
PHPExcel_Style_Supervisor:: |
public | function | * Is this a supervisor or a cell style component? * * | |
PHPExcel_Style_Supervisor:: |
public | function | * Get the currently active cell coordinate in currently active sheet. * Only used for supervisor * * | |
PHPExcel_Style_Supervisor:: |
public | function | * Implement PHP __clone to create a deep clone, not just a shallow copy. | |
PHPExcel_Style_Supervisor:: |
public | function | * Create a new PHPExcel_Style_Alignment * * | 9 |