Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @subpackage com_newsfeeds
* @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 newsfeed.
* @package Joomla.Administrator
* @subpackage com_newsfeeds
public function display($tpl =
null)
if (count($errors =
$this->get('Errors')))
$this->form->setFieldAttribute('language', 'readonly', 'true');
$this->form->setFieldAttribute('catid', 'readonly', 'true');
* 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_newsfeeds', 'core.create')) >
0))
if (!$checkedOut &&
count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) >
0)
// 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:39 +0100 by phpDocumentor 1.4.3