| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/www/cj79373/administrator/components/com_engage/Helper/ |
Upload File : |
<?php
/**
* @package AkeebaEngage
* @copyright Copyright (c)2020-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Engage\Admin\Helper;
defined('_JEXEC') or die;
use FOF40\Html\SelectOptions;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
final class Select
{
/**
* Return the options for creating a dropdown for the Enabled field
*
* @param array $params Parameters to pass to SelectOptions::getOptions
*
* @return array
*
* @see SelectOptions::getOptions
*/
public static function published(array $params = []): array
{
$options = SelectOptions::getOptions('published', $params);
$options[] = HTMLHelper::_('select.option', '-3', Text::_('COM_ENGAGE_COMMENT_ENABLED_OPT_SPAM'));
ksort($options);
return $options;
}
/**
* Return the options to select the email template type (`key` field)
*
* @param bool $short Should I use short names instead?
*
* @return array
*/
public static function emailTemplateKey($short = false): array
{
$suffix = $short ? '_SHORT' : '';
return [
HTMLHelper::_('select.option', 'manage', Text::_('COM_ENGAGE_EMAILTEMPLATES_KEY_MANAGE' . $suffix)),
HTMLHelper::_('select.option', 'spam', Text::_('COM_ENGAGE_EMAILTEMPLATES_KEY_SPAM' . $suffix)),
HTMLHelper::_('select.option', 'notify', Text::_('COM_ENGAGE_EMAILTEMPLATES_KEY_NOTIFY' . $suffix)),
HTMLHelper::_('select.option', 'notify_managers', Text::_('COM_ENGAGE_EMAILTEMPLATES_KEY_NOTIFY_MANAGERS' . $suffix)),
HTMLHelper::_('select.option', 'notify_author', Text::_('COM_ENGAGE_EMAILTEMPLATES_KEY_NOTIFY_AUTHOR' . $suffix)),
];
}
}