JParameter/renderToArray
From Joomla! Documentation
< API15:JParameter
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.
Contents
Description
Render all parameters to an array
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
renderToArray($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 Array 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 renderToArray($name = 'params', $group = '_default')
{
if (!isset($this->_xml[$group])) {
return false;
}
$results = array();
foreach ($this->_xml[$group]->children() as $param) {
$result = $this->getParam($param, $name);
$results[$result[5]] = $result;
}
return $results;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >