ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($name, $doc_url=null, $compress=false) | |
setTextareaDimensions ($cols=null, $rows=null) | |
Sets default column and row size for textareas in sub-printers. | |
render ($config, $allowed=true, $render_controls=true) | |
Returns HTML output for a configuration form. | |
Public Member Functions inherited from HTMLPurifier_Printer | |
__construct () | |
Initialize $generator. | |
prepareGenerator ($config) | |
Give generator necessary configuration if possible. |
Static Public Member Functions | |
static | getCSS () |
Retrieves styling, in case it is not accessible by webserver. | |
static | getJavaScript () |
Retrieves JavaScript, in case it is not accessible by webserver. |
Protected Member Functions | |
renderNamespace ($ns, $directives) | |
Renders a single namespace. | |
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 | |
$fields = array() | |
Printers for specific fields. | |
$docURL | |
Documentation URL, can have fragment tagged on end. | |
$name | |
Name of form element to stuff config in. | |
$compress = false | |
Whether or not to compress directive names, clipping them off after a certain amount of letters. | |
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 6 of file ConfigForm.php.
HTMLPurifier_Printer_ConfigForm::__construct | ( | $name, | |
$doc_url = null , |
|||
$compress = false |
|||
) |
$name | Form element name for directives to be stuffed into |
$doc_url | String documentation URL, will have fragment tagged on |
$compress | Integer max length before compressing a directive name, set to false to turn off |
Definition at line 36 of file ConfigForm.php.
References $compress, $name, HTMLPurifier_Printer\__construct(), HTMLPurifier_VarParser\BOOL, and fields.
|
static |
Retrieves styling, in case it is not accessible by webserver.
Definition at line 61 of file ConfigForm.php.
|
static |
Retrieves JavaScript, in case it is not accessible by webserver.
Definition at line 68 of file ConfigForm.php.
HTMLPurifier_Printer_ConfigForm::render | ( | $config, | |
$allowed = true , |
|||
$render_controls = true |
|||
) |
Returns HTML output for a configuration form.
$config | Configuration object of current form state, or an array where [0] has an HTML namespace and [1] is being rendered. |
$allowed | Optional namespace(s) and directives to restrict form to. |
Definition at line 78 of file ConfigForm.php.
References HTMLPurifier_Printer\$config, $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\elementEmpty(), HTMLPurifier_Printer\end(), HTMLPurifier_Config\getAllowedDirectivesForForm(), HTMLPurifier_Printer\prepareGenerator(), renderNamespace(), and HTMLPurifier_Printer\start().
|
protected |
Renders a single namespace.
$ns | String namespace name |
$directive | Associative array of directives to values |
Definition at line 127 of file ConfigForm.php.
References $ret, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end(), fields, and HTMLPurifier_Printer\start().
Referenced by render().
HTMLPurifier_Printer_ConfigForm::setTextareaDimensions | ( | $cols = null , |
|
$rows = null |
|||
) |
Sets default column and row size for textareas in sub-printers.
$cols | Integer columns of textarea, null to use default |
$rows | Integer rows of textarea, null to use default |
Definition at line 53 of file ConfigForm.php.
References fields.
|
protected |
Whether or not to compress directive names, clipping them off after a certain amount of letters.
False to disable or integer letters before clipping.
Definition at line 29 of file ConfigForm.php.
Referenced by __construct().
|
protected |
Documentation URL, can have fragment tagged on end.
Definition at line 17 of file ConfigForm.php.
|
protected |
Printers for specific fields.
Definition at line 12 of file ConfigForm.php.
|
protected |
Name of form element to stuff config in.
Definition at line 22 of file ConfigForm.php.
Referenced by __construct().