4 * Dummy AttrDef that mimics another AttrDef, BUT it generates clones
7 class HTMLPurifier_AttrDef_Clone extends HTMLPurifier_AttrDef
11 * @type HTMLPurifier_AttrDef
16 * @param HTMLPurifier_AttrDef $clone
18 public function __construct($clone)
20 $this->clone = $clone;
25 * @param HTMLPurifier_Config $config
26 * @param HTMLPurifier_Context $context
29 public function validate($v, $config, $context)
31 return $this->clone->validate($v, $config, $context);
35 * @param string $string
36 * @return HTMLPurifier_AttrDef
38 public function make($string)
40 return clone $this->clone;