HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/AttrDef/Clone.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class HTMLPurifier_AttrDef_Clone extends HTMLPurifier_AttrDef
00008 {
00012     protected $clone;
00013 
00014     public function __construct($clone) {
00015         $this->clone = $clone;
00016     }
00017 
00018     public function validate($v, $config, $context) {
00019         return $this->clone->validate($v, $config, $context);
00020     }
00021 
00022     public function make($string) {
00023         return clone $this->clone;
00024     }
00025 
00026 }
00027 
00028 // vim: et sw=4 sts=4