API16

JForm/getGroups: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 44: Line 44:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getGroups
  category=getGroups
  category=JForm
  category=JForm
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:41, 25 March 2017

Description

Method to get a list of groups.


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

Syntax

getGroups($parent=null)
Parameter Name Default Value Description
$parent null

Returns

array An array of groups.

Defined in

libraries/joomla/form/form.php

Importing

jimport( 'joomla.form.form' );

Source Body

public function getGroups($parent = null)
{
        if($parent != null)
        {
                return isset($this->_fieldsets[$parent]['children']) ? $this->_fieldsets[$parent]['children'] : array();
        }
        return array_keys($this->_groups);
}


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

Examples

Code Examples

This function seem not to exists in joomla 1.6.1

I can't find the getGroups function in Joomla 1.6.1 JForm source code. It seems not to exists.

YannCharlou 07:39, 3 April 2011 (CDT) Edit comment