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 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;
// We don't need toolbar in the modal window.
* Add the page title and toolbar.
// Get the toolbar object instance
$bar =
JToolBar::getInstance('toolbar');
if ($canDo->get('core.create') ||
(count($user->getAuthorisedCategories('com_content', 'core.create'))) >
0 )
if (($canDo->get('core.edit')) ||
($canDo->get('core.edit.own')))
if ($canDo->get('core.edit.state'))
if ($this->state->get('filter.published') == -
2 &&
$canDo->get('core.delete'))
elseif ($canDo->get('core.edit.state'))
if ($user->authorise('core.create', 'com_content') &&
$user->authorise('core.edit', 'com_content') &&
$user->authorise('core.edit.state', 'com_content'))
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'))
* 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'),
'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'),
'a.featured' =>
JText::_('JFEATURED')
Documentation generated on Tue, 19 Nov 2013 15:16:55 +0100 by phpDocumentor 1.4.3