Comment
in package
implements
IComparable, Stringable
Table of Contents
Interfaces
- IComparable
- Stringable
Constants
- TEXTBOX_DIRECTION_AUTO = 'auto'
- TEXTBOX_DIRECTION_CONTEXT = 'auto'
- TEXTBOX_DIRECTION_LTR = 'ltr'
- TEXTBOX_DIRECTION_RTL = 'rtl'
Properties
- $alignment : string
- Alignment.
- $author : string
- Author.
- $backgroundImage : Drawing
- Background image in comment.
- $fillColor : Color
- Comment fill color.
- $height : string
- Comment height (CSS style, i.e. XXpx or YYpt).
- $marginLeft : string
- Left margin (CSS style, i.e. XXpx or YYpt).
- $marginTop : string
- Top margin (CSS style, i.e. XXpx or YYpt).
- $text : RichText
- Rich text comment.
- $textboxDirection : string
- $visible : bool
- Visible.
- $width : string
- Comment width (CSS style, i.e. XXpx or YYpt).
Methods
- __clone() : mixed
- Implement PHP __clone to create a deep clone, not just a shallow copy.
- __construct() : mixed
- Create a new Comment.
- __toString() : string
- Convert to string.
- getAlignment() : string
- getAuthor() : string
- Get Author.
- getBackgroundImage() : Drawing
- Returns background image.
- getFillColor() : Color
- Get fill color.
- getHashCode() : string
- Get hash code.
- getHeight() : string
- Get comment height (CSS style, i.e. XXpx or YYpt).
- getMarginLeft() : string
- Get left margin (CSS style, i.e. XXpx or YYpt).
- getMarginTop() : string
- Get top margin (CSS style, i.e. XXpx or YYpt).
- getText() : RichText
- Get Rich text comment.
- getTextboxDirection() : string
- getVisible() : bool
- Is the comment visible by default?
- getWidth() : string
- Get comment width (CSS style, i.e. XXpx or YYpt).
- hasBackgroundImage() : bool
- Check is background image exists.
- setAlignment() : self
- setAuthor() : self
- Set Author.
- setBackgroundImage() : self
- Sets background image.
- setFillColor() : self
- Set fill color.
- setHeight() : self
- Set comment height (CSS style, i.e. XXpx or YYpt). Default unit is pt.
- setMarginLeft() : self
- Set left margin (CSS style, i.e. XXpx or YYpt). Default unit is pt.
- setMarginTop() : self
- Set top margin (CSS style, i.e. XXpx or YYpt). Default unit is pt.
- setSizeAsBackgroundImage() : self
- Sets size of comment as size of background image.
- setText() : self
- Set Rich text comment.
- setTextboxDirection() : self
- setVisible() : self
- Set comment default visibility.
- setWidth() : self
- Set comment width (CSS style, i.e. XXpx or YYpt). Default unit is pt.
Constants
TEXTBOX_DIRECTION_AUTO
public
mixed
TEXTBOX_DIRECTION_AUTO
= 'auto'
TEXTBOX_DIRECTION_CONTEXT
public
mixed
TEXTBOX_DIRECTION_CONTEXT
= 'auto'
TEXTBOX_DIRECTION_LTR
public
mixed
TEXTBOX_DIRECTION_LTR
= 'ltr'
TEXTBOX_DIRECTION_RTL
public
mixed
TEXTBOX_DIRECTION_RTL
= 'rtl'
Properties
$alignment
Alignment.
private
string
$alignment
$author
Author.
private
string
$author
$backgroundImage
Background image in comment.
private
Drawing
$backgroundImage
$fillColor
Comment fill color.
private
Color
$fillColor
$height
Comment height (CSS style, i.e. XXpx or YYpt).
private
string
$height
= '55.5pt'
$marginLeft
Left margin (CSS style, i.e. XXpx or YYpt).
private
string
$marginLeft
= '59.25pt'
$marginTop
Top margin (CSS style, i.e. XXpx or YYpt).
private
string
$marginTop
= '1.5pt'
$text
Rich text comment.
private
RichText
$text
$textboxDirection
private
string
$textboxDirection
= ''
$visible
Visible.
private
bool
$visible
= false
$width
Comment width (CSS style, i.e. XXpx or YYpt).
private
string
$width
= '96pt'
Methods
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
public
__clone() : mixed
__construct()
Create a new Comment.
public
__construct() : mixed
__toString()
Convert to string.
public
__toString() : string
Return values
stringgetAlignment()
public
getAlignment() : string
Return values
stringgetAuthor()
Get Author.
public
getAuthor() : string
Return values
stringgetBackgroundImage()
Returns background image.
public
getBackgroundImage() : Drawing
Return values
DrawinggetFillColor()
Get fill color.
public
getFillColor() : Color
Return values
ColorgetHashCode()
Get hash code.
public
getHashCode() : string
Return values
string —Hash code
getHeight()
Get comment height (CSS style, i.e. XXpx or YYpt).
public
getHeight() : string
Return values
stringgetMarginLeft()
Get left margin (CSS style, i.e. XXpx or YYpt).
public
getMarginLeft() : string
Return values
stringgetMarginTop()
Get top margin (CSS style, i.e. XXpx or YYpt).
public
getMarginTop() : string
Return values
stringgetText()
Get Rich text comment.
public
getText() : RichText
Return values
RichTextgetTextboxDirection()
public
getTextboxDirection() : string
Return values
stringgetVisible()
Is the comment visible by default?
public
getVisible() : bool
Return values
boolgetWidth()
Get comment width (CSS style, i.e. XXpx or YYpt).
public
getWidth() : string
Return values
stringhasBackgroundImage()
Check is background image exists.
public
hasBackgroundImage() : bool
Return values
boolsetAlignment()
public
setAlignment(string $alignment) : self
Parameters
- $alignment : string
Return values
selfsetAuthor()
Set Author.
public
setAuthor(string $author) : self
Parameters
- $author : string
Return values
selfsetBackgroundImage()
Sets background image.
public
setBackgroundImage(Drawing $objDrawing) : self
Parameters
- $objDrawing : Drawing
Return values
selfsetFillColor()
Set fill color.
public
setFillColor(Color $color) : self
Parameters
- $color : Color
Return values
selfsetHeight()
Set comment height (CSS style, i.e. XXpx or YYpt). Default unit is pt.
public
setHeight(string $height) : self
Parameters
- $height : string
Return values
selfsetMarginLeft()
Set left margin (CSS style, i.e. XXpx or YYpt). Default unit is pt.
public
setMarginLeft(string $margin) : self
Parameters
- $margin : string
Return values
selfsetMarginTop()
Set top margin (CSS style, i.e. XXpx or YYpt). Default unit is pt.
public
setMarginTop(string $margin) : self
Parameters
- $margin : string
Return values
selfsetSizeAsBackgroundImage()
Sets size of comment as size of background image.
public
setSizeAsBackgroundImage() : self
Return values
selfsetText()
Set Rich text comment.
public
setText(RichText $text) : self
Parameters
- $text : RichText
Return values
selfsetTextboxDirection()
public
setTextboxDirection(string $textboxDirection) : self
Parameters
- $textboxDirection : string
Return values
selfsetVisible()
Set comment default visibility.
public
setVisible(bool $visibility) : self
Parameters
- $visibility : bool
Return values
selfsetWidth()
Set comment width (CSS style, i.e. XXpx or YYpt). Default unit is pt.
public
setWidth(string $width) : self
Parameters
- $width : string