You are here

public function PHPExcel_Writer_OpenDocument::getWriterPart in Loft Data Grids 7.2

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

Get writer part

Parameters

string $pPartName Writer part name:

Return value

PHPExcel_Writer_Excel2007_WriterPart

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument.php, line 84

Class

PHPExcel_Writer_OpenDocument
PHPExcel_Writer_OpenDocument

Code

public function getWriterPart($pPartName = '') {
  if ($pPartName != '' && isset($this->_writerParts[strtolower($pPartName)])) {
    return $this->_writerParts[strtolower($pPartName)];
  }
  else {
    return null;
  }
}