Documentation

Drawing extends WriterPart
in package

Table of Contents

Methods

__construct()  : mixed
Set parent Ods writer.
collectDrawings()  : array<string, string>
Collect all drawings from a worksheet and prepare image files.
getAllImageFiles()  : array<string, string>
Get all collected image files.
getParentWriter()  : Ods
Get Ods writer.
reset()  : void
Reset the drawing writer state.
write()  : string
Required by WriterPart abstract class, but unused.
writeDrawingFrame()  : void
Write drawing frames in content.xml within a table cell.

Methods

__construct()

Set parent Ods writer.

public __construct(Ods $writer) : mixed
Parameters
$writer : Ods

collectDrawings()

Collect all drawings from a worksheet and prepare image files.

public collectDrawings(Worksheet $worksheet) : array<string, string>
Parameters
$worksheet : Worksheet
Return values
array<string, string>

Array of drawing image files [path => content]

getAllImageFiles()

Get all collected image files.

public getAllImageFiles() : array<string, string>
Return values
array<string, string>

getParentWriter()

Get Ods writer.

public getParentWriter() : Ods
Return values
Ods

reset()

Reset the drawing writer state.

public reset() : void

write()

Required by WriterPart abstract class, but unused.

public write() : string
Tags
codeCoverageIgnore
Return values
string

writeDrawingFrame()

Write drawing frames in content.xml within a table cell.

public writeDrawingFrame(XMLWriter $objWriter, BaseDrawing $drawing, int $imageIndex, string $sheetTitle) : void
Parameters
$objWriter : XMLWriter
$drawing : BaseDrawing
$imageIndex : int
$sheetTitle : string

        
On this page

Search results