Source of file Bool.php
Size: 0,560 Bytes - Last Modified: 2021-12-23T10:07:55+00:00
/var/www/docs.ssmods.com/process/src/thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/AttrDef/HTML/Bool.php
1234567891011121314151617181920212223242526272829 | <?php /** * Validates a boolean attribute */ class HTMLPurifier_AttrDef_HTML_Bool extends HTMLPurifier_AttrDef { protected $name; public $minimized = true; public function __construct($name = false) {$this->name = $name;} public function validate($string, $config, $context) { if (empty($string)) return false; return $this->name; } /** * @param $string Name of attribute */ public function make($string) { return new HTMLPurifier_AttrDef_HTML_Bool($string); } } // vim: et sw=4 sts=4 |