API15

API15:JParameter/getGroups

From Joomla! Documentation

Revision as of 22:22, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Get the number of params in each group <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowik...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get the number of params in each group

[Edit Descripton]

Template:Description:JParameter/getGroups

Syntax

getGroups()


Returns

array Array of all group names as key and param count as value

Defined in

libraries/joomla/html/parameter.php

Importing

jimport( 'joomla.html.parameter' );

Source Body

function getGroups()
{
        if (!is_array($this->_xml)) {
                return false;
        }
        $results = array();
        foreach ($this->_xml as $name => $group)  {
                $results[$name] = $this->getNumParams($name);
        }
        return $results;
}

[Edit See Also] Template:SeeAlso:JParameter/getGroups

Examples

<CodeExamplesForm />