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.

(no description)

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

Defines 1 class

ChartColor:: (15 methods):
  __construct()
  getValue()
  setValue()
  getType()
  setType()
  getAlpha()
  setAlpha()
  getBrightness()
  setBrightness()
  setColorProperties()
  setColorPropertiesArray()
  isUsable()
  getColorProperty()
  alphaToXml()
  alphaFromXml()


Class: ChartColor  - X-Ref

__construct($value = '', ?int $alpha = null, ?string $type = null, ?int $brightness = null)   X-Ref

param: string|string[] $value

getValue()   X-Ref
No description

setValue(string $value)   X-Ref
No description

getType()   X-Ref
No description

setType(string $type)   X-Ref
No description

getAlpha()   X-Ref
No description

setAlpha(?int $alpha)   X-Ref
No description

getBrightness()   X-Ref
No description

setBrightness(?int $brightness)   X-Ref
No description

setColorProperties(?string $color, $alpha = null, ?string $type = null, $brightness = null)   X-Ref

param: null|float|int|string $alpha
param: null|float|int|string $brightness

setColorPropertiesArray(array $color)   X-Ref
No description

isUsable()   X-Ref
No description

getColorProperty($propertyName)   X-Ref
Get Color Property.

param: string $propertyName
return: null|int|string

alphaToXml(int $alpha)   X-Ref
No description

alphaFromXml($alpha)   X-Ref

param: float|int|string $alpha