Property | Type | Description | |
---|---|---|---|
$info | List of content set strings (pipe separators) indexed by name. | ||
$lookup | List of content set lookups (element => true) indexed by name. |
Property | Type | Description | |
---|---|---|---|
$keys | Synchronized list of defined content sets (keys of info). | ||
$values | Synchronized list of defined content values (values of info). |
Method | Description | |
---|---|---|
__construct ( HTMLPurifier_HTMLModule[] $modules ) | Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables. | |
generateChildDef ( HTMLPurifier_ElementDef &$def, HTMLPurifier_HTMLModule $module ) | Accepts a definition; generates and assigns a ChildDef for it | |
generateChildDefCallback ( $matches ) | ||
getChildDef ( HTMLPurifier_ElementDef $def, HTMLPurifier_HTMLModule $module ) : HTMLPurifier_ChildDef | Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef |
Method | Description | |
---|---|---|
convertToLookup ( string $string ) : array | Converts a string list of elements separated by pipes into a lookup array. |
public __construct ( HTMLPurifier_HTMLModule[] $modules ) | ||
$modules | HTMLPurifier_HTMLModule[] | List of HTMLPurifier_HTMLModule |
protected convertToLookup ( string $string ) : array | ||
$string | string | List of elements |
return | array | Lookup array of elements |
public generateChildDef ( HTMLPurifier_ElementDef &$def, HTMLPurifier_HTMLModule $module ) | ||
$def | HTMLPurifier_ElementDef | HTMLPurifier_ElementDef reference |
$module | HTMLPurifier_HTMLModule | Module that defined the ElementDef |
public getChildDef ( HTMLPurifier_ElementDef $def, HTMLPurifier_HTMLModule $module ) : HTMLPurifier_ChildDef | ||
$def | HTMLPurifier_ElementDef | HTMLPurifier_ElementDef to have ChildDef extracted |
$module | HTMLPurifier_HTMLModule | Module that defined the ElementDef |
return | HTMLPurifier_ChildDef | corresponding to ElementDef |
public $info |
protected $keys |
public $lookup |