ILIAS
Release_4_2_x_branch Revision 61807
|
Public Member Functions | |
render ($config) | |
Public Member Functions inherited from HTMLPurifier_Printer | |
__construct () | |
Initialize $generator. | |
prepareGenerator ($config) | |
Give generator necessary configuration if possible. |
Protected Member Functions | |
renderDoctype () | |
Renders the Doctype table. | |
renderEnvironment () | |
Renders environment table, which is miscellaneous info. | |
renderContentSets () | |
Renders the Content Sets table. | |
renderInfo () | |
Renders the Elements ($info) table. | |
renderChildren ($def) | |
Renders a row describing the allowed children of an element. | |
listifyTagLookup ($array) | |
Listifies a tag lookup table. | |
listifyObjectList ($array) | |
Listifies a list of objects by retrieving class names and internal state. | |
listifyAttr ($array) | |
Listifies a hash of attributes to AttrDef classes. | |
heavyHeader ($text, $num=1) | |
Creates a heavy header row. | |
Protected Member Functions inherited from HTMLPurifier_Printer | |
start ($tag, $attr=array()) | |
Main function that renders object or aspect of that object. | |
end ($tag) | |
Returns an end teg. | |
element ($tag, $contents, $attr=array(), $escape=true) | |
Prints a complete element with content inside. | |
elementEmpty ($tag, $attr=array()) | |
text ($text) | |
row ($name, $value) | |
Prints a simple key/value row in a table. | |
escape ($string) | |
Escapes a string for HTML output. | |
listify ($array, $polite=false) | |
Takes a list of strings and turns them into a single list. | |
getClass ($obj, $sec_prefix= '') | |
Retrieves the class of an object without prefixes, as well as metadata. |
Protected Attributes | |
$def | |
Instance of HTMLPurifier_HTMLDefinition, for easy access. | |
Protected Attributes inherited from HTMLPurifier_Printer | |
$generator | |
Instance of HTMLPurifier_Generator for HTML generation convenience funcs. | |
$config | |
Instance of HTMLPurifier_Config, for easy access. |
Definition at line 3 of file HTMLDefinition.php.
|
protected |
Creates a heavy header row.
Definition at line 262 of file HTMLDefinition.php.
References $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), and HTMLPurifier_Printer\start().
Referenced by renderContentSets(), and renderInfo().
|
protected |
Listifies a hash of attributes to AttrDef classes.
$array | Array hash in form of array('attrname' => HTMLPurifier_AttrDef) |
Definition at line 249 of file HTMLDefinition.php.
References HTMLPurifier_Printer\getClass(), and HTMLPurifier_Printer\listify().
Referenced by renderEnvironment(), and renderInfo().
|
protected |
Listifies a list of objects by retrieving class names and internal state.
$array | List of objects |
Definition at line 236 of file HTMLDefinition.php.
References HTMLPurifier_Printer\getClass(), and HTMLPurifier_Printer\listify().
Referenced by renderEnvironment(), and renderInfo().
|
protected |
Listifies a tag lookup table.
$array | Tag lookup array in form of array('tagname' => true) |
Definition at line 221 of file HTMLDefinition.php.
References HTMLPurifier_Printer\listify().
Referenced by renderChildren(), renderContentSets(), and renderInfo().
HTMLPurifier_Printer_HTMLDefinition::render | ( | $config | ) |
Definition at line 11 of file HTMLDefinition.php.
References HTMLPurifier_Printer\$config, $ret, HTMLPurifier_Printer\end(), renderContentSets(), renderDoctype(), renderEnvironment(), renderInfo(), and HTMLPurifier_Printer\start().
|
protected |
Renders a row describing the allowed children of an element.
$def | HTMLPurifier_ChildDef of pertinent element |
Definition at line 170 of file HTMLDefinition.php.
References $def, $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), HTMLPurifier_Printer\escape(), listifyTagLookup(), and HTMLPurifier_Printer\start().
Referenced by renderEnvironment(), and renderInfo().
|
protected |
Renders the Content Sets table.
Definition at line 93 of file HTMLDefinition.php.
References $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), heavyHeader(), listifyTagLookup(), and HTMLPurifier_Printer\start().
Referenced by render().
|
protected |
Renders the Doctype table.
Definition at line 32 of file HTMLDefinition.php.
References $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), HTMLPurifier_Printer\row(), and HTMLPurifier_Printer\start().
Referenced by render().
|
protected |
Renders environment table, which is miscellaneous info.
Definition at line 49 of file HTMLDefinition.php.
References $def, $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), HTMLPurifier_Printer\getClass(), HTMLPurifier_Printer\listify(), listifyAttr(), listifyObjectList(), renderChildren(), HTMLPurifier_Printer\row(), and HTMLPurifier_Printer\start().
Referenced by render().
|
protected |
Renders the Elements ($info) table.
Definition at line 110 of file HTMLDefinition.php.
References $def, $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), heavyHeader(), HTMLPurifier_Printer\listify(), listifyAttr(), listifyObjectList(), listifyTagLookup(), renderChildren(), HTMLPurifier_Printer\row(), and HTMLPurifier_Printer\start().
Referenced by render().
|
protected |
Instance of HTMLPurifier_HTMLDefinition, for easy access.
Definition at line 9 of file HTMLDefinition.php.
Referenced by renderChildren(), renderEnvironment(), and renderInfo().