JUserHelper::setUserGroups
From Joomla! Documentation
Revision as of 17:31, 11 May 2013 by JoomlaWikiBot (talk | contribs) (→User contributed notes: moving preparation)
Revision as of 17:31, 11 May 2013 by JoomlaWikiBot (talk | contribs) (→User contributed notes: moving preparation)
The "API17" 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.
JUserHelper::setUserGroups[edit]
Description[edit]
Method to set the groups for a user.
Template:Description:JUserHelper::setUserGroups [Edit Descripton]
public static function setUserGroups (
$userId
$groups
)
Parameter | Type | Default | Description |
---|---|---|---|
$userId | integer | The id of the user. | |
$groups | array | An array of group ids to put the user in. |
- Returns mixed Boolean true on success, on error.
- Defined on line 146 of libraries/joomla/user/helper.php
- Since
See also[edit]
- JUserHelper::setUserGroups source code on BitBucket
- Class JUserHelper
- Subpackage User
- Other versions of JUserHelper::setUserGroups
Template:SeeAlso:JUserHelper::setUserGroups [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />