You are here

private function PHPExcel_Writer_Excel2007_Style::_writeBorderPr 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::_writeBorderPr()

* Write BorderPr * *

Parameters

PHPExcel_Shared_XMLWriter $objWriter XML Writer: * @param string $pName Element name * @param PHPExcel_Style_Border $pBorder Border style * @throws PHPExcel_Writer_Exception

1 call to PHPExcel_Writer_Excel2007_Style::_writeBorderPr()
PHPExcel_Writer_Excel2007_Style::_writeBorder in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php
* Write Border * *

File

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

Class

PHPExcel_Writer_Excel2007_Style
PHPExcel_Writer_Excel2007_Style

Code

private function _writeBorderPr(PHPExcel_Shared_XMLWriter $objWriter = null, $pName = 'left', PHPExcel_Style_Border $pBorder = null) {

  // Write BorderPr
  if ($pBorder
    ->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) {
    $objWriter
      ->startElement($pName);
    $objWriter
      ->writeAttribute('style', $pBorder
      ->getBorderStyle());

    // color
    $objWriter
      ->startElement('color');
    $objWriter
      ->writeAttribute('rgb', $pBorder
      ->getColor()
      ->getARGB());
    $objWriter
      ->endElement();
    $objWriter
      ->endElement();
  }
}