CoreFiles by mySites.guru
Category.php43 lines, 985 bytes, from Joomla_6.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta1
md5
15d7e73ea3e3e80798f8d1280d79552c
sha1
813f8e33d2c31b995264c87acb56a7a2619a35ef
sha256
12f9adffd477c6ff1c919d230bee29f7c3aaa3713fe46cd10f7993a8be7bf38f
<?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['accessfield'] = 'access';
        $options['statefield']  = 'published';
        $options['check_dates'] = true;

        parent::__construct($options);
    }
}

The same content is in 6 releases, Joomla 6.2.0-beta2 to 6.2.1-rc1. See them all, or every version of this file.