API17

JUserHelper::addUserToGroup

From Joomla! Documentation

Revision as of 21:31, 23 April 2011 by Doxiki2 (talk | contribs) (Layout updates)

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::addUserToGroup[edit]

Description[edit]

Method to add a user to a group.

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

Since[edit]

Joomla 11.1

Synopsis[edit]

public static JUserHelper::addUserToGroup ($userId, $groupId)
Parameter Type Default Description
$userId integer The id of the user.
$groupId integer The id of the group.

Returns[edit]

mixed Boolean true on success, on error.

Defined in[edit]

libraries/joomla/user/helper.php (line 34)

Referenced by[edit]

See also[edit]

[Edit See Also]

Template:SeeAlso:JUserHelper::addUserToGroup

Examples[edit]

<CodeExamplesForm />