HTMLPurifier_Printer_ConfigForm_bool
extends HTMLPurifier_Printer
in package
Bool form field printer
Table of Contents
Properties
- $config : mixed
- For easy access.
- $generator : mixed
- For HTML generation convenience funcs.
Methods
- __construct() : mixed
- Initialize $generator.
- prepareGenerator() : mixed
- Give generator necessary configuration if possible
- render() : string
- element() : string
- Prints a complete element with content inside
- elementEmpty() : string
- end() : string
- Returns an end tag
- escape() : string
- Escapes a string for HTML output.
- getClass() : string
- Retrieves the class of an object without prefixes, as well as metadata
- listify() : string
- Takes a list of strings and turns them into a single list
- row() : string
- Prints a simple key/value row in a table.
- start() : string
- Returns a start tag
- text() : string
Properties
$config
For easy access.
protected
mixed
$config
Tags
$generator
For HTML generation convenience funcs.
protected
mixed
$generator
Tags
Methods
__construct()
Initialize $generator.
public
__construct() : mixed
prepareGenerator()
Give generator necessary configuration if possible
public
prepareGenerator(HTMLPurifier_Config $config) : mixed
Parameters
- $config : HTMLPurifier_Config
render()
public
render(string $ns, string $directive, string $value, string $name, HTMLPurifier_Config|array<string|int, mixed> $config) : string
Parameters
- $ns : string
- $directive : string
- $value : string
- $name : string
- $config : HTMLPurifier_Config|array<string|int, mixed>
Return values
stringelement()
Prints a complete element with content inside
protected
element(string $tag, string $contents[, array<string|int, mixed> $attr = array() ][, bool $escape = true ]) : string
Parameters
- $tag : string
-
Tag name
- $contents : string
-
Element contents
- $attr : array<string|int, mixed> = array()
-
Tag attributes
- $escape : bool = true
-
whether or not to escape contents
Return values
stringelementEmpty()
protected
elementEmpty(string $tag[, array<string|int, mixed> $attr = array() ]) : string
Parameters
- $tag : string
- $attr : array<string|int, mixed> = array()
Return values
stringend()
Returns an end tag
protected
end(string $tag) : string
Parameters
- $tag : string
-
Tag name
Return values
stringescape()
Escapes a string for HTML output.
protected
escape(string $string) : string
Parameters
- $string : string
-
String to escape
Return values
stringgetClass()
Retrieves the class of an object without prefixes, as well as metadata
protected
getClass(object $obj[, string $sec_prefix = '' ]) : string
Parameters
- $obj : object
-
Object to determine class of
- $sec_prefix : string = ''
-
Further prefix to remove
Return values
stringlistify()
Takes a list of strings and turns them into a single list
protected
listify(array<string|int, string> $array[, bool $polite = false ]) : string
Parameters
- $array : array<string|int, string>
-
List of strings
- $polite : bool = false
-
Bool whether or not to add an end before the last
Return values
stringrow()
Prints a simple key/value row in a table.
protected
row(string $name, mixed $value) : string
Parameters
- $name : string
-
Key
- $value : mixed
-
Value
Return values
stringstart()
Returns a start tag
protected
start(string $tag[, array<string|int, mixed> $attr = array() ]) : string
Parameters
- $tag : string
-
Tag name
- $attr : array<string|int, mixed> = array()
-
Attribute array
Return values
stringtext()
protected
text(string $text) : string
Parameters
- $text : string