Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* @package Joomla.Administrator
* A list of user note objects.
* Override the display method for the view.
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
* @return mixed A string if successful, otherwise a JError object.
public function display($tpl =
null)
// Initialise view variables.
if (count($errors =
$this->get('Errors')))
throw
new Exception(implode("\n", $errors), 500);
// Get the component HTML helpers
JHtml::addIncludePath(JPATH_COMPONENT .
'/helpers/html');
// turn parameters into registry objects
foreach ($this->items as $item)
$item->cparams->loadString($item->category_params);
if ($canDo->get('core.create'))
if ($canDo->get('core.edit'))
if ($canDo->get('core.edit.state'))
if ($this->state->get('filter.state') == -
2 &&
$canDo->get('core.delete'))
elseif ($canDo->get('core.edit.state'))
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_users.notes'), 'value', 'text', $this->state->get('filter.category_id'))
* 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
'u.name' =>
JText::_('COM_USERS_USER_HEADING'),
'a.subject' =>
JText::_('COM_USERS_SUBJECT_HEADING'),
'c.title' =>
JText::_('COM_USERS_CATEGORY_HEADING'),
'a.state' =>
JText::_('JSTATUS'),
'a.review_time' =>
JText::_('COM_USERS_REVIEW_HEADING'),
'a.id' =>
JText::_('JGRID_HEADING_ID')
Documentation generated on Tue, 19 Nov 2013 15:18:09 +0100 by phpDocumentor 1.4.3