<?php

namespace KupShop\I18nBundle\Translations;

class EmailsTranslation extends BaseTranslation
{
    protected $columns = [
        'subject' => ['alias' => 'Předmět', 'maxlength' => 250],
        'email' => ['alias' => 'Email', 'maxlength' => 250],
        'body' => ['alias' => 'Text', 'richtext' => true],
        'sms' => ['alias' => 'SMS'],
    ];

    protected $tableName = 'emails';

    protected $tableAlias = 'e';

    protected $nameColumn = 'name';

    public function getColumns(): array
    {
        $columns = $this->columns;
        if (!findModule(\Modules::TELFA)) {
            unset($columns['sms']);
        }

        return $columns;
    }
}
