You are here

public function PHPExcel_Style_Border::__construct in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php \PHPExcel_Style_Border::__construct()

* Create a new PHPExcel_Style_Border * *

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/Border.php, line 85

Class

PHPExcel_Style_Border
PHPExcel_Style_Border

Code

public function __construct($isSupervisor = FALSE, $isConditional = FALSE) {

  // Supervisor?
  parent::__construct($isSupervisor);

  // Initialise values
  $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');
  }
}