ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
HTMLPurifier_Definition Class Reference

Super-class for definition datatype objects, implements serialization functions for the class. More...

+ Inheritance diagram for HTMLPurifier_Definition:
+ Collaboration diagram for HTMLPurifier_Definition:

Public Member Functions

 setup ($config)
 Setup function that aborts if already setup. More...
 

Data Fields

 $setup = false
 Has setup() been called yet? bool. More...
 
 $optimized = null
 If true, write out the final definition object to the cache after setup. More...
 
 $type
 What type of definition is it? string. More...
 

Protected Member Functions

 doSetup ($config)
 Sets up the definition object into the final form, something not done by the constructor. More...
 

Detailed Description

Super-class for definition datatype objects, implements serialization functions for the class.

Definition at line 7 of file Definition.php.

Member Function Documentation

◆ doSetup()

HTMLPurifier_Definition::doSetup (   $config)
abstractprotected

Sets up the definition object into the final form, something not done by the constructor.

Parameters
HTMLPurifier_Config$config

Referenced by setup().

+ Here is the caller graph for this function:

◆ setup()

HTMLPurifier_Definition::setup (   $config)

Setup function that aborts if already setup.

Parameters
HTMLPurifier_Config$config

Definition at line 45 of file Definition.php.

References $config, and doSetup().

46  {
47  if ($this->setup) {
48  return;
49  }
50  $this->setup = true;
51  $this->doSetup($config);
52  }
$config
Definition: bootstrap.php:15
doSetup($config)
Sets up the definition object into the final form, something not done by the constructor.
setup($config)
Setup function that aborts if already setup.
Definition: Definition.php:45
+ Here is the call graph for this function:

Field Documentation

◆ $optimized

HTMLPurifier_Definition::$optimized = null

If true, write out the final definition object to the cache after setup.

This will be true only if all invocations to get a raw definition object are also optimized. This does not cause file system thrashing because on subsequent calls the cached object is used and any writes to the raw definition object are short circuited. See enduser-customize.html for the high-level picture. bool

Definition at line 26 of file Definition.php.

◆ $setup

HTMLPurifier_Definition::$setup = false

Has setup() been called yet? bool.

Definition at line 14 of file Definition.php.

◆ $type

HTMLPurifier_Definition::$type

What type of definition is it? string.

Definition at line 32 of file Definition.php.


The documentation for this class was generated from the following file: