Documentation

ODPresentation
in package
implements ReaderInterface

Serialized format reader.

Table of Contents

Interfaces

ReaderInterface
Reader interface.

Properties

$arrayCommonStyles  : array<string, array<string, null|string>>
$arrayStyles  : array<string, Fill, spacingAfter: null|int, spacingBefore: null|int, lineSpacingMode: null, lineSpacing: null, font: null, listStyle: null}>
$levelParagraph  : int
$oPhpPresentation  : PhpPresentation
Output Object.
$oXMLReader  : XMLReader
$oZip  : ZipArchive
Output Object.

Methods

canRead()  : bool
Can the current \PhpOffice\PhpPresentation\Reader\ReaderInterface read the file?
fileSupportsUnserializePhpPresentation()  : bool
Does a file support UnserializePhpPresentation ?
load()  : PhpPresentation
Loads PhpPresentation Serialized file.
loadDocumentProperties()  : void
Read Document Properties.
loadFile()  : PhpPresentation
Load PhpPresentation Serialized file.
loadPresentationProperties()  : void
loadShapeDrawing()  : void
Read Shape Drawing.
loadShapeRichText()  : void
Read Shape RichText.
loadSlide()  : bool
Read Slide.
loadSlides()  : void
Extract all slides.
loadStyle()  : bool
Extract style.
loadStylesFile()  : void
Load file 'styles.xml'.
readList()  : void
Read List.
readListItem()  : void
Read List Item.
readParagraph()  : void
Read Paragraph.
readParagraphItem()  : void
Read Paragraph Item.
getExpressionUnit()  : string
getExpressionValue()  : string

Properties

$arrayCommonStyles

protected array<string, array<string, null|string>> $arrayCommonStyles = []

$arrayStyles

protected array<string, Fill, spacingAfter: null|int, spacingBefore: null|int, lineSpacingMode: null, lineSpacing: null, font: null, listStyle: null}> $arrayStyles = []

Methods

canRead()

Can the current \PhpOffice\PhpPresentation\Reader\ReaderInterface read the file?

public canRead(string $pFilename) : bool
Parameters
$pFilename : string
Return values
bool

fileSupportsUnserializePhpPresentation()

Does a file support UnserializePhpPresentation ?

public fileSupportsUnserializePhpPresentation([string $pFilename = '' ]) : bool
Parameters
$pFilename : string = ''
Return values
bool

loadDocumentProperties()

Read Document Properties.

protected loadDocumentProperties() : void

loadPresentationProperties()

protected loadPresentationProperties() : void

loadShapeDrawing()

Read Shape Drawing.

protected loadShapeDrawing(DOMElement $oNodeFrame) : void
Parameters
$oNodeFrame : DOMElement

loadShapeRichText()

Read Shape RichText.

protected loadShapeRichText(DOMElement $oNodeFrame) : void
Parameters
$oNodeFrame : DOMElement

loadSlide()

Read Slide.

protected loadSlide(DOMElement $nodeSlide) : bool
Parameters
$nodeSlide : DOMElement
Return values
bool

loadStyle()

Extract style.

protected loadStyle(DOMElement $nodeStyle) : bool
Parameters
$nodeStyle : DOMElement
Return values
bool

loadStylesFile()

Load file 'styles.xml'.

protected loadStylesFile() : void

readList()

Read List.

protected readList(RichText $oShape, DOMElement $oNodeParent) : void
Parameters
$oShape : RichText
$oNodeParent : DOMElement

readListItem()

Read List Item.

protected readListItem(RichText $oShape, DOMElement $oNodeParent, DOMElement $oNodeParagraph) : void
Parameters
$oShape : RichText
$oNodeParent : DOMElement
$oNodeParagraph : DOMElement

readParagraph()

Read Paragraph.

protected readParagraph(RichText $oShape, DOMElement $oNodeParent) : void
Parameters
$oShape : RichText
$oNodeParent : DOMElement

readParagraphItem()

Read Paragraph Item.

protected readParagraphItem(Paragraph $oParagraph, DOMElement $oNodeParent) : void
Parameters
$oParagraph : Paragraph
$oNodeParent : DOMElement

getExpressionUnit()

private getExpressionUnit(string $expr) : string
Parameters
$expr : string
Return values
string

getExpressionValue()

private getExpressionValue(string $expr) : string
Parameters
$expr : string
Return values
string

        
On this page

Search results