ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
An exception for terminatinating execution or to throw for unit testing.
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