Public Member Functions |
| setup ($config) |
| Lazy load construction of the module after determining whether or not it's needed, and also when a finalized configuration object is available.
|
| getChildDef ($def) |
| Retrieves a proper HTMLPurifier_ChildDef subclass based on content_model and content_model_type member variables of the HTMLPurifier_ElementDef class.
|
| addElement ($element, $type, $contents, $attr_includes=array(), $attr=array()) |
| Convenience function that sets up a new element.
|
| addBlankElement ($element) |
| Convenience function that creates a totally blank, non-standalone element.
|
| addElementToContentSet ($element, $type) |
| Convenience function that registers an element to a content set.
|
| parseContents ($contents) |
| Convenience function that transforms single-string contents into separate content model and content model type.
|
| mergeInAttrIncludes (&$attr, $attr_includes) |
| Convenience function that merges a list of attribute includes into an attribute array.
|
| makeLookup ($list) |
| Convenience function that generates a lookup table with boolean true as value.
|
Detailed Description
Definition at line 3 of file Name.php.
Member Function Documentation
HTMLPurifier_HTMLModule_Name::setup |
( |
|
$config | ) |
|
Lazy load construction of the module after determining whether or not it's needed, and also when a finalized configuration object is available.
- Parameters
-
Reimplemented from HTMLPurifier_HTMLModule.
Definition at line 8 of file Name.php.
References $config, HTMLPurifier_HTMLModule\$elements, $name, and HTMLPurifier_HTMLModule\addBlankElement().
{
$elements = array(
'a',
'applet',
'form',
'frame',
'iframe',
'img',
'map');
$element->attr['name'] = 'CDATA';
if (!
$config->get(
'HTML.Attr.Name.UseCDATA')) {
}
}
}
Field Documentation
HTMLPurifier_HTMLModule_Name::$name = 'Name' |
The documentation for this class was generated from the following file:
- Services/Html/HtmlPurifier/library/HTMLPurifier/HTMLModule/Name.php