Source for file contenttype.php
Documentation is available at contenttype.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.txt
* Form Field class for the Joomla Framework.
* @package Joomla.Libraries
* A flexible tag list that respects access controls
public $type =
'Contenttype';
* Method to get the field input for a list of content types.
* @return string The field input.
* Method to get a list of content types
* @return array The field option objects.
$query =
$db->getQuery(true)
->select('a.type_id AS value, a.type_title AS text')
->from('#__content_types AS a')
->order('a.type_title ASC');
$options =
$db->loadObjectList();
catch
(RuntimeException $e)
// Merge any additional options in the XML definition.
foreach ($options as $option)
$option->text =
'COM_TAGS_CONTENT_TYPE_' .
$option->text;
$option->text =
JText::_($option->text);
Documentation generated on Tue, 19 Nov 2013 14:57:01 +0100 by phpDocumentor 1.4.3