You are here

public function PHPExcel::getRibbonXMLData in Loft Data Grids 7.2

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

* retrieve ribbon XML Data * * return string|null|array

File

vendor/phpoffice/phpexcel/Classes/PHPExcel.php, line 243

Class

PHPExcel
PHPExcel

Code

public function getRibbonXMLData($What = 'all') {

  //we need some constants here...
  $ReturnData = NULL;
  $What = strtolower($What);
  switch ($What) {
    case 'all':
      $ReturnData = $this->_ribbonXMLData;
      break;
    case 'target':
    case 'data':
      if (is_array($this->_ribbonXMLData) && array_key_exists($What, $this->_ribbonXMLData)) {
        $ReturnData = $this->_ribbonXMLData[$What];
      }

      //else $ReturnData stay at null
      break;
  }

  //default: $ReturnData at null
  return $ReturnData;
}