You are here

public function PHPExcel_Style_Border::getStyleArray 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::getStyleArray()

* Build style array from subcomponents * *

Parameters

array $array: * @return array

2 calls to PHPExcel_Style_Border::getStyleArray()
PHPExcel_Style_Border::applyFromArray in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php
* Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray( * array( * 'style' => PHPExcel_Style_Border::BORDER_DASHDOT, …
PHPExcel_Style_Border::setBorderStyle in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php
* Set Border style * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Border.php, line 150

Class

PHPExcel_Style_Border
PHPExcel_Style_Border

Code

public function getStyleArray($array) {
  switch ($this->_parentPropertyName) {
    case '_allBorders':
      $key = 'allborders';
      break;
    case '_bottom':
      $key = 'bottom';
      break;
    case '_diagonal':
      $key = 'diagonal';
      break;
    case '_horizontal':
      $key = 'horizontal';
      break;
    case '_inside':
      $key = 'inside';
      break;
    case '_left':
      $key = 'left';
      break;
    case '_outline':
      $key = 'outline';
      break;
    case '_right':
      $key = 'right';
      break;
    case '_top':
      $key = 'top';
      break;
    case '_vertical':
      $key = 'vertical';
      break;
  }
  return $this->_parent
    ->getStyleArray(array(
    $key => $array,
  ));
}