Special-case enum attribute definition that lazy loads allowed frame targets.
More...
Public Member Functions |
| | __construct () |
| | validate ($string, $config, $context) |
| | Validates and cleans passed string according to a definition.
|
| | __construct ($valid_values=array(), $case_sensitive=false) |
| | make ($string) |
| | parseCDATA ($string) |
| | Convenience method that parses a string as if it were CDATA.
|
Data Fields |
| | $valid_values = false |
| | $valid_values = array() |
| | Lookup table of valid values.
|
| | $minimized = false |
| | Tells us whether or not an HTML attribute is minimized.
|
| | $required = false |
| | Tells us whether or not an HTML attribute is required.
|
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
Special-case enum attribute definition that lazy loads allowed frame targets.
Definition at line 6 of file FrameTarget.php.
Constructor & Destructor Documentation
| HTMLPurifier_AttrDef_HTML_FrameTarget::__construct |
( |
| ) |
|
Member Function Documentation
| HTMLPurifier_AttrDef_HTML_FrameTarget::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_Enum.
Definition at line 14 of file FrameTarget.php.
{
if ($this->valid_values === false) $this->valid_values = $config->get('Attr.AllowedFrameTargets');
}
Field Documentation
| HTMLPurifier_AttrDef_HTML_FrameTarget::$case_sensitive = false |
|
protected |
| HTMLPurifier_AttrDef_HTML_FrameTarget::$valid_values = false |
The documentation for this class was generated from the following file:
- Services/Html/HtmlPurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php