Actions

API17

JUserHelper::addUserToGroup

From Joomla! Documentation

Revision as of 20:31, 23 April 2011 by Doxiki2 (Talk | contribs)

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 JUserHelper::addUserToGroup

Description

Method to add a user to a group.

Description:JUserHelper::addUserToGroup [Edit Descripton]

Since

Joomla 11.1

Synopsis

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

mixed Boolean true on success, on error.

Defined in

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

Referenced by

See also

[Edit See Also]

SeeAlso:JUserHelper::addUserToGroup

Examples

<CodeExamplesForm />