Class: HTML_QuickForm2_Renderer_Default
Source Location: /HTML_QuickForm2-2.0.0/HTML/QuickForm2/Renderer/Default.php
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
exportMethods [line 154]
findTemplate [line 493]
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 332]
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 405]
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 365]
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 557]
string markRequired(
string
$elTpl, bool
$required)
|
|
Marks element required or removes "required" block
Parameters:
outputError [line 578]
string outputError(
string
$elTpl, string
$error)
|
|
Outputs element error, removes empty error blocks
Parameters:
outputGroupedErrors [line 441]
string outputGroupedErrors(
)
|
|
Creates a error list if 'group_errors' option is true
outputLabel [line 602]
string outputLabel(
string
$elTpl, string|array
$label)
|
|
Outputs element's label(s), removes empty label blocks
Parameters:
prepareTemplate [line 541]
Processes the element's template, adding label(s), required note and error message
Parameters:
renderElement [line 292]
renderHidden [line 305]
reset [line 265]
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 231]
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 251]
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 212]
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 177]
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 195]
startContainer [line 321]
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 395]
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 354]
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 281]
Documentation generated on Tue, 26 Jun 2012 15:30:14 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|
|