Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are 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