Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @subpackage com_banners
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
JLoader::register('BannersHelper', JPATH_COMPONENT.
'/helpers/banners.php');
* @package Joomla.Administrator
* @subpackage com_banners
* @var JObject Object containing permissions for the item
public function display($tpl =
null)
if (count($errors =
$this->get('Errors')))
* Add the page title and toolbar.
$isNew =
($this->item->id ==
0);
$checkedOut =
!($this->item->checked_out ==
0 ||
$this->item->checked_out ==
$user->get('id'));
// If not checked out, can save the item.
if (!$checkedOut &&
($canDo->get('core.edit')||
$canDo->get('core.create')))
if (!$checkedOut &&
$canDo->get('core.create')) {
// If an existing item, can save to a copy.
if (!$isNew &&
$canDo->get('core.create'))
if (empty($this->item->id))
if ($this->state->params->get('save_history', 0) &&
$user->authorise('core.edit'))
Documentation generated on Tue, 19 Nov 2013 15:17:31 +0100 by phpDocumentor 1.4.3