HumHub Documentation (unofficial)

HTMLPurifier_AttrTransform_SafeParam extends HTMLPurifier_AttrTransform
in package

Validates name/value pairs in param tags to be used in safe objects. This will only allow name values it recognizes, and pre-fill certain attributes with required values.

Tags
note

This class only supports Flash. In the future, Quicktime support may be added.

warning

This class expects an injector to add the necessary parameters tags.

Table of Contents

Properties

$name  : mixed
$wmode  : mixed
$uri  : mixed

Methods

__construct()  : mixed
confiscateAttr()  : mixed
Retrieves and removes an attribute
prependCSS()  : mixed
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
transform()  : array<string|int, mixed>
Abstract: makes changes to the attributes dependent on multiple values.

Properties

$name

public mixed $name = "SafeParam"
Tags
type

string

$wmode

public mixed $wmode
Tags
type

HTMLPurifier_AttrDef_Enum

$uri

private mixed $uri
Tags
type

HTMLPurifier_AttrDef_URI

Methods

confiscateAttr()

Retrieves and removes an attribute

public confiscateAttr(array<string|int, mixed> &$attr, mixed $key) : mixed
Parameters
$attr : array<string|int, mixed>

Attribute array to process (passed by reference)

$key : mixed

Key of attribute to confiscate

prependCSS()

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

public prependCSS(array<string|int, mixed> &$attr, string $css) : mixed
Parameters
$attr : array<string|int, mixed>

Attribute array to process (passed by reference)

$css : string

CSS to prepend


        
On this page

Search results