ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Composite.php
Go to the documentation of this file.
1<?php
2
7{
8
13 protected $strategies = array();
14
21 public function execute($tokens, $config, $context)
22 {
23 foreach ($this->strategies as $strategy) {
24 $tokens = $strategy->execute($tokens, $config, $context);
25 }
26 return $tokens;
27 }
28}
29
30// vim: et sw=4 sts=4
Composite strategy that runs multiple strategies on tokens.
Definition: Composite.php:7
$strategies
List of strategies to run tokens through.
Definition: Composite.php:13
execute($tokens, $config, $context)
Definition: Composite.php:21
Supertype for classes that define a strategy for modifying/purifying tokens.
Definition: Strategy.php:13