+ // Write custom field options.
+ fwrite($this->file, $this->indentation." <custom_field_options>\n");
+ foreach ($custom_field_options as $option) {
+ $custom_field_option_part = $this->indentation.' '."<custom_field_option id=\"".$this->customFieldOptionMap[$option['id']]."\"";
+ $custom_field_option_part .= " field_id=\"".$this->customFieldMap[$option['field_id']]."\"";
+ $custom_field_option_part .= " value=\"".htmlentities($option['value'])."\"";
+ $custom_field_option_part .= "></custom_field_option>\n";
+ fwrite($this->file, $custom_field_option_part);
+ }
+ fwrite($this->file, $this->indentation." </custom_field_options>\n");
+ unset($custom_field_options);
+