API16

API16:JParameter/getNumParams

From Joomla! Documentation

Description

Return number of params to render.



Syntax

getNumParams($group= '_default')
Parameter Name Default Value Description
$group '_default'

Returns

mixed Boolean falst if no params exist or integer number of params that exist.

Defined in

libraries/joomla/html/parameter.php

Importing

jimport( 'joomla.html.parameter' );

Source Body

public function getNumParams($group = '_default')
{
        if (!isset($this->_xml[$group]) || !count($this->_xml[$group]->children())) {
                return false;
        } else {
                return count($this->_xml[$group]->children());
        }
}



Examples

Code Examples