API17

Difference between revisions of "JUserHelper::setUserGroups"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 35: Line 35:
 
mixed Boolean true on success,  on error.
 
mixed Boolean true on success,  on error.
 
===Defined in===
 
===Defined in===
libraries/joomla/user/helper.php
+
libraries/joomla/user/helper.php (line 145)
 +
* see source code in [[jplatform:user/helper.php#cl-145|BitBucket]]
 
===Referenced by===
 
===Referenced by===
 
===See also===
 
===See also===

Revision as of 21:31, 23 April 2011

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]

Description[edit]

Method to set the groups for a user.

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

Since[edit]

Joomla 11.1

Synopsis[edit]

public static JUserHelper::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[edit]

mixed Boolean true on success, on error.

Defined in[edit]

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

Referenced by[edit]

See also[edit]

[Edit See Also]

Template:SeeAlso:JUserHelper::setUserGroups

Examples[edit]

<CodeExamplesForm />