public function PHPExcel_Style_Fill::__construct in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Fill.php \PHPExcel_Style_Fill::__construct()
* Create a new PHPExcel_Style_Fill * *
Parameters
boolean $isSupervisor Flag indicating if this is a supervisor or not: * Leave this value at default unless you understand exactly what * its ramifications are * @param boolean $isConditional Flag indicating if this is a conditional style or not * Leave this value at default unless you understand exactly what * its ramifications are
Overrides PHPExcel_Style_Supervisor::__construct
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Fill.php, line 99
Class
- PHPExcel_Style_Fill
- PHPExcel_Style_Fill
Code
public function __construct($isSupervisor = FALSE, $isConditional = FALSE) {
// Supervisor?
parent::__construct($isSupervisor);
// Initialise values
if ($isConditional) {
$this->_fillType = NULL;
}
$this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional);
$this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
// bind parent if we are a supervisor
if ($isSupervisor) {
$this->_startColor
->bindParent($this, '_startColor');
$this->_endColor
->bindParent($this, '_endColor');
}
}