library/HTMLPurifier/AttrDef/HTML/Bool.php

Go to the documentation of this file.
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 

Generated on Thu Jun 19 18:47:25 2008 for HTMLPurifier by  doxygen 1.5.3