Class: HTML_QuickForm2_Renderer_Callback
Source Location: /HTML_QuickForm2-2.1.0/HTML/QuickForm2/Renderer/Callback.php
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
exportMethods [line 163]
findCallback [line 710]
Finds a proper callback for the element Callbacks are scanned in a predefined order. First, if a callback 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 callback using the element class. But, if the element belongs to a group, callbacks are first looked up using the containing group id, then using the containing group class. When no callback is found, the provided default callback is returned.
Parameters:
finishContainer [line 450]
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 499]
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 475]
Finishes rendering a group, called after processing grouped elements
Overrides HTML_QuickForm2_Renderer::finishGroup() (Finishes rendering a group, called after processing grouped elements)
Parameters:
renderElement [line 396]
renderHidden [line 421]
renderLabel [line 411]
Renders an element label
Parameters:
reset [line 672]
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)
setCallbackForClass [line 575]
$this setCallbackForClass(
string
$className, callback|null
$callback)
|
|
Sets callback for form elements that are instances of the given class When searching for a callback to use, renderer will check for callbacks set for element's class and its parent classes, until found. Thus a more specific callbacks will override a more generic one.
Parameters:
setCallbackForId [line 595]
$this setCallbackForId(
string
$id, callback|null
$callback)
|
|
Sets callback for form element with the given id If a callback is set for an element via this method, it will be used. In the other case a generic callback set by setCallbackForClass() or setElementCallbackForGroupClass() will be used.
Parameters:
setElementCallbackForGroupClass [line 634]
$this setElementCallbackForGroupClass(
string
$groupClass, string
$elementClass, callback|null
$callback)
|
|
Sets grouped elements callbacks using group class Callbacks set via setCallbackForClass() will not be used for grouped form elements. When searching for a callback to use, the renderer will first consider callback set for a specific group id, then the group callback set by group class.
Parameters:
setElementCallbackForGroupId [line 656]
$this setElementCallbackForGroupId(
string
$groupId, string
$elementClass, callback|null
$callback)
|
|
Sets grouped elements callback using group id Callbacks set via setCallbackForClass() will not be used for grouped form elements. When searching for a callback to use, the renderer will first consider callback set for a specific group id, then the group callbacks set by group class.
Parameters:
setErrorGroupCallback [line 612]
$this setErrorGroupCallback(
callback|null
$callback)
|
|
Sets callback for rendering validation errors This callback will be used if 'group_errors' option is set to true.
Parameters:
setHiddenGroupCallback [line 540]
$this setHiddenGroupCallback(
callback|null
$callback)
|
|
Sets callback for rendering hidden elements if option group_hiddens is true
Parameters:
setLabelCallback [line 525]
$this setLabelCallback(
callback|null
$callback)
|
|
Sets callback for rendering labels
Parameters:
setRequiredNoteCallback [line 555]
$this setRequiredNoteCallback(
callback|null
$callback)
|
|
Sets callback for rendering required note
Parameters:
startContainer [line 439]
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 489]
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 464]
Starts rendering a group, called before processing grouped elements
Overrides HTML_QuickForm2_Renderer::startGroup() (Starts rendering a group, called before processing grouped elements)
Parameters:
_renderContainer [line 280]
_renderElement [line 196]
_renderErrorsGroup [line 224]
_renderFieldset [line 344]
_renderForm [line 177]
_renderGroup [line 287]
_renderGroupedElement [line 218]
_renderHidden [line 250]
_renderHiddenGroup [line 257]
_renderLabel [line 363]
_renderRepeat [line 324]
_renderRequiredNote [line 270]
__toString [line 689]
Documentation generated on Wed, 10 Apr 2019 08:56:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|