- md5
- 998c36d1324111f49044994c535cfbf9
- sha1
- bfb08f54de0bbc29b972acc7efe308426560eea6
- sha256
- 1b1fd42843dfce71cf94ce63999eda1d361a62e73e1b85991e3a01ebf6fbf815
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
<?php
/**
* @package Joomla.Administrator
* @subpackage com_users
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Users mail view.
*
* @since 1.6
*/
class UsersViewMail extends JViewLegacy
{
/**
* @var object form object
*/
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');
}
}
The same content is in 30 releases, Joomla 3.9.15-rc to 3.10.0-alpha1. See them all, or every version of this file.