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.

(no description)

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

Defines 1 class

HTMLPurifier_PropertyList:: (8 methods):
  __construct()
  get()
  set()
  has()
  reset()
  squash()
  getParent()
  setParent()


Class: HTMLPurifier_PropertyList  - X-Ref

Generic property list implementation

__construct($parent = null)   X-Ref

param: HTMLPurifier_PropertyList $parent Parent plist

get($name)   X-Ref
Recursively retrieves the value for a key

param: string $name

set($name, $value)   X-Ref
Sets the value of a key, for this plist

param: string $name
param: mixed $value

has($name)   X-Ref
Returns true if a given key exists

param: string $name
return: bool

reset($name = null)   X-Ref
Resets a value to the value of it's parent, usually the default. If
no value is specified, the entire plist is reset.

param: string $name

squash($force = false)   X-Ref
Squashes this property list and all of its property lists into a single
array, and returns the array. This value is cached by default.

param: bool $force If true, ignores the cache and regenerates the array.
return: array

getParent()   X-Ref
Returns the parent plist.

return: HTMLPurifier_PropertyList

setParent($plist)   X-Ref
Sets the parent plist.

param: HTMLPurifier_PropertyList $plist Parent plist