protected function wf_crm_webform_base::getComponent in Webform CiviCRM Integration 7.4
Same name and namespace in other branches
- 7.5 includes/wf_crm_webform_base.inc \wf_crm_webform_base::getComponent()
Fetch a webform component given its civicrm field key
Parameters
$field_key:
Return value
array|null
7 calls to wf_crm_webform_base::getComponent()
- wf_crm_webform_ajax::contactAjax in includes/
wf_crm_webform_ajax.inc - Load one or more contacts via ajax
- wf_crm_webform_base::getExposedOptions in includes/
wf_crm_webform_base.inc - For a given field, find the options that are exposed to the webform.
- wf_crm_webform_base::loadContact in includes/
wf_crm_webform_base.inc - Fetch all relevant data for a given contact Used to load contacts for pre-filling a webform, and also to fill in a contact via ajax
- wf_crm_webform_postprocess::isFieldHiddenByExistingContactSettings in includes/
wf_crm_webform_postprocess.inc - Test whether a field has been hidden due to existing contact settings
- wf_crm_webform_postprocess::isPaymentPage in includes/
wf_crm_webform_postprocess.inc - Are billing fields exposed to this webform page?
File
- includes/
wf_crm_webform_base.inc, line 578
Class
- wf_crm_webform_base
- Class wf_crm_webform_base
Code
protected function getComponent($field_key) {
if ($field_key && isset($this->enabled[$field_key])) {
return wf_crm_aval($this->node->webform, 'components:' . $this->enabled[$field_key]);
}
return NULL;
}