Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @subpackage com_content
* @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 featured articles.
* @package Joomla.Administrator
* @subpackage com_content
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
public function display($tpl =
null)
$this->authors =
$this->get('Authors');
$this->filterForm =
$this->get('FilterForm');
$this->activeFilters =
$this->get('ActiveFilters');
if (count($errors =
$this->get('Errors')))
$options[] =
JHtml::_('select.option', '1', JText::_('J1'));
$options[] =
JHtml::_('select.option', '2', JText::_('J2'));
$options[] =
JHtml::_('select.option', '3', JText::_('J3'));
$options[] =
JHtml::_('select.option', '4', JText::_('J4'));
$options[] =
JHtml::_('select.option', '5', JText::_('J5'));
$options[] =
JHtml::_('select.option', '6', JText::_('J6'));
$options[] =
JHtml::_('select.option', '7', JText::_('J7'));
$options[] =
JHtml::_('select.option', '8', JText::_('J8'));
$options[] =
JHtml::_('select.option', '9', JText::_('J9'));
$options[] =
JHtml::_('select.option', '10', JText::_('J10'));
$this->f_levels =
$options;
* Add the page title and toolbar.
$state =
$this->get('State');
if ($canDo->get('core.create'))
if ($canDo->get('core.edit'))
if ($canDo->get('core.edit.state'))
if ($state->get('filter.published') == -
2 &&
$canDo->get('core.delete'))
elseif ($canDo->get('core.edit.state'))
if ($canDo->get('core.admin'))
* 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
'fp.ordering' =>
JText::_('JGRID_HEADING_ORDERING'),
'a.state' =>
JText::_('JSTATUS'),
'a.title' =>
JText::_('JGLOBAL_TITLE'),
'category_title' =>
JText::_('JCATEGORY'),
'access_level' =>
JText::_('JGRID_HEADING_ACCESS'),
'a.created_by' =>
JText::_('JAUTHOR'),
'language' =>
JText::_('JGRID_HEADING_LANGUAGE'),
'a.created' =>
JText::_('JDATE'),
'a.id' =>
JText::_('JGRID_HEADING_ID')
Documentation generated on Tue, 19 Nov 2013 15:16:53 +0100 by phpDocumentor 1.4.3