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.

(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