PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
htmlpurifier
/
library
/
HTMLPurifier
/
AttrDef
/
HTML
<?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 self($string); } } // vim: et sw=4 sts=4
[+]
..
[-] FrameTarget.php
[edit]
[-] Length.php
[edit]
[-] Bool.php
[edit]
[-] MultiLength.php
[edit]
[-] ID.php
[edit]
[-] Pixels.php
[edit]
[-] Class.php
[edit]
[-] Color.php
[edit]
[-] LinkTypes.php
[edit]
[-] Nmtokens.php
[edit]