# jc-importer/trunk/class/Common/AddonAPI/Exporter/ExporterSchema.php

Import WP – CSV &amp; XML Import Export for WordPress, version trunk. 44 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/trunk/code/class/Common/AddonAPI/Exporter/ExporterSchema.php
- Raw: https://pluginprobe.com/plugins/jc-importer/trunk/raw/class/Common/AddonAPI/Exporter/ExporterSchema.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/trunk/code/class/Common/AddonAPI/Exporter/ExporterSchema.php#L10-L20`.

```php
<?php

namespace ImportWP\Common\AddonAPI\Exporter;

class ExporterSchema
{
    /**
     * @var GroupSchema[]
     */
    private $_groups = [];

    private $_type;

    private $_args = [];

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

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

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

    public function register_group($name, $id)
    {
        $group = new GroupSchema($name, $id);
        $this->_groups[] = $group;
        return $group;
    }

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

```
