PhpPresentation
in package
PhpPresentation.
Table of Contents
Properties
- $activeSlideIndex : int
- Active slide index.
- $documentProperties : DocumentProperties
- Document properties.
- $layout : DocumentLayout
- Document layout.
- $presentationProps : PresentationProperties
- Presentation properties.
- $slideCollection : array<int, Slide>
- Collection of Slide objects.
- $slideMasters : array<int, SlideMaster>|ArrayObject<int, SlideMaster>
- Collection of Master Slides.
Methods
- __construct() : mixed
- Create a new PhpPresentation with one Slide.
- addExternalSlide() : Slide
- Add external slide.
- addMasterSlide() : SlideMaster
- Add masterslide.
- addSlide() : Slide
- Add slide.
- copy() : self
- Copy presentation (!= clone!).
- createMasterSlide() : SlideMaster
- Create a masterslide and add it to this presentation.
- createSlide() : Slide
- Create slide and add it to this presentation.
- getActiveSlide() : Slide
- Get active slide.
- getActiveSlideIndex() : int
- Get active slide index.
- getAllMasterSlides() : array<int, SlideMaster>|ArrayObject<int, SlideMaster>
- getAllSlides() : array<int, Slide>
- Get all slides.
- getDocumentProperties() : DocumentProperties
- Get properties.
- getIndex() : int|null
- Get index for slide.
- getLayout() : DocumentLayout
- Get layout.
- getPresentationProperties() : PresentationProperties
- Get presentation properties.
- getSlide() : Slide
- Get slide by index.
- getSlideCount() : int
- Get slide count.
- getSlideIterator() : Iterator
- Get slide iterator.
- removeSlideByIndex() : self
- Remove slide by index.
- setActiveSlideIndex() : Slide
- Set active slide index.
- setAllMasterSlides() : self
- setDocumentProperties() : self
- Set properties.
- setLayout() : self
- Set layout.
- setPresentationProperties() : self
- Set presentation properties.
Properties
$activeSlideIndex
Active slide index.
protected
int
$activeSlideIndex
= 0
$documentProperties
Document properties.
protected
DocumentProperties
$documentProperties
$layout
Document layout.
protected
DocumentLayout
$layout
$presentationProps
Presentation properties.
protected
PresentationProperties
$presentationProps
$slideCollection
Collection of Slide objects.
protected
array<int, Slide>
$slideCollection
= []
$slideMasters
Collection of Master Slides.
protected
array<int, SlideMaster>|ArrayObject<int, SlideMaster>
$slideMasters
Methods
__construct()
Create a new PhpPresentation with one Slide.
public
__construct() : mixed
addExternalSlide()
Add external slide.
public
addExternalSlide(Slide $slide) : Slide
Parameters
- $slide : Slide
-
External slide to add
Return values
SlideaddMasterSlide()
Add masterslide.
public
addMasterSlide(SlideMaster $slide) : SlideMaster
Parameters
- $slide : SlideMaster
Return values
SlideMasteraddSlide()
Add slide.
public
addSlide(Slide $slide[, int $index = -1 ]) : Slide
Parameters
- $slide : Slide
- $index : int = -1
Return values
Slidecopy()
Copy presentation (!= clone!).
public
copy() : self
Return values
selfcreateMasterSlide()
Create a masterslide and add it to this presentation.
public
createMasterSlide() : SlideMaster
Return values
SlideMastercreateSlide()
Create slide and add it to this presentation.
public
createSlide() : Slide
Return values
SlidegetActiveSlide()
Get active slide.
public
getActiveSlide() : Slide
Return values
SlidegetActiveSlideIndex()
Get active slide index.
public
getActiveSlideIndex() : int
Return values
int —Active slide index
getAllMasterSlides()
public
getAllMasterSlides() : array<int, SlideMaster>|ArrayObject<int, SlideMaster>
Return values
array<int, SlideMaster>|ArrayObject<int, SlideMaster>getAllSlides()
Get all slides.
public
getAllSlides() : array<int, Slide>
Return values
array<int, Slide>getDocumentProperties()
Get properties.
public
getDocumentProperties() : DocumentProperties
Return values
DocumentPropertiesgetIndex()
Get index for slide.
public
getIndex(AbstractSlide $slide) : int|null
Parameters
- $slide : AbstractSlide
Return values
int|nullgetLayout()
Get layout.
public
getLayout() : DocumentLayout
Return values
DocumentLayoutgetPresentationProperties()
Get presentation properties.
public
getPresentationProperties() : PresentationProperties
Return values
PresentationPropertiesgetSlide()
Get slide by index.
public
getSlide([int $index = 0 ]) : Slide
Parameters
- $index : int = 0
-
Slide index
Return values
SlidegetSlideCount()
Get slide count.
public
getSlideCount() : int
Return values
intgetSlideIterator()
Get slide iterator.
public
getSlideIterator() : Iterator
Return values
IteratorremoveSlideByIndex()
Remove slide by index.
public
removeSlideByIndex([int $index = 0 ]) : self
Parameters
- $index : int = 0
-
Slide index
Return values
selfsetActiveSlideIndex()
Set active slide index.
public
setActiveSlideIndex([int $index = 0 ]) : Slide
Parameters
- $index : int = 0
-
Active slide index
Return values
SlidesetAllMasterSlides()
public
setAllMasterSlides([array<int, SlideMaster>|ArrayObject<int, SlideMaster> $slideMasters = [] ]) : self
Parameters
- $slideMasters : array<int, SlideMaster>|ArrayObject<int, SlideMaster> = []
Return values
selfsetDocumentProperties()
Set properties.
public
setDocumentProperties(DocumentProperties $value) : self
Parameters
- $value : DocumentProperties
Return values
selfsetLayout()
Set layout.
public
setLayout(DocumentLayout $value) : self
Parameters
- $value : DocumentLayout
Return values
selfsetPresentationProperties()
Set presentation properties.
public
setPresentationProperties(PresentationProperties $value) : self
Parameters
- $value : PresentationProperties