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 class for a list of weblinks.
* @package Joomla.Administrator
* @subpackage com_weblinks
public function display($tpl =
null)
if (count($errors =
$this->get('Errors')))
* Add the page title and toolbar.
require_once JPATH_COMPONENT .
'/helpers/weblinks.php';
$state =
$this->get('State');
// Get the toolbar object instance
$bar =
JToolBar::getInstance('toolbar');
if (count($user->getAuthorisedCategories('com_weblinks', 'core.create')) >
0)
if ($canDo->get('core.edit'))
if ($canDo->get('core.edit.state')) {
if ($state->get('filter.state') == -
2 &&
$canDo->get('core.delete'))
} elseif ($canDo->get('core.edit.state'))
if ($user->authorise('core.create', 'com_weblinks') &&
$user->authorise('core.edit', 'com_weblinks') &&
$user->authorise('core.edit.state', 'com_weblinks'))
JHtml::_('bootstrap.modal', 'collapseModal');
$title =
JText::_('JTOOLBAR_BATCH');
// Instantiate a new JLayoutFile instance and render the batch button
$dhtml =
$layout->render(array('title' =>
$title));
$bar->appendButton('Custom', $dhtml, 'batch');
if ($canDo->get('core.admin'))
JText::_('JOPTION_SELECT_PUBLISHED'),
JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.state'), true)
JText::_('JOPTION_SELECT_CATEGORY'),
JHtml::_('select.options', JHtml::_('category.options', 'com_weblinks'), 'value', 'text', $this->state->get('filter.category_id'))
JText::_('JOPTION_SELECT_ACCESS'),
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'))
JText::_('JOPTION_SELECT_LANGUAGE'),
JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'))
JText::_('JOPTION_SELECT_TAG'),
JHtml::_('select.options', JHtml::_('tag.options', true, true), 'value', 'text', $this->state->get('filter.tag'))
* Returns an array of fields the table can be sorted by
* @return array Array containing the field name to sort by as the key and display text as value
'a.ordering' =>
JText::_('JGRID_HEADING_ORDERING'),
'a.state' =>
JText::_('JSTATUS'),
'a.title' =>
JText::_('JGLOBAL_TITLE'),
'a.access' =>
JText::_('JGRID_HEADING_ACCESS'),
'a.hits' =>
JText::_('JGLOBAL_HITS'),
'a.language' =>
JText::_('JGRID_HEADING_LANGUAGE'),
'a.id' =>
JText::_('JGRID_HEADING_ID')
Documentation generated on Tue, 19 Nov 2013 15:17:57 +0100 by phpDocumentor 1.4.3