CoreFiles by mySites.guru
view.html.php47 lines, 956 bytes, from Joomla_3.5.1-Stable-Full_Package.zip
Raw History Compare with 3.5.0
md5
355a50a34a4831442960c837a6461de6
sha1
4d64375f1571b9c314f894a31853552bdad2ed18
sha256
668dc113732859446e7053ee78917f68112cfa528814e10b99976b97dcbe692b
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_banners
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * View class for download a list of tracks.
 *
 * @since  1.6
 */
class BannersViewDownload extends JViewLegacy
{
	/**
	 * 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  mixed  A string if successful, otherwise a Error object.
	 */
	public function display($tpl = null)
	{
		$this->form = $this->get('Form');

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			JError::raiseError(500, implode("\n", $errors));

			return false;
		}

		return parent::display($tpl);
	}
}

The same content is in 12 releases, Joomla 3.5.0-beta2 to 3.5.1. See them all, or every version of this file.