PHP Class PhpOffice\PhpPresentation\Reader\PowerPoint2007

Inheritance: implements PhpOffice\PhpPresentation\Reader\ReaderInterface
Show file Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Property Type Description
$arrayRels array[]
$arraySlideLayouts PhpOffice\PhpPresentation\Slide\SlideLayout[]
$filename *
$oPhpPresentation PhpOffice\PhpPresentation\PhpPresentation Output Object
$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
loadCustomProperties ( string $sPart ) Read Custom Properties
loadDocumentLayout ( $sPart ) Read Document Layout
loadDocumentProperties ( string $sPart ) Read Document Properties
loadFile ( string $pFilename ) : PhpPresentation Load PhpPresentation Serialized file
loadMasterSlides ( PhpOffice\Common\XMLReader $xmlReader, $fileRels ) Extract all MasterSlides
loadRels ( string $fileRels ) : string
loadShapeDrawing ( PhpOffice\Common\XMLReader $document, DOMElement $node, AbstractSlide $oSlide )
loadShapeRichText ( PhpOffice\Common\XMLReader $document, DOMElement $node, AbstractSlide $oSlide )
loadSlide ( string $sPart, string $baseFile ) Extract data from slide
loadSlides ( $sPart ) Extract all slides
loadViewProperties ( string $sPart ) Read View Properties

Private Methods

Method Description
loadLayoutSlide ( $sPart, $baseFile, SlideMaster $oSlideMaster )
loadMasterSlide ( $sPart, $baseFile )
loadSlideBackground ( PhpOffice\Common\XMLReader $xmlReader, DOMElement $oElement, AbstractSlide $oSlide )
loadSlideShapes ( $oSlide, $oElements, $xmlReader )
loadTheme ( string $sPart, SlideMaster $oSlideMaster )

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

loadCustomProperties() protected method

Read Custom Properties
protected loadCustomProperties ( string $sPart )
$sPart string

loadDocumentLayout() protected method

Read Document Layout
protected loadDocumentLayout ( $sPart )
$sPart

loadDocumentProperties() protected method

Read Document Properties
protected loadDocumentProperties ( string $sPart )
$sPart string

loadFile() protected method

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

loadMasterSlides() protected method

Extract all MasterSlides
protected loadMasterSlides ( PhpOffice\Common\XMLReader $xmlReader, $fileRels )
$xmlReader PhpOffice\Common\XMLReader
$fileRels

loadRels() protected method

protected loadRels ( string $fileRels ) : string
$fileRels string
return string

loadShapeDrawing() protected method

protected loadShapeDrawing ( PhpOffice\Common\XMLReader $document, DOMElement $node, AbstractSlide $oSlide )
$document PhpOffice\Common\XMLReader
$node DOMElement
$oSlide PhpOffice\PhpPresentation\Slide\AbstractSlide

loadShapeRichText() protected method

protected loadShapeRichText ( PhpOffice\Common\XMLReader $document, DOMElement $node, AbstractSlide $oSlide )
$document PhpOffice\Common\XMLReader
$node DOMElement
$oSlide PhpOffice\PhpPresentation\Slide\AbstractSlide

loadSlide() protected method

Extract data from slide
protected loadSlide ( string $sPart, string $baseFile )
$sPart string
$baseFile string

loadSlides() protected method

Extract all slides
protected loadSlides ( $sPart )

loadViewProperties() protected method

Read View Properties
protected loadViewProperties ( string $sPart )
$sPart string

Property Details

$arrayRels protected property

protected array[] $arrayRels
return array[]

$arraySlideLayouts protected property

protected SlideLayout[],PhpOffice\PhpPresentation\Slide $arraySlideLayouts
return PhpOffice\PhpPresentation\Slide\SlideLayout[]

$filename protected property

*
protected $filename

$oPhpPresentation protected property

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

$oZip protected property

Output Object
protected ZipArchive $oZip
return ZipArchive