Actions

API17

Difference between revisions of "JAccess::getGroupsByUser"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JAccess::getGroupsByUser|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JAccess::getGroupsByUser|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JAccess::getGroupsByUser ($userId, $recursive=true)
+
public static function getGroupsByUser (
 +
        $userId
 +
        $recursive=true
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 30: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 205 of libraries/joomla/access/access.php
===Defined in===
+
* '''Referenced by'''
libraries/joomla/access/access.php
+
** [[JUser::getAuthorisedGroups/11.1|JUser::getAuthorisedGroups]]
===Referenced by===
+
* [[JUser/getAuthorisedGroups/11.1|JUser::getAuthorisedGroups]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JAccess::getGroupsByUser source code''' on [[jplatform:access/access.php#cl-197|BitBucket]]
 +
* {{JVer|11.1}} Class [[JAccess/11.1|JAccess]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Access/11.1|Access]]
 +
* [[JAccess::getGroupsByUser|Other versions of JAccess::getGroupsByUser]]
 +
{{SeeAlso:JAccess::getGroupsByUser}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JAccess::getGroupsByUser|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JAccess::getGroupsByUser|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JAccess/11.1|JAccess]]
+
===User contributed notes===
* [[JAccess::getGroupsByUser|Other versions of this method]]
+
{{SeeAlso:JAccess::getGroupsByUser}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 51: Line 53:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JAccess]][[Category:JAccess::getGroupsByUser]]</noinclude>
 
<noinclude>[[Category:JAccess]][[Category:JAccess::getGroupsByUser]]</noinclude>

Revision as of 20:07, 27 April 2011

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.

Joomla 11.1 JAccess::getGroupsByUser

Description

Method to return a list of user groups mapped to a user.

Description:JAccess::getGroupsByUser [Edit Descripton]

public static function getGroupsByUser (
        $userId
        $recursive=true
)
Parameter Type Default Description
$userId
$recursive true

See also

SeeAlso:JAccess::getGroupsByUser [Edit See Also]

User contributed notes

<CodeExamplesForm />