Comment
extends AbstractShape
in package
implements
ComparableInterface
Comment shape.
Table of Contents
Interfaces
- ComparableInterface
- PhpOffice\PhpPresentation\ComparableInterface.
Properties
- $author : null|Author
- $container : null|ShapeContainerInterface
- Container.
- $dtComment : int
- $height : int
- Height.
- $hyperlink : null|Hyperlink
- $name : string
- Name.
- $offsetX : int
- Offset X.
- $offsetY : int
- Offset Y.
- $placeholder : null|Placeholder
- $rotation : int
- Rotation.
- $shadow : null|Shadow
- Shadow.
- $text : string
- $width : int
- Width.
- $border : Border
- Border.
- $fill : null|Fill
- $hashIndex : int
- Hash index.
Methods
- __clone() : mixed
- Magic Method : clone.
- __construct() : mixed
- Create a new self.
- getAuthor() : Author|null
- getBorder() : Border
- getContainer() : ShapeContainerInterface|null
- Get Container, Slide or Group.
- getDate() : int
- getFill() : Fill|null
- getHashCode() : string
- Get hash code.
- getHashIndex() : null|int
- Get hash index.
- getHeight() : null|int
- Comment has not height.
- getHyperlink() : Hyperlink
- Get Hyperlink.
- getName() : string
- Get Name.
- getOffsetX() : int
- Get OffsetX.
- getOffsetY() : int
- Get OffsetY.
- getPlaceholder() : Placeholder|null
- getRotation() : int
- Get Rotation.
- getShadow() : Shadow|null
- getText() : string
- getWidth() : null|int
- Comment has not width.
- hasHyperlink() : bool
- Has Hyperlink?
- isPlaceholder() : bool
- setAuthor() : self
- setContainer() : $this
- Set Container, Slide or Group.
- setDate() : Comment
- setFill() : self
- setHashIndex() : $this
- Set hash index.
- setHeight() : $this
- Set Height.
- setHyperlink() : self
- Set Hyperlink.
- setName() : static
- Set Name.
- setOffsetX() : $this
- Set OffsetX.
- setOffsetY() : $this
- Set OffsetY.
- setPlaceHolder() : self
- setRotation() : $this
- Set Rotation.
- setShadow() : $this
- setText() : Comment
- setWidth() : self
- Set Width.
- setWidthAndHeight() : self
- Set width and height with proportional resize.
Properties
$author
protected
null|Author
$author
$container
Container.
protected
null|ShapeContainerInterface
$container
$dtComment
protected
int
$dtComment
$height
Height.
protected
int
$height
$hyperlink
protected
null|Hyperlink
$hyperlink
$name
Name.
protected
string
$name
= ''
$offsetX
Offset X.
protected
int
$offsetX
$offsetY
Offset Y.
protected
int
$offsetY
$placeholder
protected
null|Placeholder
$placeholder
$rotation
Rotation.
protected
int
$rotation
$shadow
Shadow.
protected
null|Shadow
$shadow
$text
protected
string
$text
$width
Width.
protected
int
$width
$border
Border.
private
Border
$border
$fill
private
null|Fill
$fill
$hashIndex
Hash index.
private
int
$hashIndex
Methods
__clone()
Magic Method : clone.
public
__clone() : mixed
__construct()
Create a new self.
public
__construct() : mixed
getAuthor()
public
getAuthor() : Author|null
Return values
Author|nullgetBorder()
public
getBorder() : Border
Return values
BordergetContainer()
Get Container, Slide or Group.
public
getContainer() : ShapeContainerInterface|null
Return values
ShapeContainerInterface|nullgetDate()
public
getDate() : int
Return values
intgetFill()
public
getFill() : Fill|null
Return values
Fill|nullgetHashCode()
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
getHeight()
Comment has not height.
public
getHeight() : null|int
Return values
null|intgetHyperlink()
Get Hyperlink.
public
getHyperlink() : Hyperlink
Return values
HyperlinkgetName()
Get Name.
public
getName() : string
Return values
stringgetOffsetX()
Get OffsetX.
public
getOffsetX() : int
Return values
intgetOffsetY()
Get OffsetY.
public
getOffsetY() : int
Return values
intgetPlaceholder()
public
getPlaceholder() : Placeholder|null
Return values
Placeholder|nullgetRotation()
Get Rotation.
public
getRotation() : int
Return values
intgetShadow()
public
getShadow() : Shadow|null
Return values
Shadow|nullgetText()
public
getText() : string
Return values
stringgetWidth()
Comment has not width.
public
getWidth() : null|int
Return values
null|inthasHyperlink()
Has Hyperlink?
public
hasHyperlink() : bool
Return values
boolisPlaceholder()
public
isPlaceholder() : bool
Return values
boolsetAuthor()
public
setAuthor(Author $author) : self
Parameters
- $author : Author
Return values
selfsetContainer()
Set Container, Slide or Group.
public
setContainer([ShapeContainerInterface|null $pValue = null ][, bool $pOverrideOld = false ]) : $this
Parameters
- $pValue : ShapeContainerInterface|null = null
- $pOverrideOld : bool = false
-
If a Slide has already been assigned, overwrite it and remove image from old Slide?
Return values
$thissetDate()
public
setDate(int $dtComment) : Comment
Parameters
- $dtComment : int
-
timestamp of the comment
Return values
CommentsetFill()
public
setFill([Fill|null $pValue = null ]) : self
Parameters
- $pValue : Fill|null = null
Return values
selfsetHashIndex()
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
$thissetHeight()
Set Height.
public
setHeight([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetHyperlink()
Set Hyperlink.
public
setHyperlink([Hyperlink|null $pHyperlink = null ]) : self
Parameters
- $pHyperlink : Hyperlink|null = null
Return values
selfsetName()
Set Name.
public
setName([string $pValue = '' ]) : static
Parameters
- $pValue : string = ''
Return values
staticsetOffsetX()
Set OffsetX.
public
setOffsetX([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetOffsetY()
Set OffsetY.
public
setOffsetY([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetPlaceHolder()
public
setPlaceHolder(Placeholder $placeholder) : self
Parameters
- $placeholder : Placeholder
Return values
selfsetRotation()
Set Rotation.
public
setRotation([int $pValue = 0 ]) : $this
Parameters
- $pValue : int = 0
Return values
$thissetShadow()
public
setShadow([Shadow|null $pValue = null ]) : $this
Parameters
- $pValue : Shadow|null = null
Return values
$thissetText()
public
setText([string $text = '' ]) : Comment
Parameters
- $text : string = ''
Return values
CommentsetWidth()
Set Width.
public
setWidth([int $pValue = 0 ]) : self
Parameters
- $pValue : int = 0
Return values
selfsetWidthAndHeight()
Set width and height with proportional resize.
public
setWidthAndHeight([int $width = 0 ][, int $height = 0 ]) : self
Parameters
- $width : int = 0
- $height : int = 0