CoreFiles by mySites.guru
Category.php41 lines, 898 bytes, from Joomla_5.3.3-Stable-Full_Package.zip
Raw History Compare with 5.3.2
md5
c34d0629d47f7c7cee32746c83c44149
sha1
c5e014a5680b43f863ab91b4a922b6a220b50519
sha256
e31eb8af5d3b05d45e9d8c0c152b347ebe7093565685fb4edba5b7abad9d74e4
<?php

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

namespace Joomla\Component\Contact\Site\Service;

use Joomla\CMS\Categories\Categories;

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

/**
 * Contact Component Category Tree
 *
 * @since  1.6
 */
class Category extends Categories
{
    /**
     * Class constructor
     *
     * @param   array  $options  Array of options
     *
     * @since   1.6
     */
    public function __construct($options = [])
    {
        $options['table']      = '#__contact_details';
        $options['extension']  = 'com_contact';
        $options['statefield'] = 'published';

        parent::__construct($options);
    }
}

The same content is in 205 releases, Joomla 4.2.7-rc1 to 6.2.0-alpha1. See them all, or every version of this file.