You are here

private function PHPExcel_Writer_Excel2007_Style::_writeFill in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php \PHPExcel_Writer_Excel2007_Style::_writeFill()

* Write Fill * *

Parameters

PHPExcel_Shared_XMLWriter $objWriter XML Writer: * @param PHPExcel_Style_Fill $pFill Fill style * @throws PHPExcel_Writer_Exception

2 calls to PHPExcel_Writer_Excel2007_Style::_writeFill()
PHPExcel_Writer_Excel2007_Style::writeStyles in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php
* Write styles to XML format * *
PHPExcel_Writer_Excel2007_Style::_writeCellStyleDxf in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php
* Write Cell Style Dxf * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php, line 175

Class

PHPExcel_Writer_Excel2007_Style
PHPExcel_Writer_Excel2007_Style

Code

private function _writeFill(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_Fill $pFill = null) {

  // Check if this is a pattern type or gradient type
  if ($pFill
    ->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR || $pFill
    ->getFillType() === PHPExcel_Style_Fill::FILL_GRADIENT_PATH) {

    // Gradient fill
    $this
      ->_writeGradientFill($objWriter, $pFill);
  }
  elseif ($pFill
    ->getFillType() !== NULL) {

    // Pattern fill
    $this
      ->_writePatternFill($objWriter, $pFill);
  }
}