Validates a boolean attribute.
More...
Public Member Functions |
| __construct ($name=false) |
| validate ($string, $config, $context) |
| Validates and cleans passed string according to a definition.
|
| make ($string) |
| parseCDATA ($string) |
| Convenience method that parses a string as if it were CDATA.
|
Data Fields |
| $minimized = true |
| $minimized = false |
| Tells us whether or not an HTML attribute is minimized.
|
| $required = false |
| Tells us whether or not an HTML attribute is required.
|
Protected Attributes |
| $name |
Additional Inherited Members |
| mungeRgb ($string) |
| Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly.
|
| expandCSSEscape ($string) |
| Parses a possibly escaped CSS string and returns the "pure" version of it.
|
Detailed Description
Validates a boolean attribute.
Definition at line 6 of file Bool.php.
Constructor & Destructor Documentation
HTMLPurifier_AttrDef_HTML_Bool::__construct |
( |
|
$name = false | ) |
|
Member Function Documentation
HTMLPurifier_AttrDef_HTML_Bool::make |
( |
|
$string | ) |
|
HTMLPurifier_AttrDef_HTML_Bool::validate |
( |
|
$string, |
|
|
|
$config, |
|
|
|
$context |
|
) |
| |
Validates and cleans passed string according to a definition.
- Parameters
-
$string | String to be validated and cleaned. |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef.
Definition at line 14 of file Bool.php.
References $name.
{
if (empty($string)) return false;
}
Field Documentation
HTMLPurifier_AttrDef_HTML_Bool::$minimized = true |
HTMLPurifier_AttrDef_HTML_Bool::$name |
|
protected |
The documentation for this class was generated from the following file:
- Services/Html/HtmlPurifier/library/HTMLPurifier/AttrDef/HTML/Bool.php