- md5
- e16facea53e9a43373872ed0c8981495
- sha1
- f5b3d192fbffcac704d9367dbff413513c1f5e73
- sha256
- 789b5015ad706aaedf598b8022c18562ddf230468e7b813ff9d6cca2808529a4
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
<?php
/**
* @package Joomla.Administrator
* @subpackage com_messages
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Messages\Administrator\Helper;
defined('_JEXEC') or die;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
/**
* Messages helper class.
*
* @since 1.6
*/
class MessagesHelper
{
/**
* Configure the Linkbar.
*
* @param string $vName The name of the active view.
*
* @return void
*
* @since 1.6
*/
public static function addSubmenu($vName)
{
\JHtmlSidebar::addEntry(
Text::_('COM_MESSAGES_ADD'),
'index.php?option=com_messages&view=message&layout=edit',
$vName == 'message'
);
\JHtmlSidebar::addEntry(
Text::_('COM_MESSAGES_READ'),
'index.php?option=com_messages',
$vName == 'messages'
);
}
/**
* 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 3 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha9. See them all, or every version of this file.