Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @subpackage com_weblinks
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* View to edit a weblink.
* @package Joomla.Administrator
* @subpackage com_weblinks
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'));
// Since we don't track these assets at the item level, use the category id.
// If not checked out, can save the item.
if (!$checkedOut &&
($canDo->get('core.edit')||
(count($user->getAuthorisedCategories('com_weblinks', 'core.create')))))
if (!$checkedOut &&
(count($user->getAuthorisedCategories('com_weblinks', 'core.create'))))
// If an existing item, can save to a copy.
if (!$isNew &&
(count($user->getAuthorisedCategories('com_weblinks', 'core.create')) >
0))
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:23 +0100 by phpDocumentor 1.4.3