Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / library / HTMLPurifier / TagTransform.php
blob210a44721769223bf25c9ec531874fc5de1eb5c2
1 <?php
3 /**
4 * Defines a mutation of an obsolete tag into a valid tag.
5 */
6 abstract class HTMLPurifier_TagTransform
9 /**
10 * Tag name to transform the tag to.
12 public $transform_to;
14 /**
15 * Transforms the obsolete tag into the valid tag.
16 * @param $tag Tag to be transformed.
17 * @param $config Mandatory HTMLPurifier_Config object
18 * @param $context Mandatory HTMLPurifier_Context object
20 abstract public function transform($tag, $config, $context);
22 /**
23 * Prepends CSS properties to the style attribute, creating the
24 * attribute if it doesn't exist.
25 * @warning Copied over from AttrTransform, be sure to keep in sync
26 * @param $attr Attribute array to process (passed by reference)
27 * @param $css CSS to prepend
29 protected function prependCSS(&$attr, $css) {
30 $attr['style'] = isset($attr['style']) ? $attr['style'] : '';
31 $attr['style'] = $css . $attr['style'];
36 // vim: et sw=4 sts=4