Öffentliche Methoden | |
__construct ($name, $doc_url=null, $compress=false) | |
setTextareaDimensions ($cols=null, $rows=null) | |
render ($config, $allowed=true, $render_controls=true) | |
![]() | |
__construct () | |
prepareGenerator ($config) | |
Öffentliche, statische Methoden | |
static | getCSS () |
static | getJavaScript () |
Geschützte Methoden | |
renderNamespace ($ns, $directives) | |
![]() | |
start ($tag, $attr=array()) | |
end ($tag) | |
element ($tag, $contents, $attr=array(), $escape=true) | |
elementEmpty ($tag, $attr=array()) | |
text ($text) | |
row ($name, $value) | |
escape ($string) | |
listify ($array, $polite=false) | |
getClass ($obj, $sec_prefix= '') | |
Geschützte Attribute | |
$fields = array() | |
$docURL | |
$name | |
$compress = false | |
![]() | |
$generator | |
$config | |
Definiert in Zeile 6 der Datei ConfigForm.php.
__construct | ( | $name, | |
$doc_url = null , |
|||
$compress = false |
|||
) |
string | $name | Form element name for directives to be stuffed into |
string | $doc_url | String documentation URL, will have fragment tagged on |
bool | $compress | Integer max length before compressing a directive name, set to false to turn off |
Definiert in Zeile 40 der Datei ConfigForm.php.
Benutzt $compress, $name und HTMLPurifier_VarParser\BOOL.
|
static |
Retrieves styling, in case it is not accessible by webserver
Definiert in Zeile 72 der Datei ConfigForm.php.
|
static |
Retrieves JavaScript, in case it is not accessible by webserver
Definiert in Zeile 80 der Datei ConfigForm.php.
render | ( | $config, | |
$allowed = true , |
|||
$render_controls = true |
|||
) |
Returns HTML output for a configuration form
HTMLPurifier_Config | array | $config | Configuration object of current form state, or an array where [0] has an HTML namespace and [1] is being rendered. |
array | bool | $allowed | Optional namespace(s) and directives to restrict form to. |
bool | $render_controls |
Definiert in Zeile 93 der Datei ConfigForm.php.
Benutzt HTMLPurifier_Printer\$config, HTMLPurifier_Printer\element(), HTMLPurifier_Printer\elementEmpty(), HTMLPurifier_Printer\end(), HTMLPurifier_Config\getAllowedDirectivesForForm(), HTMLPurifier_Printer\prepareGenerator(), renderNamespace() und HTMLPurifier_Printer\start().
|
protected |
Renders a single namespace
$ns | String namespace name | |
array | $directives | array of directives to values |
Definiert in Zeile 144 der Datei ConfigForm.php.
Benutzt HTMLPurifier_Printer\element(), HTMLPurifier_Printer\end() und HTMLPurifier_Printer\start().
Wird benutzt von render().
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 |
Definiert in Zeile 59 der Datei ConfigForm.php.
|
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. bool
Definiert in Zeile 33 der Datei ConfigForm.php.
Wird benutzt von __construct().
|
protected |
Documentation URL, can have fragment tagged on end. string
Definiert in Zeile 19 der Datei ConfigForm.php.
|
protected |
Printers for specific fields. HTMLPurifier_Printer[]
Definiert in Zeile 13 der Datei ConfigForm.php.
|
protected |
Name of form element to stuff config in. string
Definiert in Zeile 25 der Datei ConfigForm.php.
Wird benutzt von __construct().