ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
Composite.php
Go to the documentation of this file.
1 <?php
2 
7 {
8 
12  protected $strategies = array();
13 
14  public function execute($tokens, $config, $context) {
15  foreach ($this->strategies as $strategy) {
16  $tokens = $strategy->execute($tokens, $config, $context);
17  }
18  return $tokens;
19  }
20 
21 }
22 
23 // vim: et sw=4 sts=4
$strategies
List of strategies to run tokens through.
Definition: Composite.php:12
Composite strategy that runs multiple strategies on tokens.
Definition: Composite.php:6
Supertype for classes that define a strategy for modifying/purifying tokens.
Definition: Strategy.php:12
execute($tokens, $config, $context)
Definition: Composite.php:14