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.

Class: Properties  - X-Ref

Created by PhpStorm.
User: nhw2h8s
Date: 7/2/14
Time: 5:45 PM.

__construct()   X-Ref
No description

getObjectState()   X-Ref
Get Object State.

return: bool

activateObject()   X-Ref
Change Object State to True.

return: $this

pointsToXml(float $width)   X-Ref
No description

xmlToPoints(string $width)   X-Ref
No description

angleToXml(float $angle)   X-Ref
No description

xmlToAngle(string $angle)   X-Ref
No description

tenthOfPercentToXml(float $value)   X-Ref
No description

xmlToTenthOfPercent(string $value)   X-Ref
No description

setColorProperties(?string $color, $alpha, ?string $colorType)   X-Ref

param: null|float|int|string $alpha

getShadowPresetsMap(int $presetsOption)   X-Ref
No description

getArrayElementsValue($properties, $elements)   X-Ref
Get value of array element.

param: mixed $properties
param: mixed $elements
return: mixed

setGlowProperties($size, $colorValue = null, $colorAlpha = null, $colorType = null)   X-Ref
Set Glow Properties.

param: float $size
param: ?string $colorValue
param: ?int $colorAlpha
param: ?string $colorType

getGlowProperty($property)   X-Ref
Get Glow Property.

param: array|string $property
return: null|array|float|int|string

getGlowColor($propertyName)   X-Ref
Get Glow Color Property.

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

getGlowColorObject()   X-Ref
No description

getGlowSize()   X-Ref
Get Glow Size.

return: ?float

setGlowSize($size)   X-Ref
Set Glow Size.

param: ?float $size
return: $this

setSoftEdges($size)   X-Ref
Set Soft Edges Size.

param: float $size

getSoftEdgesSize()   X-Ref
Get Soft Edges Size.

return: string

setShadowProperty(string $propertyName, $value)   X-Ref

param: mixed $value

setShadowProperties($presets, $colorValue = null, $colorType = null, $colorAlpha = null, $blur = null, $angle = null, $distance = null)   X-Ref
Set Shadow Properties.

param: int $presets
param: string $colorValue
param: string $colorType
param: null|float|int|string $colorAlpha
param: null|float $blur
param: null|int $angle
param: null|float $distance

setShadowPresetsProperties($presets)   X-Ref
Set Shadow Presets Properties.

param: int $presets
return: $this

setShadowPropertiesMapValues(array $propertiesMap, &$reference = null)   X-Ref
Set Shadow Properties Values.

param: mixed $reference
return: $this

setShadowBlur($blur)   X-Ref
Set Shadow Blur.

param: ?float $blur
return: $this

setShadowAngle($angle)   X-Ref
Set Shadow Angle.

param: null|float|int|string $angle
return: $this

setShadowDistance($distance)   X-Ref
Set Shadow Distance.

param: ?float $distance
return: $this

getShadowColorObject()   X-Ref
No description

getShadowProperty($elements)   X-Ref
Get Shadow Property.

param: string|string[] $elements
return: array|string

getShadowArray()   X-Ref
No description

copyLineStyles(self $otherProperties)   X-Ref
No description

getLineColor()   X-Ref
No description

setLineColorProperties($value, $alpha = null, $colorType = null)   X-Ref
Set Line Color Properties.

param: string $value
param: ?int $alpha
param: ?string $colorType

getLineColorProperty($propertyName)   X-Ref
Get Line Color Property.

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

setLineStyleProperties($lineWidth = null, $compoundType = '', $dashType = '', $capType = '', $joinType = '', $headArrowType = '', $headArrowSize = '', $endArrowType = '', $endArrowSize = '', $headArrowWidth = '', $headArrowLength = '', $endArrowWidth = '', $endArrowLength = '')   X-Ref
Set Line Style Properties.

param: null|float|int|string $lineWidth
param: string $compoundType
param: string $dashType
param: string $capType
param: string $joinType
param: string $headArrowType
param: string $headArrowSize
param: string $endArrowType
param: string $endArrowSize
param: string $headArrowWidth
param: string $headArrowLength
param: string $endArrowWidth
param: string $endArrowLength

getLineStyleArray()   X-Ref
No description

setLineStyleArray(array $lineStyleProperties = [])   X-Ref
No description

setLineStyleProperty(string $propertyName, $value)   X-Ref

param: mixed $value

getLineStyleProperty($elements)   X-Ref
Get Line Style Property.

param: array|string $elements
return: string

getLineStyleArrowSize($arraySelector, $arrayKaySelector)   X-Ref
Get Line Style Arrow Size.

param: int $arraySelector
param: string $arrayKaySelector
return: string

getLineStyleArrowParameters($arrowSelector, $propertySelector)   X-Ref
Get Line Style Arrow Parameters.

param: string $arrowSelector
param: string $propertySelector
return: string

getLineStyleArrowWidth($arrow)   X-Ref
Get Line Style Arrow Width.

param: string $arrow
return: string

getLineStyleArrowLength($arrow)   X-Ref
Get Line Style Arrow Excel Length.

param: string $arrow
return: string