ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
HTMLPurifier_AttrTransform_SafeObject Class Reference

Writes default type for all objects. More...

+ Inheritance diagram for HTMLPurifier_AttrTransform_SafeObject:
+ Collaboration diagram for HTMLPurifier_AttrTransform_SafeObject:

Public Member Functions

 transform ($attr, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrTransform
 transform ($attr, $config, $context)
 Abstract: makes changes to the attributes dependent on multiple values. More...
 
 prependCSS (&$attr, $css)
 Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. More...
 
 confiscateAttr (&$attr, $key)
 Retrieves and removes an attribute. More...
 

Data Fields

 $name = "SafeObject"
 string More...
 

Detailed Description

Writes default type for all objects.

Currently only supports flash.

Definition at line 6 of file SafeObject.php.

Member Function Documentation

◆ transform()

HTMLPurifier_AttrTransform_SafeObject::transform (   $attr,
  $config,
  $context 
)
Parameters
array$attr
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Definition at line 19 of file SafeObject.php.

20  {
21  if (!isset($attr['type'])) {
22  $attr['type'] = 'application/x-shockwave-flash';
23  }
24  return $attr;
25  }

Field Documentation

◆ $name

HTMLPurifier_AttrTransform_SafeObject::$name = "SafeObject"

string

Definition at line 11 of file SafeObject.php.


The documentation for this class was generated from the following file: