PHP Class PhpOffice\PhpPresentation\Slide\AbstractSlide

Inheritance: implements PhpOffice\PhpPresentation\ComparableInterface, implements PhpOffice\PhpPresentation\ShapeContainerInterface
Afficher le fichier Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Свойство Type Description
$background AbstractBackground Background of the slide
$extentX integer Extent X
$extentY integer Extent Y
$hashIndex string Hash index
$identifier string Slide identifier
$offsetX integer Offset X
$offsetY integer Offset Y
$parent PhpOffice\PhpPresentation\PhpPresentation Parent presentation
$relsIndex string
$shapeCollection ArrayObject | PhpOffice\PhpPresentation\AbstractShape[] Collection of shapes
$slideTransition PhpOffice\PhpPresentation\Slide\Transition

Méthodes publiques

Méthode Description
addShape ( AbstractShape $shape ) : AbstractShape Add shape to slide
createChartShape ( ) : Chart Create chart shape
createDrawingShape ( ) : File Create drawing shape
createGroup ( ) : Group Creates a group within this slide
createLineShape ( integer $fromX, integer $fromY, integer $toX, integer $toY ) : Line Create line shape
createRichTextShape ( ) : RichText Create rich text shape
createTableShape ( integer $columns = 1 ) : Table Create table shape
getBackground ( ) : AbstractBackground
getExtentX ( ) : integer Get X Extent
getExtentY ( ) : integer Get Y Extent
getHashCode ( ) : string Get hash code
getHashIndex ( ) : string Get hash index
getOffsetX ( ) : integer Get X Offset
getOffsetY ( ) : integer Get Y Offset
getParent ( ) : PhpPresentation Get parent
getRelsIndex ( ) : string
getShapeCollection ( ) : ArrayObject | AbstractShape[] Get collection of shapes
getTransition ( ) : PhpOffice\PhpPresentation\Slide\Transition
rebindParent ( PhpPresentation $parent ) : Slide Re-bind parent
setBackground ( AbstractBackground $background = null ) : Slide
setHashIndex ( string $value ) Set hash index
setRelsIndex ( string $indexName )
setShapeCollection ( $shapeCollection = [] ) : AbstractSlide Get collection of shapes
setTransition ( PhpOffice\PhpPresentation\Slide\Transition $transition = null ) : Slide

Method Details

addShape() public méthode

Add shape to slide
public addShape ( AbstractShape $shape ) : AbstractShape
$shape PhpOffice\PhpPresentation\AbstractShape
Résultat PhpOffice\PhpPresentation\AbstractShape

createChartShape() public méthode

Create chart shape
public createChartShape ( ) : Chart
Résultat PhpOffice\PhpPresentation\Shape\Chart

createDrawingShape() public méthode

Create drawing shape
public createDrawingShape ( ) : File
Résultat PhpOffice\PhpPresentation\Shape\Drawing\File

createGroup() public méthode

Creates a group within this slide
public createGroup ( ) : Group
Résultat PhpOffice\PhpPresentation\Shape\Group

createLineShape() public méthode

Create line shape
public createLineShape ( integer $fromX, integer $fromY, integer $toX, integer $toY ) : Line
$fromX integer Starting point x offset
$fromY integer Starting point y offset
$toX integer Ending point x offset
$toY integer Ending point y offset
Résultat PhpOffice\PhpPresentation\Shape\Line

createRichTextShape() public méthode

Create rich text shape
public createRichTextShape ( ) : RichText
Résultat PhpOffice\PhpPresentation\Shape\RichText

createTableShape() public méthode

Create table shape
public createTableShape ( integer $columns = 1 ) : Table
$columns integer Number of columns
Résultat PhpOffice\PhpPresentation\Shape\Table

getBackground() public méthode

public getBackground ( ) : AbstractBackground
Résultat AbstractBackground

getExtentX() public méthode

Get X Extent
public getExtentX ( ) : integer
Résultat integer

getExtentY() public méthode

Get Y Extent
public getExtentY ( ) : integer
Résultat integer

getHashCode() public méthode

Get hash code
public getHashCode ( ) : string
Résultat string Hash code

getHashIndex() public méthode

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public getHashIndex ( ) : string
Résultat string Hash index

getOffsetX() public méthode

Get X Offset
public getOffsetX ( ) : integer
Résultat integer

getOffsetY() public méthode

Get Y Offset
public getOffsetY ( ) : integer
Résultat integer

getParent() public méthode

Get parent
public getParent ( ) : PhpPresentation
Résultat PhpOffice\PhpPresentation\PhpPresentation

getRelsIndex() public méthode

public getRelsIndex ( ) : string
Résultat string

getShapeCollection() public méthode

Get collection of shapes
public getShapeCollection ( ) : ArrayObject | AbstractShape[]
Résultat ArrayObject | PhpOffice\PhpPresentation\AbstractShape[]

getTransition() public méthode

public getTransition ( ) : PhpOffice\PhpPresentation\Slide\Transition
Résultat PhpOffice\PhpPresentation\Slide\Transition

rebindParent() public méthode

Re-bind parent
public rebindParent ( PhpPresentation $parent ) : Slide
$parent PhpOffice\PhpPresentation\PhpPresentation
Résultat PhpOffice\PhpPresentation\Slide

setBackground() public méthode

public setBackground ( AbstractBackground $background = null ) : Slide
$background AbstractBackground
Résultat PhpOffice\PhpPresentation\Slide

setHashIndex() public méthode

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public setHashIndex ( string $value )
$value string Hash index

setRelsIndex() public méthode

public setRelsIndex ( string $indexName )
$indexName string

setShapeCollection() public méthode

Get collection of shapes
public setShapeCollection ( $shapeCollection = [] ) : AbstractSlide
Résultat AbstractSlide

setTransition() public méthode

public setTransition ( PhpOffice\PhpPresentation\Slide\Transition $transition = null ) : Slide
$transition PhpOffice\PhpPresentation\Slide\Transition
Résultat PhpOffice\PhpPresentation\Slide

Property Details

$background protected_oe property

Background of the slide
protected AbstractBackground $background
Résultat AbstractBackground

$extentX protected_oe property

Extent X
protected int $extentX
Résultat integer

$extentY protected_oe property

Extent Y
protected int $extentY
Résultat integer

$hashIndex protected_oe property

Hash index
protected string $hashIndex
Résultat string

$identifier protected_oe property

Slide identifier
protected string $identifier
Résultat string

$offsetX protected_oe property

Offset X
protected int $offsetX
Résultat integer

$offsetY protected_oe property

Offset Y
protected int $offsetY
Résultat integer

$parent protected_oe property

Parent presentation
protected PhpPresentation,PhpOffice\PhpPresentation $parent
Résultat PhpOffice\PhpPresentation\PhpPresentation

$relsIndex protected_oe property

protected string $relsIndex
Résultat string

$shapeCollection protected_oe property

Collection of shapes
protected ArrayObject|AbstractShape[],PhpOffice\PhpPresentation $shapeCollection
Résultat ArrayObject | PhpOffice\PhpPresentation\AbstractShape[]

$slideTransition protected_oe property

protected Transition,PhpOffice\PhpPresentation\Slide $slideTransition
Résultat PhpOffice\PhpPresentation\Slide\Transition