public function PHPExcel_Style_Font::__construct in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Font.php \PHPExcel_Style_Font::__construct()
* Create a new PHPExcel_Style_Font * *
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/ Font.php, line 118
Class
- PHPExcel_Style_Font
- PHPExcel_Style_Font
Code
public function __construct($isSupervisor = FALSE, $isConditional = FALSE) {
// Supervisor?
parent::__construct($isSupervisor);
// Initialise values
if ($isConditional) {
$this->_name = NULL;
$this->_size = NULL;
$this->_bold = NULL;
$this->_italic = NULL;
$this->_superScript = NULL;
$this->_subScript = NULL;
$this->_underline = NULL;
$this->_strikethrough = NULL;
$this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
}
else {
$this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
}
// bind parent if we are a supervisor
if ($isSupervisor) {
$this->_color
->bindParent($this, '_color');
}
}