# jc-importer/2.15.0/class/Common/AddonAPI/Exporter/ExporterData.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.15.0. 55 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.15.0/code/class/Common/AddonAPI/Exporter/ExporterData.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.15.0/raw/class/Common/AddonAPI/Exporter/ExporterData.php
- Modified: 2024-07-14T15:13:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jc-importer/2.15.0/code/class/Common/AddonAPI/Exporter/ExporterData.php#L10-L20`.

```php
<?php

namespace ImportWP\Common\AddonAPI\Exporter;

class ExporterData
{
    private $_template_type;
    private $_args = [];
    private $_record = [];

    /**
     * @var GroupData[]
     */
    private $_groups = [];

    public function __construct($template_type, $args = [])
    {
        $this->_template_type = $template_type;
        $this->_args = $args;
    }

    public function get_type()
    {
        return $this->_template_type;
    }

    public function get_args()
    {
        return $this->_args;
    }

    public function get_record()
    {
        return $this->_record;
    }

    public function get_group($group_id)
    {
        if (!isset($this->_groups[$group_id])) {
            $this->_groups[$group_id]  = new GroupData($group_id, []);
        }
        return $this->_groups[$group_id];
    }

    public function load_record($record)
    {
        $this->_record = $record;
    }

    public function get_groups()
    {
        return $this->_groups;
    }
}

```
