Actions

API16

JForm/getGroups

From Joomla! Documentation

< API16:JForm
Revision as of 21:52, 13 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Method to get a list of groups.

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />

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