private function getCurrentFieldsValues($tracker_id, $artifact_id, array $artifact_row) { $fields_values = array(array('field_name' => 'summary', 'display_type' => ArtifactStringFieldXMLExporter::TV3_DISPLAY_TYPE, 'data_type' => ArtifactStringFieldXMLExporter::TV3_DATA_TYPE, 'valueText' => $artifact_row['summary'], 'value_function' => '')); if (isset($artifact_row['details'])) { $fields_values[] = array('field_name' => 'details', 'display_type' => ArtifactTextFieldXMLExporter::TV3_DISPLAY_TYPE, 'data_type' => ArtifactTextFieldXMLExporter::TV3_DATA_TYPE, 'valueText' => $artifact_row['details'], 'value_function' => ''); } if (isset($artifact_row['severity']) && $artifact_row['severity']) { $fields_values[] = array('field_name' => 'severity', 'display_type' => ArtifactStaticListFieldXMLExporter::TV3_DISPLAY_TYPE, 'data_type' => ArtifactStaticListFieldXMLExporter::TV3_DATA_TYPE, 'valueInt' => $artifact_row['severity'], 'value_function' => ''); } if (isset($artifact_row['close_date']) && $artifact_row['close_date']) { $fields_values[] = array('field_name' => 'close_date', 'display_type' => ArtifactDateFieldXMLExporter::TV3_DISPLAY_TYPE, 'data_type' => ArtifactDateFieldXMLExporter::TV3_DATA_TYPE, 'valueDate' => $artifact_row['close_date'], 'value_function' => ''); } if (isset($artifact_row['status_id']) && $artifact_row['status_id']) { $fields_values[] = array('field_name' => 'status_id', 'display_type' => ArtifactStaticListFieldXMLExporter::TV3_DISPLAY_TYPE, 'data_type' => ArtifactStaticListFieldXMLExporter::TV3_DATA_TYPE, 'valueInt' => $artifact_row['status_id'], 'value_function' => ''); } foreach ($this->dao->searchFieldValues($artifact_id) as $row) { $fields_values[$row['field_name']] = $this->field_factory->getCurrentFieldValue($row, $tracker_id); } return array_filter($fields_values); }