PHP Class PhpOffice\PhpPresentation\Slide

Inheritance: extends PhpOffice\PhpPresentation\Slide\AbstractSlide, implements PhpOffice\PhpPresentation\ComparableInterface, implements PhpOffice\PhpPresentation\ShapeContainerInterface
Show file Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Property Type Description
$animations PhpOffice\PhpPresentation\Slide\Animation[]
$isVisible boolean The slide is shown in presentation
$name string Name of the title

Public Methods

Method Description
__construct ( PhpPresentation $pParent = null ) Create a new slide
addAnimation ( $animation ) : Slide Add an animation to the slide
copy ( ) : Slide Copy slide (!= clone!)
getAnimations ( ) : Animation[] Get collection of animations
getName ( ) : string Get the name of the slide
getNote ( ) : PhpOffice\PhpPresentation\Slide\Note
getSlideLayout ( ) : SlideLayout Get slide layout
getSlideMasterId ( ) : integer Get slide master id
isVisible ( ) : boolean
setAnimations ( array $array = [] ) : Slide Set collection of animations
setIsVisible ( boolean $value = true ) : Slide
setName ( string $name = null ) Set the name of the slide
setNote ( PhpOffice\PhpPresentation\Slide\Note $note = null ) : Slide
setSlideLayout ( SlideLayout $layout ) : Slide Set slide layout
setSlideMasterId ( integer $masterId = 1 ) : Slide Set slide master id

Method Details

__construct() public method

Create a new slide
public __construct ( PhpPresentation $pParent = null )
$pParent PhpPresentation

addAnimation() public method

Add an animation to the slide
public addAnimation ( $animation ) : Slide
return Slide

copy() public method

Copy slide (!= clone!)
public copy ( ) : Slide
return Slide

getAnimations() public method

Get collection of animations
public getAnimations ( ) : Animation[]
return PhpOffice\PhpPresentation\Slide\Animation[]

getName() public method

Get the name of the slide
public getName ( ) : string
return string

getNote() public method

public getNote ( ) : PhpOffice\PhpPresentation\Slide\Note
return PhpOffice\PhpPresentation\Slide\Note

getSlideLayout() public method

Get slide layout
public getSlideLayout ( ) : SlideLayout
return PhpOffice\PhpPresentation\Slide\SlideLayout

getSlideMasterId() public method

Get slide master id
public getSlideMasterId ( ) : integer
return integer

isVisible() public method

public isVisible ( ) : boolean
return boolean

setAnimations() public method

Set collection of animations
public setAnimations ( array $array = [] ) : Slide
$array array
return Slide

setIsVisible() public method

public setIsVisible ( boolean $value = true ) : Slide
$value boolean
return Slide

setName() public method

Set the name of the slide
public setName ( string $name = null )
$name string

setNote() public method

public setNote ( PhpOffice\PhpPresentation\Slide\Note $note = null ) : Slide
$note PhpOffice\PhpPresentation\Slide\Note
return Slide

setSlideLayout() public method

Set slide layout
public setSlideLayout ( SlideLayout $layout ) : Slide
$layout PhpOffice\PhpPresentation\Slide\SlideLayout
return Slide

setSlideMasterId() public method

Set slide master id
public setSlideMasterId ( integer $masterId = 1 ) : Slide
$masterId integer
return Slide

Property Details

$animations protected property

protected Animation[],PhpOffice\PhpPresentation\Slide $animations
return PhpOffice\PhpPresentation\Slide\Animation[]

$isVisible protected property

The slide is shown in presentation
protected bool $isVisible
return boolean

$name protected property

Name of the title
protected string $name
return string