Difference between revisions of "JUserHelper::setUserGroups"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (JoomlaWikiBot moved page JUserHelper::setUserGroups/11.1 to API17:JUserHelper::setUserGroups without leaving a redirect: Robot: Moved page)
(No difference)

Revision as of 21:52, 10 May 2013

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.

Joomla 11.1 JUserHelper::setUserGroups[edit]


Method to set the groups for a user.

Template:Description:JUserHelper::setUserGroups [Edit Descripton]

public static function setUserGroups (
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 Joomla 11.1

See also[edit]

Template:SeeAlso:JUserHelper::setUserGroups [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />