HTMLPurifier 4.4.0
|
00001 <?php 00002 00006 class HTMLPurifier_AttrDef_HTML_Bool extends HTMLPurifier_AttrDef 00007 { 00008 00009 protected $name; 00010 public $minimized = true; 00011 00012 public function __construct($name = false) {$this->name = $name;} 00013 00014 public function validate($string, $config, $context) { 00015 if (empty($string)) return false; 00016 return $this->name; 00017 } 00018 00022 public function make($string) { 00023 return new HTMLPurifier_AttrDef_HTML_Bool($string); 00024 } 00025 00026 } 00027 00028 // vim: et sw=4 sts=4