Documentation

SlideMaster extends AbstractSlide
in package
implements ComparableInterface, ShapeContainerInterface

Table of Contents

Interfaces

ComparableInterface
PhpOffice\PhpPresentation\ComparableInterface.
ShapeContainerInterface
PhpOffice\PhpPresentation\ShapeContainerInterface.

Properties

$colorMap  : ColorMap
Mapping of colors to the theme.
$arraySchemeColor  : array<string|int, SchemeColor>
$background  : AbstractBackground
Background of the slide.
$defaultSchemeColor  : array<string, string>
$extentX  : int
Extent X.
$extentY  : int
Extent Y.
$hashIndex  : int
Hash index.
$identifier  : string
Slide identifier.
$offsetX  : int
Offset X.
$offsetY  : int
Offset Y.
$parent  : null|PhpPresentation
Parent presentation.
$relsIndex  : string
$shapeCollection  : array<int, AbstractShape>
Collection of shapes.
$slideLayouts  : array<string|int, SlideLayout>
Collection of Slide objects.
$slideTransition  : null|Transition
$textStyles  : TextStyle

Methods

__construct()  : mixed
Create a new slideMaster.
addSchemeColor()  : self
addShape()  : static
addSlideLayout()  : SlideLayout
Add slideLayout.
createChartShape()  : Chart
Create chart shape.
createDrawingShape()  : File
Create drawing shape.
createGroup()  : Group
Creates a group within this slide.
createLineShape()  : Line
Create line shape.
createRichTextShape()  : RichText
Create rich text shape.
createSlideLayout()  : SlideLayout
Create a slideLayout and add it to this presentation.
createTableShape()  : Table
Create table shape.
getAllSchemeColors()  : array<string|int, SchemeColor>
getAllSlideLayouts()  : array<string|int, SlideLayout>
getBackground()  : AbstractBackground|null
getExtentX()  : int
Get X Extent.
getExtentY()  : int
Get Y Extent.
getHashCode()  : string
Get hash code.
getHashIndex()  : null|int
Get hash index.
getOffsetX()  : int
Get X Offset.
getOffsetY()  : int
Get Y Offset.
getParent()  : PhpPresentation|null
Get parent.
getRelsIndex()  : string
getShapeCollection()  : array<int, AbstractShape>
Get collection of shapes.
getTextStyles()  : TextStyle
getTransition()  : Transition|null
rebindParent()  : self
Re-bind parent.
searchShapes()  : array<int, AbstractShape>
Search into collection of shapes for a name or/and a type.
setBackground()  : self
setHashIndex()  : $this
Set hash index.
setRelsIndex()  : self
setShapeCollection()  : self
Get collection of shapes.
setTextStyles()  : self
setTransition()  : self
unsetShape()  : static

Properties

$defaultSchemeColor

protected array<string, string> $defaultSchemeColor = ['dk1' => '000000', 'lt1' => 'FFFFFF', 'dk2' => '1F497D', 'lt2' => 'EEECE1', 'accent1' => '4F81BD', 'accent2' => 'C0504D', 'accent3' => '9BBB59', 'accent4' => '8064A2', 'accent5' => '4BACC6', 'accent6' => 'F79646', 'hlink' => '0000FF', 'folHlink' => '800080']

Methods

createLineShape()

Create line shape.

public createLineShape(int $fromX, int $fromY, int $toX, int $toY) : Line
Parameters
$fromX : int

Starting point x offset

$fromY : int

Starting point y offset

$toX : int

Ending point x offset

$toY : int

Ending point y offset

Return values
Line

createTableShape()

Create table shape.

public createTableShape([int $columns = 1 ]) : Table
Parameters
$columns : int = 1

Number of columns

Return values
Table

getExtentX()

Get X Extent.

public getExtentX() : int
Return values
int

getExtentY()

Get Y Extent.

public getExtentY() : int
Return values
int

getHashCode()

Get hash code.

public getHashCode() : string
Return values
string

Hash code

getHashIndex()

Get hash index.

public getHashIndex() : null|int

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.

Return values
null|int

Hash index

getOffsetX()

Get X Offset.

public getOffsetX() : int
Return values
int

getOffsetY()

Get Y Offset.

public getOffsetY() : int
Return values
int

getRelsIndex()

public getRelsIndex() : string
Return values
string

searchShapes()

Search into collection of shapes for a name or/and a type.

public searchShapes([string|null $name = null ][, string|null $type = null ]) : array<int, AbstractShape>
Parameters
$name : string|null = null
$type : string|null = null
Return values
array<int, AbstractShape>

setHashIndex()

Set hash index.

public setHashIndex(int $value) : $this

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.

Parameters
$value : int

Hash index

Return values
$this

setRelsIndex()

public setRelsIndex(string $indexName) : self
Parameters
$indexName : string
Return values
self

setShapeCollection()

Get collection of shapes.

public setShapeCollection([array<int, AbstractShape$shapeCollection = [] ]) : self
Parameters
$shapeCollection : array<int, AbstractShape> = []
Return values
self

unsetShape()

public unsetShape(int $key) : static
Parameters
$key : int
Return values
static

        
On this page

Search results