HTMLPurifier_AttrTypes
in package
Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
Table of Contents
Properties
- $info : mixed
- Lookup array of attribute string identifiers to concrete implementations.
Methods
- __construct() : mixed
- Constructs the info array, supplying default implementations for attribute types.
- get() : HTMLPurifier_AttrDef
- Retrieves a type
- set() : mixed
- Sets a new implementation for a type
- makeEnum() : mixed
Properties
$info
Lookup array of attribute string identifiers to concrete implementations.
protected
mixed
$info
= array()
Tags
Methods
__construct()
Constructs the info array, supplying default implementations for attribute types.
public
__construct() : mixed
get()
Retrieves a type
public
get(string $type) : HTMLPurifier_AttrDef
Parameters
- $type : string
-
String type name
Return values
HTMLPurifier_AttrDef —Object AttrDef for type
set()
Sets a new implementation for a type
public
set(string $type, HTMLPurifier_AttrDef $impl) : mixed
Parameters
- $type : string
-
String type name
- $impl : HTMLPurifier_AttrDef
-
Object AttrDef for type
makeEnum()
private
static makeEnum(mixed $in) : mixed
Parameters
- $in : mixed