CoreFiles by mySites.guru
Category.php41 lines, 944 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
9d9edcacc8022e800d8cd192eae001cd
sha1
5269d4af71096096ce656b61ecfed5eebb0385c9
sha256
c0e5a486e9c7a298133ffe613bf5ee7d4022a0e7ab108141d36183a25f719ed4
<?php

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

use Joomla\CMS\Categories\Categories;

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

/**
 * Newsfeed Component Category Tree
 *
 * @since  1.6
 */
class Category extends Categories
{
    /**
     * Constructor
     *
     * @param   array  $options  options
     */
    public function __construct($options = [])
    {
        $options['table']       = '#__newsfeeds';
        $options['extension']   = 'com_newsfeeds';
        $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.