JUserHelper: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JUserHelper}}
===Defined in==... |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/user/helper.php | libraries/joomla/user/helper.php | ||
| Line 42: | Line 37: | ||
|Gets the user profile information | |Gets the user profile information | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.user.helper' );</source> | <source lang="php">jimport( 'joomla.user.helper' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JUserHelper | category=JUserHelper | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:16, 25 March 2017
Defined in
libraries/joomla/user/helper.php
Methods
| Method name | Description |
|---|---|
| addUserToGroup | Method to add a user to a group. |
| getUserGroups | Method to get a list of groups a user is in. |
| removeUserFromGroup | Method to remove a user from a group. |
| setUserGroups | Method to set the groups for a user. |
| activateUser | Method to activate a user |
| getUserId | Returns userid if a user exists |
| getCryptedPassword | Formats a password using the current encryption. |
| getSalt | Returns a salt for the appropriate kind of password encryption. Optionally takes a seed and a plaintext password, to extract the seed of an existing password, or for encryption types that use the plaintext in the generation of the salt. |
| genRandomPassword | Generate a random password |
| getProfile | Gets the user profile information |
Importing
jimport( 'joomla.user.helper' );
Examples
Code Examples