private function PHPExcel_Writer_Excel2007_Style::_writeNumFmt in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Style.php \PHPExcel_Writer_Excel2007_Style::_writeNumFmt()
* Write NumberFormat * *
Parameters
PHPExcel_Shared_XMLWriter $objWriter XML Writer: * @param PHPExcel_Style_NumberFormat $pNumberFormat Number Format * @param int $pId Number Format identifier * @throws PHPExcel_Writer_Exception
2 calls to PHPExcel_Writer_Excel2007_Style::_writeNumFmt()
- PHPExcel_Writer_Excel2007_Style::writeStyles in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Style.php - * Write styles to XML format * *
- PHPExcel_Writer_Excel2007_Style::_writeCellStyleDxf in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Style.php - * Write Cell Style Dxf * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Style.php, line 559
Class
- PHPExcel_Writer_Excel2007_Style
- PHPExcel_Writer_Excel2007_Style
Code
private function _writeNumFmt(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Style_NumberFormat $pNumberFormat = null, $pId = 0) {
// Translate formatcode
$formatCode = $pNumberFormat
->getFormatCode();
// numFmt
if ($formatCode !== NULL) {
$objWriter
->startElement('numFmt');
$objWriter
->writeAttribute('numFmtId', $pId + 164);
$objWriter
->writeAttribute('formatCode', $formatCode);
$objWriter
->endElement();
}
}