![]() |
Framework
3.9
|
CompoundSelectFieldRenderer allows you to provide a consolidated grouped dropdown selector that processes selection for multiple fields. More...
Public Member Functions | |
CompoundSelectFieldRenderer (&$form, $field, $label, $onChange) | |
add ($title, $field, $items, $format) | |
renderField ($field) | |
FieldRenderers must override this method to provide the HTML implementation of the control used to edit the field. More... | |
getValue () | |
preProcess ($field="") | |
FieldRenderers can override this method to provide behavior that occurs prior to the saving of the parent form's target object to the database. More... | |
![]() | |
FieldRenderer ($parent) | |
Constructor. More... | |
_printLabel ($field, $colspan=1, $styles="", $annotation="") | |
Internal method to generate the HTML for the field label. More... | |
_getLabel ($field, $addSuffix=true) | |
_startField ($field, $styles="") | |
Internal method to generate the starting HTML for the field (including the label) More... | |
_endField ($field) | |
Internal method to generate the closing HTML for the field. More... | |
addValidatorsToForm ($field, $required=false) | |
This method is called by the AutoForm to add any default input validators that are required by the FieldRenderer. More... | |
addSearchValidatorsToForm ($field, $mode, $required=false) | |
For SearchForm, the validator field needs to match the name tag in the form which is in the format field:mode. More... | |
formatName ($item, $name) | |
Formats the given DataItem based on the supplied format string. More... | |
renderScript ($field) | |
FieldRenderers can override this method to provide any Javascript that their control requires for an edit form. More... | |
renderSearchScript ($field, $mode) | |
FieldRenderers can override this method to provide any Javascript that the control requires when being used in a search form. More... | |
renderSearchField ($field, $mode) | |
FieldRenderers must override this method to provide the HTML implementation of the control displayed for the field in a search form. More... | |
renderOnSubmitHandler ($field) | |
FieldRenderers can override this method to provide any Javascript that must be executed when the form is submitted on the client. More... | |
postProcess ($field="") | |
FieldRenderers can override this method to provide behavior that occurs after the parent form's target object has been saved to the database. More... | |
Public Attributes | |
$options | |
$onChange | |
optional selection change handler More... | |
$width | |
$max_chars | |
$defaultBlank = true | |
whether the drop down includes a blank as the default More... | |
$defaultText = "Choose One" | |
$emptyValue = 0 | |
The value to which the non-selected fields should be set. More... | |
![]() | |
$parent = null | |
$labelSuffix = "" | |
$colspan = 1 | |
$annotateBefore = false | |
$annotateNextLine = true | |
$hideLabel = false | |
$onPreProcess = null | |
callback hook for processing prior to saving the form's data object - individual renderers may override with custom processing More... | |
$onPostProcess = null | |
callback hook for processing after saving the form's data object - individual renderers may override with custom processing More... | |
CompoundSelectFieldRenderer allows you to provide a consolidated grouped dropdown selector that processes selection for multiple fields.
Definition at line 47 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::add | ( | $title, | |
$field, | |||
$items, | |||
$format | |||
) |
Definition at line 88 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::CompoundSelectFieldRenderer | ( | & | $form, |
$field, | |||
$label, | |||
$onChange | |||
) |
Definition at line 58 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::getValue | ( | ) |
Definition at line 157 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::preProcess | ( | $field = "" | ) |
FieldRenderers can override this method to provide behavior that occurs prior to the saving of the parent form's target object to the database.
For example, the FileUploadFieldRenderer overrides this method to process the uploading of the file and then store the location in the associated field in the target object.
string | $field | the field name |
Reimplemented from FieldRenderer.
Definition at line 173 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::renderField | ( | $field | ) |
FieldRenderers must override this method to provide the HTML implementation of the control used to edit the field.
string | $field | the field name |
Reimplemented from FieldRenderer.
Definition at line 99 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$defaultBlank = true |
whether the drop down includes a blank as the default
Definition at line 54 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$defaultText = "Choose One" |
Definition at line 55 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$emptyValue = 0 |
The value to which the non-selected fields should be set.
Definition at line 56 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$max_chars |
Definition at line 52 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$onChange |
optional selection change handler
Definition at line 50 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$options |
Definition at line 49 of file compound_select_field_renderer.inc.
CompoundSelectFieldRenderer::$width |
Definition at line 51 of file compound_select_field_renderer.inc.