00001 <?php 00002 00006 abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy 00007 { 00008 00012 protected $strategies = array(); 00013 00014 abstract public function __construct(); 00015 00016 public function execute($tokens, $config, $context) { 00017 foreach ($this->strategies as $strategy) { 00018 $tokens = $strategy->execute($tokens, $config, $context); 00019 } 00020 return $tokens; 00021 } 00022 00023 } 00024 00025 // vim: et sw=4 sts=4