2006-07-29 17:38:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/Strategy.php';
|
2006-08-04 01:47:48 +00:00
|
|
|
require_once 'HTMLPurifier/Config.php';
|
2006-07-29 17:38:28 +00:00
|
|
|
|
|
|
|
class HTMLPurifier_Strategy_Composite
|
|
|
|
{
|
|
|
|
|
|
|
|
var $strategies = array();
|
|
|
|
|
|
|
|
function HTMLPurifier_Strategy_Composite() {
|
|
|
|
trigger_error('Attempt to instantiate abstract object', E_USER_ERROR);
|
|
|
|
}
|
|
|
|
|
2006-08-14 02:46:34 +00:00
|
|
|
function execute($tokens, $config) {
|
2006-07-29 17:38:28 +00:00
|
|
|
foreach ($this->strategies as $strategy) {
|
2006-08-04 01:47:48 +00:00
|
|
|
$tokens = $strategy->execute($tokens, $config);
|
2006-07-29 17:38:28 +00:00
|
|
|
}
|
|
|
|
return $tokens;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|