API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_Printer_ConfigForm Class Reference
Inheritance diagram for HTMLPurifier_Printer_ConfigForm:
Collaboration diagram for HTMLPurifier_Printer_ConfigForm:

Public Member Functions

 __construct ( $name, $doc_url=null, $compress=false)
 
 setTextareaDimensions ($cols=null, $rows=null)
 
 render ($config, $allowed=true, $render_controls=true)
 
- Public Member Functions inherited from HTMLPurifier_Printer
 __construct ()
 
 prepareGenerator ($config)
 

Static Public Member Functions

static getCSS ()
 
static getJavaScript ()
 

Protected Member Functions

 renderNamespace ($ns, $directives)
 
- Protected Member Functions inherited from HTMLPurifier_Printer
 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='')
 

Protected Attributes

 $fields = array()
 
 $docURL
 
 $name
 
 $compress = false
 
- Protected Attributes inherited from HTMLPurifier_Printer
 $generator
 
 $config
 

Detailed Description

Todo:
Rewrite to use Interchange objects

Constructor & Destructor Documentation

◆ __construct()

__construct (   $name,
  $doc_url = null,
  $compress = false 
)
Parameters
string$nameForm element name for directives to be stuffed into
string$doc_urlString documentation URL, will have fragment tagged on
bool$compressInteger max length before compressing a directive name, set to false to turn off

Member Function Documentation

◆ getCSS()

static getCSS ( )
static

Retrieves styling, in case it is not accessible by webserver

◆ getJavaScript()

static getJavaScript ( )
static

Retrieves JavaScript, in case it is not accessible by webserver

◆ render()

render (   $config,
  $allowed = true,
  $render_controls = true 
)

Returns HTML output for a configuration form

Parameters
HTMLPurifier_Config | array$configConfiguration object of current form state, or an array where [0] has an HTML namespace and [1] is being rendered.
array | bool$allowedOptional namespace(s) and directives to restrict form to.
bool$render_controls
Returns
string
Here is the call graph for this function:

◆ renderNamespace()

renderNamespace (   $ns,
  $directives 
)
protected

Renders a single namespace

Parameters
$nsString namespace name
array$directivesarray of directives to values
Returns
string
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTextareaDimensions()

setTextareaDimensions (   $cols = null,
  $rows = null 
)

Sets default column and row size for textareas in sub-printers

Parameters
$colsInteger columns of textarea, null to use default
$rowsInteger rows of textarea, null to use default

Field Documentation

◆ $compress

$compress = false
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. @type bool

◆ $docURL

$docURL
protected

Documentation URL, can have fragment tagged on end. @type string

◆ $fields

$fields = array()
protected

Printers for specific fields. @type HTMLPurifier_Printer[]

◆ $name

$name
protected

Name of form element to stuff config in. @type string


The documentation for this class was generated from the following file: