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 401 and 402] [Versions 401 and 403]

(no description)

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

Defines 1 class

Shadow:: (17 methods):
  __construct()
  getVisible()
  setVisible()
  getBlurRadius()
  setBlurRadius()
  getDistance()
  setDistance()
  getDirection()
  setDirection()
  getAlignment()
  setAlignment()
  getColor()
  setColor()
  getAlpha()
  setAlpha()
  getHashCode()
  __clone()


Class: Shadow  - X-Ref

__construct()   X-Ref
Create a new Shadow.


getVisible()   X-Ref
Get Visible.

return: bool

setVisible($visible)   X-Ref
Set Visible.

param: bool $visible
return: $this

getBlurRadius()   X-Ref
Get Blur radius.

return: int

setBlurRadius($blurRadius)   X-Ref
Set Blur radius.

param: int $blurRadius
return: $this

getDistance()   X-Ref
Get Shadow distance.

return: int

setDistance($distance)   X-Ref
Set Shadow distance.

param: int $distance
return: $this

getDirection()   X-Ref
Get Shadow direction (in degrees).

return: int

setDirection($direction)   X-Ref
Set Shadow direction (in degrees).

param: int $direction
return: $this

getAlignment()   X-Ref
Get Shadow alignment.

return: string

setAlignment($alignment)   X-Ref
Set Shadow alignment.

param: string $alignment
return: $this

getColor()   X-Ref
Get Color.

return: Color

setColor(?Color $color = null)   X-Ref
Set Color.

return: $this

getAlpha()   X-Ref
Get Alpha.

return: int

setAlpha($alpha)   X-Ref
Set Alpha.

param: int $alpha
return: $this

getHashCode()   X-Ref
Get hash code.

return: string Hash code

__clone()   X-Ref
Implement PHP __clone to create a deep clone, not just a shallow copy.