Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 543 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: Layout  - X-Ref

__construct(array $layout = [])   X-Ref
Create a new Layout.


initBoolean(array $layout, string $name)   X-Ref
No description

initColor(array $layout, string $name)   X-Ref
No description

getLayoutTarget()   X-Ref
Get Layout Target.

return: string

setLayoutTarget($target)   X-Ref
Set Layout Target.

param: string $target
return: $this

getXMode()   X-Ref
Get X-Mode.

return: string

setXMode($mode)   X-Ref
Set X-Mode.

param: string $mode
return: $this

getYMode()   X-Ref
Get Y-Mode.

return: string

setYMode($mode)   X-Ref
Set Y-Mode.

param: string $mode
return: $this

getXPosition()   X-Ref
Get X-Position.

return: number

setXPosition($position)   X-Ref
Set X-Position.

param: float $position
return: $this

getYPosition()   X-Ref
Get Y-Position.

return: number

setYPosition($position)   X-Ref
Set Y-Position.

param: float $position
return: $this

getWidth()   X-Ref
Get Width.

return: number

setWidth($width)   X-Ref
Set Width.

param: float $width
return: $this

getHeight()   X-Ref
Get Height.

return: number

setHeight($height)   X-Ref
Set Height.

param: float $height
return: $this

getShowLegendKey()   X-Ref
No description

setShowLegendKey(?bool $showLegendKey)   X-Ref
Set show legend key
Specifies that legend keys should be shown in data labels.


getShowVal()   X-Ref
No description

setShowVal(?bool $showDataLabelValues)   X-Ref
Set show val
Specifies that the value should be shown in data labels.


getShowCatName()   X-Ref
No description

setShowCatName(?bool $showCategoryName)   X-Ref
Set show cat name
Specifies that the category name should be shown in data labels.


getShowSerName()   X-Ref
No description

setShowSerName(?bool $showSeriesName)   X-Ref
Set show data series name.
Specifies that the series name should be shown in data labels.


getShowPercent()   X-Ref
No description

setShowPercent(?bool $showPercentage)   X-Ref
Set show percentage.
Specifies that the percentage should be shown in data labels.


getShowBubbleSize()   X-Ref
No description

setShowBubbleSize(?bool $showBubbleSize)   X-Ref
Set show bubble size.
Specifies that the bubble size should be shown in data labels.


getShowLeaderLines()   X-Ref
No description

setShowLeaderLines(?bool $showLeaderLines)   X-Ref
Set show leader lines.
Specifies that leader lines should be shown in data labels.


getLabelFillColor()   X-Ref
No description

setLabelFillColor(?ChartColor $chartColor)   X-Ref
No description

getLabelBorderColor()   X-Ref
No description

setLabelBorderColor(?ChartColor $chartColor)   X-Ref
No description

getLabelFontColor()   X-Ref
No description

setLabelFontColor(?ChartColor $chartColor)   X-Ref
No description

getDLblPos()   X-Ref
No description

setDLblPos(string $dLblPos)   X-Ref
No description

getNumFmtCode()   X-Ref
No description

setNumFmtCode(string $numFmtCode)   X-Ref
No description

getNumFmtLinked()   X-Ref
No description

setNumFmtLinked(bool $numFmtLinked)   X-Ref
No description