CoreFiles by mySites.guru
MessagesHelper.php40 lines, 1,032 bytes, from Joomla_4.2.1-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.1-rc1
md5
f8f78d8e563d87443ca0cb8f0bad4e11
sha1
b192a8aaf39759bf0b53e4b49c24af1e2d2c8e70
sha256
63d84e337a286becb8fab7f820ac9f93247ce021fe35c96f024ec4534b9f23dc
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_messages
 *
 * @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\Messages\Administrator\Helper;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

/**
 * Messages helper class.
 *
 * @since  1.6
 */
class MessagesHelper
{
    /**
     * Get a list of filter options for the state of a module.
     *
     * @return  array  An array of \JHtmlOption elements.
     *
     * @since   1.6
     */
    public static function getStateOptions()
    {
        // Build the filter options.
        $options   = array();
        $options[] = HTMLHelper::_('select.option', '1', Text::_('COM_MESSAGES_OPTION_READ'));
        $options[] = HTMLHelper::_('select.option', '0', Text::_('COM_MESSAGES_OPTION_UNREAD'));
        $options[] = HTMLHelper::_('select.option', '-2', Text::_('JTRASHED'));

        return $options;
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.