Difference between revisions of "JForm/getGroups"
From Joomla! Documentation
< API16:JForm
(New page: ===Description===
Method to get a list of groups.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>...) |
(No difference)
|
Revision as of 17:50, 22 March 2010
The "API16" 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]
Method to get a list of groups.
Template:Description:JForm/getGroups
Syntax[edit]
getGroups($parent=null)
Parameter Name | Default Value | Description |
---|---|---|
$parent | null |
Returns[edit]
array An array of groups.
Defined in[edit]
libraries/joomla/form/form.php
Importing[edit]
jimport( 'joomla.form.form' );
Source Body[edit]
public function getGroups($parent = null)
{
if($parent != null)
{
return isset($this->_fieldsets[$parent]['children']) ? $this->_fieldsets[$parent]['children'] : array();
}
return array_keys($this->_groups);
}
[Edit See Also] Template:SeeAlso:JForm/getGroups
Examples[edit]
<CodeExamplesForm />
I can't find the getGroups function in Joomla 1.6.1 JForm source code. It seems not to exists.