You are here

public function FlexiformFCHandler::getElementCompleteness in Flexiform 7

Get Element completeness.

2 calls to FlexiformFCHandler::getElementCompleteness()
FlexiformFCHandler::completeness in flexiform_webform/flexiform_webform.fc.inc
FlexiformFCHandler::elementIgnored in flexiform_webform/flexiform_webform.fc.inc
Calculate whether an element has been ignored.

File

flexiform_webform/flexiform_webform.fc.inc, line 78
Contains the Field Comlete handler for the FlexiformWebform Module.

Class

FlexiformFCHandler
@file Contains the Field Comlete handler for the FlexiformWebform Module.

Code

public function getElementCompleteness($flexiform, $element_namespace) {
  if ($this
    ->elementIgnored($flexiform, $element_namespace)) {
    return NULL;
  }
  if (isset($this->completeness[$element_namespace])) {
    return $this->completeness[$element_namespace];
  }
  $this->completeness[$element_namespace] = $this
    ->calculateElementCompleteness($flexiform, $element_namespace);
  return $this->completeness[$element_namespace];
}