Class HTMLPurifier_AttrTypes

InheritanceHTMLPurifier_AttrTypes

Provides lookup array of attribute types to HTMLPurifier_AttrDef objects

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$info Lookup array of attribute string identifiers to concrete implementations. HTMLPurifier_AttrTypes

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructs the info array, supplying default implementations for attribute types. HTMLPurifier_AttrTypes
get() Retrieves a type HTMLPurifier_AttrTypes
set() Sets a new implementation for a type HTMLPurifier_AttrTypes

Property Details

$info protected property
protected $info = []

Method Details

__construct() public method

Constructs the info array, supplying default implementations for attribute types.

public void __construct ( )
get() public method

Retrieves a type

public HTMLPurifier_AttrDef get ( $type )
$type string

String type name

return HTMLPurifier_AttrDef

Object AttrDef for type

set() public method

Sets a new implementation for a type

public void set ( $type, $impl )
$type string

String type name

$impl HTMLPurifier_AttrDef

Object AttrDef for type