Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

(no description)

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

Defines 1 class


Class: DataValidation  - X-Ref

__construct()   X-Ref
Create a new DataValidation.


getFormula1()   X-Ref
Get Formula 1.

return: string

setFormula1($value)   X-Ref
Set Formula 1.

param: string $value
return: $this

getFormula2()   X-Ref
Get Formula 2.

return: string

setFormula2($value)   X-Ref
Set Formula 2.

param: string $value
return: $this

getType()   X-Ref
Get Type.

return: string

setType($value)   X-Ref
Set Type.

param: string $value
return: $this

getErrorStyle()   X-Ref
Get Error style.

return: string

setErrorStyle($value)   X-Ref
Set Error style.

param: string $value see self::STYLE_*
return: $this

getOperator()   X-Ref
Get Operator.

return: string

setOperator($value)   X-Ref
Set Operator.

param: string $value
return: $this

getAllowBlank()   X-Ref
Get Allow Blank.

return: bool

setAllowBlank($value)   X-Ref
Set Allow Blank.

param: bool $value
return: $this

getShowDropDown()   X-Ref
Get Show DropDown.

return: bool

setShowDropDown($value)   X-Ref
Set Show DropDown.

param: bool $value
return: $this

getShowInputMessage()   X-Ref
Get Show InputMessage.

return: bool

setShowInputMessage($value)   X-Ref
Set Show InputMessage.

param: bool $value
return: $this

getShowErrorMessage()   X-Ref
Get Show ErrorMessage.

return: bool

setShowErrorMessage($value)   X-Ref
Set Show ErrorMessage.

param: bool $value
return: $this

getErrorTitle()   X-Ref
Get Error title.

return: string

setErrorTitle($value)   X-Ref
Set Error title.

param: string $value
return: $this

getError()   X-Ref
Get Error.

return: string

setError($value)   X-Ref
Set Error.

param: string $value
return: $this

getPromptTitle()   X-Ref
Get Prompt title.

return: string

setPromptTitle($value)   X-Ref
Set Prompt title.

param: string $value
return: $this

getPrompt()   X-Ref
Get Prompt.

return: string

setPrompt($value)   X-Ref
Set Prompt.

param: string $value
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.