You are here

function ViewsDataExportExporterXML::__construct in Views data export 7.4

Constructor for views_data_export_exporter classes.

Parameters

$options: The array of export options as provided by the user-interface.

Overrides ViewsDataExportExporter::__construct

File

exporters/views_data_export_exporter_xml.inc, line 18

Class

ViewsDataExportExporterXML
Webform exporter for creating XML files.

Code

function __construct($options) {

  //    $this->options = $options;
  // Ensure defaults are set.
  $definition = $this
    ->option_definition();
  foreach ($definition as $option_name => $properties) {
    if (!isset($options[$option_name])) {
      $options[$option_name] = $properties['default'];
    }
  }
  $options['no_entity_encode'] = array_filter($options['no_entity_encode']);
  $options['cdata_wrapper'] = array_filter($options['cdata_wrapper']);
  $this->options = $options;
  parent::__construct($options);
}