Source for file config.php
Documentation is available at config.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.txt
* Components helper for com_config
* @package Joomla.Administrator
* Get an array of all enabled components.
$query =
$db->getQuery(true)
->where('type = ' .
$db->quote('component'))
$result =
$db->loadColumn();
* Returns true if the component has configuration options.
* @param string $component Component name
* Returns an array of all components with configuration options. By only
* components for which the current user has 'core.manage' rights are returned.
* @param boolean $authCheck
$components =
self::getAllComponents();
// Remove com_config from the array as that may have weird side effects
$components =
array_diff($components, array('com_config'));
foreach ($components as $component)
if (self::hasComponentConfig($component) &&
(!$authCheck ||
$user->authorise('core.manage', $component)))
* Load the sys language for the given component.
* @param string $components
foreach ($components as $component)
// Load the core file then
// Load extension-local file.
$lang->load($component .
'.sys', JPATH_BASE, null, false, true)
||
$lang->load($component .
'.sys', JPATH_ADMINISTRATOR .
'/components/' .
$component, null, false, true);
Documentation generated on Tue, 19 Nov 2013 14:56:29 +0100 by phpDocumentor 1.4.3