[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_messages 6 * 7 * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Component\Messages\Administrator\Helper; 12 13 use Joomla\CMS\HTML\HTMLHelper; 14 use Joomla\CMS\Language\Text; 15 16 // phpcs:disable PSR1.Files.SideEffects 17 \defined('_JEXEC') or die; 18 // phpcs:enable PSR1.Files.SideEffects 19 20 /** 21 * Messages helper class. 22 * 23 * @since 1.6 24 */ 25 class MessagesHelper 26 { 27 /** 28 * Get a list of filter options for the state of a module. 29 * 30 * @return array An array of \JHtmlOption elements. 31 * 32 * @since 1.6 33 */ 34 public static function getStateOptions() 35 { 36 // Build the filter options. 37 $options = array(); 38 $options[] = HTMLHelper::_('select.option', '1', Text::_('COM_MESSAGES_OPTION_READ')); 39 $options[] = HTMLHelper::_('select.option', '0', Text::_('COM_MESSAGES_OPTION_UNREAD')); 40 $options[] = HTMLHelper::_('select.option', '-2', Text::_('JTRASHED')); 41 42 return $options; 43 } 44 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |