Serialized
extends AbstractWriter
in package
implements
WriterInterface
\PhpOffice\PhpPresentation\Writer\Serialized.
Table of Contents
Interfaces
- WriterInterface
- Writer interface.
Properties
- $oDrawingHashTable : HashTable
- Private unique hash table.
- $oPresentation : null|PhpPresentation
- Private PhpPresentation.
- $oZipAdapter : null|ZipInterface
Methods
- __construct() : mixed
- Create a new \PhpOffice\PhpPresentation\Writer\Serialized.
- getDrawingHashTable() : HashTable
- Get drawing hash table.
- getPhpPresentation() : PhpPresentation|null
- Get PhpPresentation object.
- getZipAdapter() : ZipInterface|null
- save() : void
- Save PhpPresentation to file.
- setPhpPresentation() : self
- Get PhpPresentation object.
- setZipAdapter() : self
- allDrawings() : array<int, AbstractShape>
- Get an array of all drawings.
- writeSerialized() : string
- Serialize PhpPresentation object to XML.
- iterateCollection() : array<int, AbstractShape>
Properties
$oDrawingHashTable
Private unique hash table.
protected
HashTable
$oDrawingHashTable
$oPresentation
Private PhpPresentation.
protected
null|PhpPresentation
$oPresentation
$oZipAdapter
protected
null|ZipInterface
$oZipAdapter
Methods
__construct()
Create a new \PhpOffice\PhpPresentation\Writer\Serialized.
public
__construct([PhpPresentation|null $pPhpPresentation = null ]) : mixed
Parameters
- $pPhpPresentation : PhpPresentation|null = null
getDrawingHashTable()
Get drawing hash table.
public
getDrawingHashTable() : HashTable
Return values
HashTablegetPhpPresentation()
Get PhpPresentation object.
public
getPhpPresentation() : PhpPresentation|null
Return values
PhpPresentation|nullgetZipAdapter()
public
getZipAdapter() : ZipInterface|null
Return values
ZipInterface|nullsave()
Save PhpPresentation to file.
public
save(string $pFilename) : void
Parameters
- $pFilename : string
setPhpPresentation()
Get PhpPresentation object.
public
setPhpPresentation([null|PhpPresentation $pPhpPresentation = null ]) : self
Parameters
- $pPhpPresentation : null|PhpPresentation = null
-
PhpPresentation object
Return values
selfsetZipAdapter()
public
setZipAdapter(ZipInterface $oZipAdapter) : self
Parameters
- $oZipAdapter : ZipInterface
Return values
selfallDrawings()
Get an array of all drawings.
protected
allDrawings() : array<int, AbstractShape>
Return values
array<int, AbstractShape>writeSerialized()
Serialize PhpPresentation object to XML.
protected
writeSerialized([PhpPresentation|null $pPhpPresentation = null ][, string $pFilename = '' ]) : string
Parameters
- $pPhpPresentation : PhpPresentation|null = null
- $pFilename : string = ''
Return values
string —XML Output
iterateCollection()
private
iterateCollection(array<int, AbstractShape> $collection) : array<int, AbstractShape>
Parameters
- $collection : array<int, AbstractShape>