JUserHelper: Difference between revisions
From Joomla! Documentation
m moving preparation |
m clean up |
||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JUserHelper== | =={{JVer|11.1}} JUserHelper== | ||
===Description=== | ===Description=== | ||
{{Description:JUserHelper}} | {{subst:Description:JUserHelper}} | ||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 61: | Line 59: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage User|User]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage User|User]] | ||
* [[API17:JUserHelper|Other versions of JUserHelper]] | * [[API17:JUserHelper|Other versions of JUserHelper]] | ||
{{SeeAlso:JUserHelper}} | {{subst:SeeAlso:JUserHelper}} | ||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 16:22, 24 March 2017
JUserHelper
Description
{{subst:Description:JUserHelper}}
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | getProfile | Gets the user profile information. |
| public static | activateUser | Method to activate a user. |
| public static | addUserToGroup | Method to add a user to a group. |
| public static | genRandomPassword | Generate a random password. |
| public static | getCryptedPassword | Formats a password using the current encryption. |
| public static | getSalt | Returns a salt for the appropriate kind of password encryption. |
| public static | getUserGroups | Method to get a list of groups a user is in. |
| public static | getUserId | Returns userid if a user exists. |
| public static | removeUserFromGroup | Method to remove a user from a group. |
| public static | setUserGroups | Method to set the groups for a user. |
- Defined in libraries/joomla/user/helper.php
Importing
jimport( 'joomla.user.helper' );
See also
JUserHelper source code on BitBucket
Subpackage User- Other versions of JUserHelper
{{subst:SeeAlso:JUserHelper}}
User contributed notes
<CodeExamplesForm />