FIXME : multi gf sources does not work
-
// FIXME : multi gf sources does not work /* * if (! empty($gf_form_ids) && count($gf_form_ids) > 1 && ! empty($multi_include) && count($multi_include) > 1) { * // process multi-form sources * self::getLogger()->info("#### MULTI sources process"); * * $multiCombined = array_combine($gf_form_ids, $multi_include); * self::getLogger()->info($multiCombined); * $countArray = array(); * foreach ($multiCombined as $gf_id => $field_id) { * self::getLogger()->info("#### MULTI " . $gf_id . ' -> ' . $field_id); * $entries = $this->getGFEntries($gf_id, $maxentries, $custom_search_criteria, $atts); * $currentReportFields = $this->buildReportFieldsForGF($gf_id, $type, array( * $field_id * ), null, $datasets_invert); * * self::getLogger()->info("#### MULTI Counting " . $gf_id . ' -> ' . $field_id); * * $currentCount = $this->countAnswers($currentReportFields, $entries); * $reportFieldsArray[] = $currentReportFields; * * $answers = reset($currentCount)['answers']; * * $mergedAnswers = array_merge($mergedAnswers, $answers); * $countArray[] = $currentCount; * } * * self::getLogger()->debug("#### MULTI DATA RETRIEVED " . count($reportFieldsArray) . ' graph should be merged'); * self::getLogger()->debug($countArray); * self::getLogger()->debug($reportFieldsArray); * $reportFields = reset($reportFieldsArray); * self::getLogger()->debug($reportFields); * * self::getLogger()->debug(array_search("answers", $countArray)); * * $reportFields = $this->computeScores($countArray, $reportFields); * * self::getLogger()->info($rpa); * } else */what does it mean?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘FIXME : multi gf sources does not work’ is closed to new replies.