private function addNotesToRequestData(&$requestData, &$keepKeys, &$count, &$notesMap, $elements) { if (is_array($elements)) { foreach ($elements as $element) { if (@$keepKeys[$element['key']]) { $id = $notesMap[$element['id']]; ESINHandler::addNoteToRequestData($requestData, $count, $id, $element['text']); $count++; } } } }