- md5
- 4308e1537bb2f031cddd5ab94fae9ac3
- sha1
- b736d475fe53e234eb4cc60e16551f297baa3aef
- sha256
- 49e86763e2f610908e00b9b455eff51c20353285cac0ff4c481da031ff4ef500
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
<?php
/**
* @package Joomla.Administrator
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Users\Administrator\View\Mail;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
/**
* Users mail view.
*
* @since 1.6
*/
class HtmlView extends BaseHtmlView
{
/**
* The \JForm object
*
* @var \JForm
*/
protected $form;
/**
* Display the view
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return void
*/
public function display($tpl = null)
{
// Redirect to admin index if mass mailer disabled in conf
if (\JFactory::getApplication()->get('massmailoff', 0) == 1)
{
\JFactory::getApplication()->redirect(\JRoute::_('index.php', false));
}
// Get data from the model
$this->form = $this->get('Form');
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
\JFactory::getApplication()->input->set('hidemainmenu', true);
\JToolbarHelper::title(\JText::_('COM_USERS_MASS_MAIL'), 'users massmail');
\JToolbarHelper::custom('mail.send', 'envelope.png', 'send_f2.png', 'COM_USERS_TOOLBAR_MAIL_SEND_MAIL', false);
\JToolbarHelper::cancel('mail.cancel');
\JToolbarHelper::divider();
\JToolbarHelper::preferences('com_users');
\JToolbarHelper::divider();
\JToolbarHelper::help('JHELP_USERS_MASS_MAIL_USERS');
}
}
No other release has this exact content. See every version of this file.