CoreFiles by mySites.guru
TemplateTable.php48 lines, 1,219 bytes, from Joomla_5.4.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 5.3.0-alpha3
md5
a1abb90266826be7b40fbe6c6447a2b1
sha1
1d58b9c3f903e2660838589d69d8a49db3eef128
sha256
fdc3cb46443c661e33611a4cbd246caea18c05749da019bb301651f25dd66df4
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_mails
 *
 * @copyright   (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Mails\Administrator\Table;

use Joomla\CMS\Table\Table;
use Joomla\Database\DatabaseInterface;
use Joomla\Event\DispatcherInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Mail Table class.
 *
 * @since  4.0.0
 */
class TemplateTable extends Table
{
    /**
     * An array of key names to be json encoded in the bind function
     *
     * @var    array
     * @since  4.0.0
     */
    protected $_jsonEncode = ['attachments', 'params'];

    /**
     * Constructor
     *
     * @param   DatabaseInterface     $db          Database connector object
     * @param   ?DispatcherInterface  $dispatcher  Event dispatcher for this table
     *
     * @since   4.0.0
     */
    public function __construct(DatabaseInterface $db, ?DispatcherInterface $dispatcher = null)
    {
        parent::__construct('#__mail_templates', ['template_id', 'language'], $db, $dispatcher);
    }
}

The same content is in 79 releases, Joomla 5.4.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.