CoreFiles by mySites.guru
Category.php40 lines, 904 bytes, from Joomla_6.2.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 6.2.0-alpha2
md5
6caef0918909e5ac9a7ca3a6bb32fc14
sha1
8f51e46977d24c5a83920fa61c331942d7095fea
sha256
d178c79f7b4f609eba468deb66c67ce9b561603f5c5d061b65ac9321b839fef9
<?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';

        parent::__construct($options);
    }
}

The same content is in 3 releases, Joomla 6.2.0-alpha2 to 6.2.0-beta1. See them all, or every version of this file.