Worksheet
extends WriterPart
in package
Table of Contents
Properties
- $evalError : string
- $explicitStyle0 : bool
- $formula : string
- $numberStoredAsText : string
- $parentWriter : Xlsx
- Parent Xlsx object.
- $twoDigitTextYear : string
- $useDynamicArrays : bool
Methods
- __construct() : mixed
- Set parent Xlsx object.
- getParentWriter() : Xlsx
- Get parent Xlsx object.
- writeWorksheet() : string
- Write worksheet to XML format.
- parseRef() : string
- writeAlternateContent() : void
- writeAttributeIf() : void
- writeAttributeNotNull() : void
- writeAutoFilter() : void
- Write AutoFilter.
- writeBackgroundImage() : void
- Write Background Image.
- writeBreaks() : void
- Write Breaks.
- writeCell() : void
- Write Cell.
- writeCellBoolean() : void
- writeCellError() : void
- writeCellFormula() : void
- writeCellInlineStr() : void
- writeCellNumeric() : void
- writeCellString() : void
- writeColorScaleElements() : void
- writeCols() : void
- Write Cols.
- writeConditionalFormatting() : void
- Write ConditionalFormatting.
- writeDataBarElements() : void
- writeDataValidations() : void
- Write DataValidations.
- writeDimension() : void
- Write Dimension.
- writeDrawings() : void
- Write Drawings.
- writeElementIf() : void
- writeExtConditionalFormattingElements() : void
- writeExtLst() : void
- write <ExtLst> only implementation conditionalFormattings.
- writeHeaderFooter() : void
- Write Header / Footer.
- writeHyperlinks() : void
- Write Hyperlinks.
- writeIgnoredError() : void
- writeIgnoredErrors() : void
- writeLegacyDrawing() : void
- Write LegacyDrawing.
- writeLegacyDrawingHF() : void
- Write LegacyDrawingHF.
- writeMergeCells() : void
- Write MergeCells.
- writeOtherCondElements() : void
- writePageMargins() : void
- Write PageMargins.
- writePageSetup() : void
- Write PageSetup.
- writePrintOptions() : void
- Write PrintOptions.
- writeProtectedRanges() : void
- Write ProtectedRanges.
- writeProtectionAttribute() : void
- writeSheetData() : void
- Write SheetData.
- writeSheetFormatPr() : void
- Write SheetFormatPr.
- writeSheetPr() : void
- Write SheetPr.
- writeSheetProtection() : void
- Write SheetProtection.
- writeSheetViews() : void
- Write SheetViews.
- writeTable() : void
- Write Table.
- writeTextCondElements() : void
- writeTimePeriodCondElements() : void
Properties
$evalError
private
string
$evalError
= ''
$explicitStyle0
private
bool
$explicitStyle0
$formula
private
string
$formula
= ''
$numberStoredAsText
private
string
$numberStoredAsText
= ''
$parentWriter
Parent Xlsx object.
private
Xlsx
$parentWriter
$twoDigitTextYear
private
string
$twoDigitTextYear
= ''
$useDynamicArrays
private
bool
$useDynamicArrays
= false
Methods
__construct()
Set parent Xlsx object.
public
__construct(Xlsx $writer) : mixed
Parameters
- $writer : Xlsx
getParentWriter()
Get parent Xlsx object.
public
getParentWriter() : Xlsx
Return values
XlsxwriteWorksheet()
Write worksheet to XML format.
public
writeWorksheet(Worksheet $worksheet[, array<string|int, string> $stringTable = [] ][, bool $includeCharts = false ]) : string
Parameters
- $worksheet : Worksheet
- $stringTable : array<string|int, string> = []
- $includeCharts : bool = false
-
Flag indicating if we should write charts
Return values
string —XML Output
parseRef()
private
parseRef(string $coordinate, string $ref) : string
Parameters
- $coordinate : string
- $ref : string
Return values
stringwriteAlternateContent()
private
writeAlternateContent(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeAttributeIf()
private
static writeAttributeIf(XMLWriter $objWriter, bool|null $condition, string $attr, string $val) : void
Parameters
- $objWriter : XMLWriter
- $condition : bool|null
- $attr : string
- $val : string
writeAttributeNotNull()
private
static writeAttributeNotNull(XMLWriter $objWriter, string $attr, string|null $val) : void
Parameters
- $objWriter : XMLWriter
- $attr : string
- $val : string|null
writeAutoFilter()
Write AutoFilter.
private
writeAutoFilter(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeBackgroundImage()
Write Background Image.
private
writeBackgroundImage(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeBreaks()
Write Breaks.
private
writeBreaks(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeCell()
Write Cell.
private
writeCell(XMLWriter $objWriter, Worksheet $worksheet, string $cellAddress, array<string|int, string> $flippedStringTable) : void
Parameters
writeCellBoolean()
private
writeCellBoolean(XMLWriter $objWriter, string $mappedType, bool $cellValue) : void
Parameters
- $objWriter : XMLWriter
- $mappedType : string
- $cellValue : bool
writeCellError()
private
writeCellError(XMLWriter $objWriter, string $mappedType, string $cellValue[, string $formulaerr = '#NULL!' ]) : void
Parameters
- $objWriter : XMLWriter
- $mappedType : string
- $cellValue : string
- $formulaerr : string = '#NULL!'
writeCellFormula()
private
writeCellFormula(XMLWriter $objWriter, string $cellValue, Cell $cell) : void
Parameters
writeCellInlineStr()
private
writeCellInlineStr(XMLWriter $objWriter, string $mappedType, RichText|string $cellValue) : void
Parameters
writeCellNumeric()
private
writeCellNumeric(XMLWriter $objWriter, float|int $cellValue) : void
Parameters
- $objWriter : XMLWriter
- $cellValue : float|int
writeCellString()
private
writeCellString(XMLWriter $objWriter, string $mappedType, RichText|string $cellValue, array<string|int, string> $flippedStringTable) : void
Parameters
writeColorScaleElements()
private
static writeColorScaleElements(XMLWriter $objWriter, ConditionalColorScale|null $colorScale) : void
Parameters
- $objWriter : XMLWriter
- $colorScale : ConditionalColorScale|null
writeCols()
Write Cols.
private
writeCols(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeConditionalFormatting()
Write ConditionalFormatting.
private
writeConditionalFormatting(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeDataBarElements()
private
static writeDataBarElements(XMLWriter $objWriter, ConditionalDataBar|null $dataBar) : void
Parameters
- $objWriter : XMLWriter
- $dataBar : ConditionalDataBar|null
writeDataValidations()
Write DataValidations.
private
writeDataValidations(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeDimension()
Write Dimension.
private
writeDimension(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeDrawings()
Write Drawings.
private
writeDrawings(XMLWriter $objWriter, Worksheet $worksheet[, bool $includeCharts = false ]) : void
Parameters
writeElementIf()
private
static writeElementIf(XMLWriter $objWriter, bool $condition, string $attr, string $val) : void
Parameters
- $objWriter : XMLWriter
- $condition : bool
- $attr : string
- $val : string
writeExtConditionalFormattingElements()
private
static writeExtConditionalFormattingElements(XMLWriter $objWriter, ConditionalFormattingRuleExtension $ruleExtension) : void
Parameters
- $objWriter : XMLWriter
- $ruleExtension : ConditionalFormattingRuleExtension
writeExtLst()
write <ExtLst> only implementation conditionalFormattings.
private
writeExtLst(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
Tags
writeHeaderFooter()
Write Header / Footer.
private
writeHeaderFooter(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeHyperlinks()
Write Hyperlinks.
private
writeHyperlinks(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeIgnoredError()
private
writeIgnoredError(XMLWriter $objWriter, bool &$started, string $attr, string $cells) : void
Parameters
- $objWriter : XMLWriter
- $started : bool
- $attr : string
- $cells : string
writeIgnoredErrors()
private
writeIgnoredErrors(XMLWriter $objWriter) : void
Parameters
- $objWriter : XMLWriter
writeLegacyDrawing()
Write LegacyDrawing.
private
writeLegacyDrawing(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeLegacyDrawingHF()
Write LegacyDrawingHF.
private
writeLegacyDrawingHF(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeMergeCells()
Write MergeCells.
private
writeMergeCells(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeOtherCondElements()
private
static writeOtherCondElements(XMLWriter $objWriter, Conditional $conditional, string $cellCoordinate) : void
Parameters
- $objWriter : XMLWriter
- $conditional : Conditional
- $cellCoordinate : string
writePageMargins()
Write PageMargins.
private
writePageMargins(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writePageSetup()
Write PageSetup.
private
writePageSetup(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writePrintOptions()
Write PrintOptions.
private
writePrintOptions(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeProtectedRanges()
Write ProtectedRanges.
private
writeProtectedRanges(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeProtectionAttribute()
private
static writeProtectionAttribute(XMLWriter $objWriter, string $name, bool|null $value) : void
Parameters
- $objWriter : XMLWriter
- $name : string
- $value : bool|null
writeSheetData()
Write SheetData.
private
writeSheetData(XMLWriter $objWriter, Worksheet $worksheet, array<string|int, string> $stringTable) : void
Parameters
writeSheetFormatPr()
Write SheetFormatPr.
private
writeSheetFormatPr(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeSheetPr()
Write SheetPr.
private
writeSheetPr(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeSheetProtection()
Write SheetProtection.
private
writeSheetProtection(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeSheetViews()
Write SheetViews.
private
writeSheetViews(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeTable()
Write Table.
private
writeTable(XMLWriter $objWriter, Worksheet $worksheet) : void
Parameters
writeTextCondElements()
private
static writeTextCondElements(XMLWriter $objWriter, Conditional $conditional, string $cellCoordinate) : void
Parameters
- $objWriter : XMLWriter
- $conditional : Conditional
- $cellCoordinate : string
writeTimePeriodCondElements()
private
static writeTimePeriodCondElements(XMLWriter $objWriter, Conditional $conditional, string $cellCoordinate) : void
Parameters
- $objWriter : XMLWriter
- $conditional : Conditional
- $cellCoordinate : string