<?php
/**
 * @package   DPCalendar
 * @copyright Copyright (C) 2019 Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */

namespace DigitalPeak\Component\DPCalendar\Administrator\Controller;

\defined('_JEXEC') or die();

use Joomla\CMS\MVC\Controller\AdminController;

class TaxratesController extends AdminController
{
	protected $text_prefix = 'COM_DPCALENDAR_TAXRATE';

	public function euvatimport(): void
	{
		$this->getModel('Taxrate')->euvatimport();

		$this->setRedirect('index.php?option=com_dpcalendar&view=taxrates');
	}

	public function getModel($name = 'Taxrate', $prefix = 'Administrator', $config = ['ignore_request' => true])
	{
		return parent::getModel($name, $prefix, $config);
	}
}
