CoreFiles by mySites.guru
Category.php42 lines, 932 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
80dac1fc574a16145e516704ee231ba9
sha1
25ef7c2b22c7ebc801c217a328387758dca21dfe
sha256
9741d0315ed0af1843d890ad22b8a86f1d56351c7f6b3f4b1b4c89b3cb83e276
<?php

/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @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\Content\Site\Service;

use Joomla\CMS\Categories\Categories;

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

/**
 * Content Component Category Tree
 *
 * @since  1.6
 */
class Category extends Categories
{
    /**
     * Class constructor
     *
     * @param   array  $options  Array of options
     *
     * @since   1.7.0
     */
    public function __construct($options = [])
    {
        $options['table']       = '#__content';
        $options['extension']   = 'com_content';
        $options['accessfield'] = 'access';
        $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.