You are here

private function PHPExcel_Chart_Renderer_jpgraph::_getCaption in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php \PHPExcel_Chart_Renderer_jpgraph::_getCaption()
2 calls to PHPExcel_Chart_Renderer_jpgraph::_getCaption()
PHPExcel_Chart_Renderer_jpgraph::_renderCartesianPlotArea in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php
PHPExcel_Chart_Renderer_jpgraph::_renderTitle in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php, line 160

Class

PHPExcel_Chart_Renderer_jpgraph
PHPExcel_Chart_Renderer_jpgraph

Code

private function _getCaption($captionElement) {

  //	Read any caption
  $caption = !is_null($captionElement) ? $captionElement
    ->getCaption() : NULL;

  //	Test if we have a title caption to display
  if (!is_null($caption)) {

    //	If we do, it could be a plain string or an array
    if (is_array($caption)) {

      //	Implode an array to a plain string
      $caption = implode('', $caption);
    }
  }
  return $caption;
}