Source for file debug.php
Documentation is available at debug.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  
 * Users component debugging helper.  
 * @package     Joomla.Administrator  
     * Get a list of the components.  
        $query = 
$db->getQuery(true)  
            ->select('name AS text, element AS value')  
            ->where('type =' . 
$db->quote('component'));  
        $items = 
$db->setQuery($query)->loadObjectList();  
            foreach ($items as &$item)  
                $extension = 
$item->value;  
                    || 
$lang->load("$extension.sys", $source, null, false, true); 
                // Translate component name  
                $item->text = 
JText::_($item->text);  
            // Sort by component name  
     * Get a list of the actions for the component or code actions.  
     * @param   string    The name of the component.  
        // Try to get actions for the component  
            if (!empty($component_actions))  
                foreach ($component_actions as &$action)  
                    $actions[$action->title] = 
array($action->name, $action->description);  
        // Use default actions from configuration if no component selected or component doesn't have actions  
                foreach ($xml->children()->fieldset as $fieldset)  
                    if ('permissions' == (string) 
$fieldset['name'])  
                        foreach ($fieldset->children() as $field)  
                            if ('rules' == (string) 
$field['name'])  
                                foreach ($field->children() as $action)  
                                    $actions[(string) 
$action['title']] = 
array(  
                                        (string) 
$action['name'], 
                                        (string) 
$action['description'] 
                $extension = 
'com_config';  
                    || 
$lang->load($extension, $source, null, false, false) 
                    || 
$lang->load($extension, $source, $lang->getDefault(), false, false); 
     * Get a list of filter options for the levels.  
     * @return  array  An array of JHtmlOption elements.  
        // Build the filter options.  
        $options[] = 
JHtml::_('select.option', '1', JText::sprintf('COM_USERS_OPTION_LEVEL_COMPONENT', 1));  
        $options[] = 
JHtml::_('select.option', '2', JText::sprintf('COM_USERS_OPTION_LEVEL_CATEGORY', 2));  
        $options[] = 
JHtml::_('select.option', '3', JText::sprintf('COM_USERS_OPTION_LEVEL_DEEPER', 3));  
        $options[] = 
JHtml::_('select.option', '4', '4');  
        $options[] = 
JHtml::_('select.option', '5', '5');  
        $options[] = 
JHtml::_('select.option', '6', '6');  
 
 
	
		Documentation generated on Tue, 19 Nov 2013 14:57:56 +0100 by phpDocumentor 1.4.3