Source for file author.php
Documentation is available at author.php
* @package Joomla.Libraries
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Form Field to load a list of content authors
* @package Joomla.Libraries
* Cached array of the category items.
protected static $options =
array();
* Method to get the options to populate list
* @return array The field option objects.
if (!isset
(static::$options[$hash]))
static::$options[$hash] =
parent::getOptions();
$db =
JFactory::getDbo();
$query =
$db->getQuery(true)
->select('u.id AS value, u.name AS text')
->join('INNER', '#__content AS c ON c.created_by = u.id')
if ($options =
$db->loadObjectList())
static::$options[$hash] =
array_merge(static::$options[$hash], $options);
return static::$options[$hash];
Documentation generated on Tue, 19 Nov 2013 14:54:11 +0100 by phpDocumentor 1.4.3