Class: HTML_QuickForm2_Renderer_Default
Source Location: /HTML_QuickForm2-2.1.0/HTML/QuickForm2/Renderer/Default.php
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
exportMethods [line 130]
findTemplate [line 469]
Finds a proper template for the element Templates are scanned in a predefined order. First, if a template was set for a specific element by id, it is returned, no matter if the element belongs to a group. If the element does not belong to a group, we try to match a template using the element class. But, if the element belongs to a group, templates are first looked up using the containing group id, then using the containing group class. When no template is found, the provided default template is returned.
Parameters:
finishContainer [line 308]
Finishes rendering a generic container, called after processing contained elements
Overrides HTML_QuickForm2_Renderer::finishContainer() (Finishes rendering a generic container, called after processing contained elements)
Parameters:
finishForm [line 381]
Finishes rendering a form, called after processing contained elements
Overrides HTML_QuickForm2_Renderer::finishForm() (Finishes rendering a form, called after processing contained elements)
Parameters:
finishGroup [line 341]
Finishes rendering a group, called after processing grouped elements
Overrides HTML_QuickForm2_Renderer::finishGroup() (Finishes rendering a group, called after processing grouped elements)
Parameters:
markRequired [line 532]
string markRequired(
string
$elTpl, bool
$required)
|
|
Marks element required or removes "required" block
Parameters:
outputError [line 553]
string outputError(
string
$elTpl, string
$error)
|
|
Outputs element error, removes empty error blocks
Parameters:
outputGroupedErrors [line 417]
string outputGroupedErrors(
)
|
|
Creates a error list if 'group_errors' option is true
outputLabel [line 577]
string outputLabel(
string
$elTpl, string|array
$label)
|
|
Outputs element's label(s), removes empty label blocks
Parameters:
prepareTemplate [line 516]
Processes the element's template, adding label(s), required note and error message
Parameters:
renderElement [line 268]
renderHidden [line 281]
reset [line 241]
Resets the accumulated data This method is called automatically by startForm() method, but should be called manually before calling other rendering methods separately.
Overrides HTML_QuickForm2_Renderer::reset() (Resets the accumulated data)
setElementTemplateForGroupClass [line 207]
$this setElementTemplateForGroupClass(
string
$groupClass, string
$elementClass, mixed
$template)
|
|
Sets grouped elements templates using group class Templates set via setTemplateForClass() will not be used for grouped form elements. When searching for a template to use, the renderer will first consider template set for a specific group id, then the group templates set by group class.
Parameters:
setElementTemplateForGroupId [line 227]
$this setElementTemplateForGroupId(
string
$groupId, string
$elementClass, mixed
$template)
|
|
Sets grouped elements templates using group id Templates set via setTemplateForClass() will not be used for grouped form elements. When searching for a template to use, the renderer will first consider template set for a specific group id, then the group templates set by group class.
Parameters:
setErrorTemplate [line 188]
$this setErrorTemplate(
array
$template)
|
|
Sets template for rendering validation errors This template will be used if 'group_errors' option is set to true. The template array should contain 'prefix', 'suffix' and 'separator' keys.
Parameters:
setTemplateForClass [line 153]
$this setTemplateForClass(
string
$className, mixed
$template)
|
|
Sets template for form elements that are instances of the given class When searching for a template to use, renderer will check for templates set for element's class and its parent classes, until found. Thus a more specific template will override a more generic one.
Parameters:
setTemplateForId [line 171]
$this setTemplateForId(
string
$id, mixed
$template)
|
|
Sets template for form element with the given id If a template is set for an element via this method, it will be used. In the other case a generic template set by setTemplateForClass() or setElementTemplateForGroupClass() will be used.
Parameters:
startContainer [line 297]
Starts rendering a generic container, called before processing contained elements
Overrides HTML_QuickForm2_Renderer::startContainer() (Starts rendering a generic container, called before processing contained elements)
Parameters:
startForm [line 371]
Starts rendering a form, called before processing contained elements
Overrides HTML_QuickForm2_Renderer::startForm() (Starts rendering a form, called before processing contained elements)
Parameters:
startGroup [line 330]
Starts rendering a group, called before processing grouped elements
Overrides HTML_QuickForm2_Renderer::startGroup() (Starts rendering a group, called before processing grouped elements)
Parameters:
__toString [line 257]
Documentation generated on Wed, 10 Apr 2019 08:56:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|