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
= []
$levelParagraph
protected
int
$levelParagraph
= 0
$oPhpPresentation
Output Object.
protected
PhpPresentation
$oPhpPresentation
$oXMLReader
protected
XMLReader
$oXMLReader
$oZip
Output Object.
protected
ZipArchive
$oZip
Methods
canRead()
Can the current \PhpOffice\PhpPresentation\Reader\ReaderInterface read the file?
public
canRead(string $pFilename) : bool
Parameters
- $pFilename : string
Return values
boolfileSupportsUnserializePhpPresentation()
Does a file support UnserializePhpPresentation ?
public
fileSupportsUnserializePhpPresentation([string $pFilename = '' ]) : bool
Parameters
- $pFilename : string = ''
Return values
boolload()
Loads PhpPresentation Serialized file.
public
load(string $pFilename) : PhpPresentation
Parameters
- $pFilename : string
Return values
PhpPresentationloadDocumentProperties()
Read Document Properties.
protected
loadDocumentProperties() : void
loadFile()
Load PhpPresentation Serialized file.
protected
loadFile(string $pFilename) : PhpPresentation
Parameters
- $pFilename : string
Return values
PhpPresentationloadPresentationProperties()
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
boolloadSlides()
Extract all slides.
protected
loadSlides() : void
loadStyle()
Extract style.
protected
loadStyle(DOMElement $nodeStyle) : bool
Parameters
- $nodeStyle : DOMElement
Return values
boolloadStylesFile()
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
stringgetExpressionValue()
private
getExpressionValue(string $expr) : string
Parameters
- $expr : string