studioespresso/craft-exporter

View on GitHub
src/services/ExportConfigurationService.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace studioespresso\exporter\services;

use craft\base\Component;
use craft\elements\Category;
use craft\elements\Entry;
use craft\elements\Tag;
use craft\fields\PlainText;
use studioespresso\exporter\services\formats\Xlsx;
use verbb\formie\fields\formfields\Email;
use verbb\formie\fields\formfields\MultiLineText;
use verbb\formie\fields\formfields\Name;

class ExportConfigurationService extends Component
{
    public function getAvailableElementTypes()
    {
//        $types = [
//            Entry::class,
//            Category::class,
//            Tag::class,
//        ];
//
//        return ['Craft' => $types];
    }

    public function getAvailableFileTypes()
    {
//        $types = [
//            Xlsx::class => 'Excel (xlsx)'
//        ];
//
//        return $types;
    }

    public function getSupportedFieldTypes()
    {
//        $fields = [
//          PlainText::class,
//            MultiLineText::class,
//            Name::class,
//            Email::class
//        ];
//
//        return $fields;
    }
}