You are here

private function PHPExcel_Writer_HTML::_mapBorderStyle in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php \PHPExcel_Writer_HTML::_mapBorderStyle()

* Map border style * *

Parameters

int $borderStyle Sheet index: * @return string

1 call to PHPExcel_Writer_HTML::_mapBorderStyle()
PHPExcel_Writer_HTML::_createCSSStyleBorder in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php
* Create CSS style (PHPExcel_Style_Border) * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/HTML.php, line 230

Class

PHPExcel_Writer_HTML
PHPExcel_Writer_HTML

Code

private function _mapBorderStyle($borderStyle) {
  switch ($borderStyle) {
    case PHPExcel_Style_Border::BORDER_NONE:
      return 'none';
    case PHPExcel_Style_Border::BORDER_DASHDOT:
      return '1px dashed';
    case PHPExcel_Style_Border::BORDER_DASHDOTDOT:
      return '1px dotted';
    case PHPExcel_Style_Border::BORDER_DASHED:
      return '1px dashed';
    case PHPExcel_Style_Border::BORDER_DOTTED:
      return '1px dotted';
    case PHPExcel_Style_Border::BORDER_DOUBLE:
      return '3px double';
    case PHPExcel_Style_Border::BORDER_HAIR:
      return '1px solid';
    case PHPExcel_Style_Border::BORDER_MEDIUM:
      return '2px solid';
    case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT:
      return '2px dashed';
    case PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT:
      return '2px dotted';
    case PHPExcel_Style_Border::BORDER_MEDIUMDASHED:
      return '2px dashed';
    case PHPExcel_Style_Border::BORDER_SLANTDASHDOT:
      return '2px dashed';
    case PHPExcel_Style_Border::BORDER_THICK:
      return '3px solid';
    case PHPExcel_Style_Border::BORDER_THIN:
      return '1px solid';
    default:
      return '1px solid';
  }
}