PHP Class PhpOffice\PhpPresentation\Reader\ODPresentation

Inheritance: implements PhpOffice\PhpPresentation\Reader\ReaderInterface
显示文件 Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Property Type Description
$arrayCommonStyles array[]
$arrayStyles array[]
$levelParagraph
$oPhpPresentation PhpOffice\PhpPresentation\PhpPresentation Output Object
$oXMLReader PhpOffice\Common\XMLReader
$oZip ZipArchive Output Object

Public Methods

Method Description
canRead ( string $pFilename ) : boolean Can the current \PhpOffice\PhpPresentation\Reader\ReaderInterface read the file?
fileSupportsUnserializePhpPresentation ( string $pFilename = '' ) : boolean Does a file support UnserializePhpPresentation ?
load ( string $pFilename ) : PhpPresentation Loads PhpPresentation Serialized file

Protected Methods

Method Description
loadDocumentProperties ( ) Read Document Properties
loadFile ( string $pFilename ) : PhpPresentation Load PhpPresentation Serialized file
loadShapeDrawing ( DOMElement $oNodeFrame ) Read Shape Drawing
loadShapeRichText ( DOMElement $oNodeFrame ) Read Shape RichText
loadSlide ( DOMElement $nodeSlide ) Read Slide
loadSlides ( ) Extract all slides
loadStyle ( DOMElement $nodeStyle ) Extract style
loadStylesFile ( ) Load file 'styles.xml'
readList ( RichText $oShape, DOMElement $oNodeParent ) Read List
readListItem ( RichText $oShape, DOMElement $oNodeParent, DOMElement $oNodeParagraph ) Read List Item
readParagraph ( RichText $oShape, DOMElement $oNodeParent ) Read Paragraph
readParagraphItem ( Paragraph $oParagraph, DOMElement $oNodeParent ) Read Paragraph Item

Method Details

canRead() public method

Can the current \PhpOffice\PhpPresentation\Reader\ReaderInterface read the file?
public canRead ( string $pFilename ) : boolean
$pFilename string
return boolean

fileSupportsUnserializePhpPresentation() public method

Does a file support UnserializePhpPresentation ?
public fileSupportsUnserializePhpPresentation ( string $pFilename = '' ) : boolean
$pFilename string
return boolean

load() public method

Loads PhpPresentation Serialized file
public load ( string $pFilename ) : PhpPresentation
$pFilename string
return PhpOffice\PhpPresentation\PhpPresentation

loadDocumentProperties() protected method

Read Document Properties
protected loadDocumentProperties ( )

loadFile() protected method

Load PhpPresentation Serialized file
protected loadFile ( string $pFilename ) : PhpPresentation
$pFilename string
return PhpOffice\PhpPresentation\PhpPresentation

loadShapeDrawing() protected method

Read Shape Drawing
protected loadShapeDrawing ( DOMElement $oNodeFrame )
$oNodeFrame DOMElement

loadShapeRichText() protected method

Read Shape RichText
protected loadShapeRichText ( DOMElement $oNodeFrame )
$oNodeFrame DOMElement

loadSlide() protected method

Read Slide
protected loadSlide ( DOMElement $nodeSlide )
$nodeSlide DOMElement

loadSlides() protected method

Extract all slides
protected loadSlides ( )

loadStyle() protected method

Extract style
protected loadStyle ( DOMElement $nodeStyle )
$nodeStyle DOMElement

loadStylesFile() protected method

Load file 'styles.xml'
protected loadStylesFile ( )

readList() protected method

Read List
protected readList ( RichText $oShape, DOMElement $oNodeParent )
$oShape PhpOffice\PhpPresentation\Shape\RichText
$oNodeParent DOMElement

readListItem() protected method

Read List Item
protected readListItem ( RichText $oShape, DOMElement $oNodeParent, DOMElement $oNodeParagraph )
$oShape PhpOffice\PhpPresentation\Shape\RichText
$oNodeParent DOMElement
$oNodeParagraph DOMElement

readParagraph() protected method

Read Paragraph
protected readParagraph ( RichText $oShape, DOMElement $oNodeParent )
$oShape PhpOffice\PhpPresentation\Shape\RichText
$oNodeParent DOMElement

readParagraphItem() protected method

Read Paragraph Item
protected readParagraphItem ( Paragraph $oParagraph, DOMElement $oNodeParent )
$oParagraph PhpOffice\PhpPresentation\Shape\RichText\Paragraph
$oNodeParent DOMElement

Property Details

$arrayCommonStyles protected_oe property

protected array[] $arrayCommonStyles
return array[]

$arrayStyles protected_oe property

protected array[] $arrayStyles
return array[]

$levelParagraph protected_oe property

protected $levelParagraph

$oPhpPresentation protected_oe property

Output Object
protected PhpPresentation,PhpOffice\PhpPresentation $oPhpPresentation
return PhpOffice\PhpPresentation\PhpPresentation

$oXMLReader protected_oe property

protected XMLReader,PhpOffice\Common $oXMLReader
return PhpOffice\Common\XMLReader

$oZip protected_oe property

Output Object
protected ZipArchive $oZip
return ZipArchive