API15

API15:JParameter/getParams

From Joomla! Documentation

Revision as of 01:01, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Render all parameters

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

getParams($name= 'params', $group= '_default')
Parameter Name Default Value Description
$name 'params' The name of the control, or the default text area if a setup file is not found
$group '_default'

Returns

array Aarray of all parameters, each as array Any array of the label, the form element and the tooltip

Defined in

libraries/joomla/html/parameter.php

Importing

jimport( 'joomla.html.parameter' );

Source Body

function getParams($name = 'params', $group = '_default')
{
        if (!isset($this->_xml[$group])) {
                return false;
        }
        $results = array();
        foreach ($this->_xml[$group]->children() as $param)  {
                $results[] = $this->getParam($param, $name);
        }
        return $results;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples