Drawing
extends WriterPart
in package
Table of Contents
Properties
- $parentWriter : Xlsx
- Parent Xlsx object.
Methods
- __construct() : mixed
- Set parent Xlsx object.
- allDrawings() : array<string|int, BaseDrawing>
- Get an array of all drawings.
- getParentWriter() : Xlsx
- Get parent Xlsx object.
- writeChart() : void
- Write drawings to XML format.
- writeDrawing() : void
- Write drawings to XML format.
- writeDrawings() : string
- Write drawings to XML format.
- writeVMLHeaderFooterImages() : string
- Write VML header/footer images to XML format.
- stringEmu() : string
- writeAttributeIf() : void
- writeHyperLinkDrawing() : void
- writeVMLHeaderFooterImage() : void
- Write VML comment to XML format.
Properties
$parentWriter
Parent Xlsx object.
private
Xlsx
$parentWriter
Methods
__construct()
Set parent Xlsx object.
public
__construct(Xlsx $writer) : mixed
Parameters
- $writer : Xlsx
allDrawings()
Get an array of all drawings.
public
allDrawings(Spreadsheet $spreadsheet) : array<string|int, BaseDrawing>
Parameters
- $spreadsheet : Spreadsheet
Return values
array<string|int, BaseDrawing> —All drawings in PhpSpreadsheet
getParentWriter()
Get parent Xlsx object.
public
getParentWriter() : Xlsx
Return values
XlsxwriteChart()
Write drawings to XML format.
public
writeChart(XMLWriter $objWriter, Chart $chart[, int $relationId = -1 ]) : void
Parameters
writeDrawing()
Write drawings to XML format.
public
writeDrawing(XMLWriter $objWriter, BaseDrawing $drawing[, int $relationId = -1 ][, int|null $hlinkClickId = null ]) : void
Parameters
- $objWriter : XMLWriter
- $drawing : BaseDrawing
- $relationId : int = -1
- $hlinkClickId : int|null = null
writeDrawings()
Write drawings to XML format.
public
writeDrawings(Worksheet $worksheet[, bool $includeCharts = false ]) : string
Parameters
- $worksheet : Worksheet
- $includeCharts : bool = false
-
Flag indicating if we should include drawing details for charts
Return values
string —XML Output
writeVMLHeaderFooterImages()
Write VML header/footer images to XML format.
public
writeVMLHeaderFooterImages(Worksheet $worksheet) : string
Parameters
- $worksheet : Worksheet
Return values
string —XML Output
stringEmu()
private
static stringEmu(int $pixelValue) : string
Parameters
- $pixelValue : int
Return values
stringwriteAttributeIf()
private
static writeAttributeIf(XMLWriter $objWriter, bool|null $condition, string $attr, string $val) : void
Parameters
- $objWriter : XMLWriter
- $condition : bool|null
- $attr : string
- $val : string
writeHyperLinkDrawing()
private
writeHyperLinkDrawing(XMLWriter $objWriter, int|null $hlinkClickId) : void
Parameters
- $objWriter : XMLWriter
- $hlinkClickId : int|null
writeVMLHeaderFooterImage()
Write VML comment to XML format.
private
writeVMLHeaderFooterImage(XMLWriter $objWriter, string $reference, HeaderFooterDrawing $image) : void
Parameters
- $objWriter : XMLWriter
- $reference : string
-
Reference
- $image : HeaderFooterDrawing