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

Composite strategy that runs multiple strategies on tokens. More...

+ Inheritance diagram for HTMLPurifier_Strategy_Composite:
+ Collaboration diagram for HTMLPurifier_Strategy_Composite:

Public Member Functions

 execute ($tokens, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_Strategy
 execute ($tokens, $config, $context)
 Executes the strategy on the tokens. More...
 

Protected Attributes

 $strategies = array()
 List of strategies to run tokens through. More...
 

Detailed Description

Composite strategy that runs multiple strategies on tokens.

Definition at line 6 of file Composite.php.

Member Function Documentation

◆ execute()

HTMLPurifier_Strategy_Composite::execute (   $tokens,
  $config,
  $context 
)
Parameters
HTMLPurifier_Token[]$tokens
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
HTMLPurifier_Token[]

Definition at line 21 of file Composite.php.

References $config, and $context.

22  {
23  foreach ($this->strategies as $strategy) {
24  $tokens = $strategy->execute($tokens, $config, $context);
25  }
26  return $tokens;
27  }
$context
Definition: webdav.php:25
$config
Definition: bootstrap.php:15

Field Documentation

◆ $strategies

HTMLPurifier_Strategy_Composite::$strategies = array()
protected

List of strategies to run tokens through.

HTMLPurifier_Strategy[]

Definition at line 13 of file Composite.php.


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