Make test script less chatty when log_errors is on.
[htmlpurifier.git] / library / HTMLPurifier / Strategy / Composite.php
blob816490b7996ade532876d42861524db931c7b1b9
1 <?php
3 /**
4 * Composite strategy that runs multiple strategies on tokens.
5 */
6 abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy
9 /**
10 * List of strategies to run tokens through.
12 protected $strategies = array();
14 abstract public function __construct();
16 public function execute($tokens, $config, $context) {
17 foreach ($this->strategies as $strategy) {
18 $tokens = $strategy->execute($tokens, $config, $context);
20 return $tokens;
25 // vim: et sw=4 sts=4