API15

JParameter/getGroups

From Joomla! Documentation

< API15:JParameter
Revision as of 17: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)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Get the number of params in each group

[Edit Descripton]

Template:Description:JParameter/getGroups

Syntax[edit]

getGroups()


Returns[edit]

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

Defined in[edit]

libraries/joomla/html/parameter.php

Importing[edit]

jimport( 'joomla.html.parameter' );

Source Body[edit]

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[edit]

<CodeExamplesForm />