|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($modules) | |
| generateChildDef (&$def, $module) | |
| generateChildDefCallback ($matches) | |
| getChildDef ($def, $module) | |
Data Fields | |
| $info = array() | |
| $lookup = array() | |
Protected Member Functions | |
| convertToLookup ($string) | |
Protected Attributes | |
| $keys = array() | |
| $values = array() | |
Definition at line 6 of file ContentSets.php.
| __construct | ( | $ | modules | ) |
Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
| $modules | List of HTMLPurifier_HTMLModule |
Definition at line 34 of file ContentSets.php.

| convertToLookup | ( | $ | string | ) | [protected] |
Converts a string list of elements separated by pipes into a lookup array.
| $string | List of elements |
Definition at line 144 of file ContentSets.php.

| generateChildDef | ( | &$ | def, |
| $ | module | ||
| ) |
Accepts a definition; generates and assigns a ChildDef for it
| $def | HTMLPurifier_ElementDef reference |
| $module | Module that defined the ElementDef |
Definition at line 76 of file ContentSets.php.

| generateChildDefCallback | ( | $ | matches | ) |
| getChildDef | ( | $ | def, |
| $ | module | ||
| ) |
Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef
| $def | HTMLPurifier_ElementDef to have ChildDef extracted |
Definition at line 104 of file ContentSets.php.

List of content set strings (pipe seperators) indexed by name.
Definition at line 12 of file ContentSets.php.
$keys = array() [protected] |
Synchronized list of defined content sets (keys of info)
Definition at line 23 of file ContentSets.php.
| $lookup = array() |
List of content set lookups (element => true) indexed by name.
Definition at line 18 of file ContentSets.php.
$values = array() [protected] |
Synchronized list of defined content values (values of info)
Definition at line 27 of file ContentSets.php.