Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
|
Public Member Functions | |
__construct () | |
Create a new Comment. | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. | |
__toString () | |
Convert to string. | |
getAlignment () | |
getAuthor () | |
Get Author. | |
getBackgroundImage () | |
Returns background image. | |
getFillColor () | |
Get fill color. | |
getHashCode () | |
Get hash code. | |
getHeight () | |
Get comment height (CSS style, i.e. | |
getMarginLeft () | |
Get left margin (CSS style, i.e. | |
getMarginTop () | |
Get top margin (CSS style, i.e. | |
getText () | |
Get Rich text comment. | |
getTextboxDirection () | |
getVisible () | |
Is the comment visible by default? | |
getWidth () | |
Get comment width (CSS style, i.e. | |
hasBackgroundImage () | |
Check is background image exists. | |
setAlignment (string $alignment) | |
setAuthor (string $author) | |
Set Author. | |
setBackgroundImage (Drawing $objDrawing) | |
Sets background image. | |
setFillColor (Color $color) | |
Set fill color. | |
setHeight (string $height) | |
Set comment height (CSS style, i.e. | |
setMarginLeft (string $margin) | |
Set left margin (CSS style, i.e. | |
setMarginTop (string $margin) | |
Set top margin (CSS style, i.e. | |
setSizeAsBackgroundImage () | |
Sets size of comment as size of background image. | |
setText (RichText $text) | |
Set Rich text comment. | |
setTextboxDirection (string $textboxDirection) | |
setVisible (bool $visibility) | |
Set comment default visibility. | |
setWidth (string $width) | |
Set comment width (CSS style, i.e. | |
Public Attributes | |
const | TEXTBOX_DIRECTION_AUTO = 'auto' |
const | TEXTBOX_DIRECTION_CONTEXT = 'auto' |
const | TEXTBOX_DIRECTION_LTR = 'ltr' |
const | TEXTBOX_DIRECTION_RTL = 'rtl' |
PhpOffice\PhpSpreadsheet\Comment::getHashCode | ( | ) |
Get hash code.
Implements PhpOffice\PhpSpreadsheet\IComparable.
PhpOffice\PhpSpreadsheet\Comment::getHeight | ( | ) |
Get comment height (CSS style, i.e.
XXpx or YYpt).
PhpOffice\PhpSpreadsheet\Comment::getMarginLeft | ( | ) |
Get left margin (CSS style, i.e.
XXpx or YYpt).
PhpOffice\PhpSpreadsheet\Comment::getMarginTop | ( | ) |
Get top margin (CSS style, i.e.
XXpx or YYpt).
PhpOffice\PhpSpreadsheet\Comment::getWidth | ( | ) |
Get comment width (CSS style, i.e.
XXpx or YYpt).
PhpOffice\PhpSpreadsheet\Comment::setHeight | ( | string | $height | ) |
Set comment height (CSS style, i.e.
XXpx or YYpt). Default unit is pt.
PhpOffice\PhpSpreadsheet\Comment::setMarginLeft | ( | string | $margin | ) |
Set left margin (CSS style, i.e.
XXpx or YYpt). Default unit is pt.
PhpOffice\PhpSpreadsheet\Comment::setMarginTop | ( | string | $margin | ) |
Set top margin (CSS style, i.e.
XXpx or YYpt). Default unit is pt.
PhpOffice\PhpSpreadsheet\Comment::setWidth | ( | string | $width | ) |
Set comment width (CSS style, i.e.
XXpx or YYpt). Default unit is pt.