HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php
Go to the documentation of this file.
00001 <?php
00002 
00006 abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy
00007 {
00008 
00012     protected $strategies = array();
00013 
00014     public function execute($tokens, $config, $context) {
00015         foreach ($this->strategies as $strategy) {
00016             $tokens = $strategy->execute($tokens, $config, $context);
00017         }
00018         return $tokens;
00019     }
00020 
00021 }
00022 
00023 // vim: et sw=4 sts=4