API17

JUserHelper: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
Doxiki2 (talk | contribs)
Updated to r1448:247ba8d88526
Line 1: Line 1:
__NOTOC__
__NOTOC__
=={{JVer|11.1}} JUserHelper==
===Description===
{{Description:JUserHelper}}
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JUserHelper|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[Description:JUserHelper|Edit Descripton]]<nowiki>]</nowiki>
</span>
</span>
{{Description:JUserHelper}}
===Defined in===
libraries/joomla/user/helper.php
* see source code in [[jplatform:user/helper.php|BitBucket]]
===Subpackage===
[[Subpackage User/11.1|User]]
===Extends===
===Extended by===
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Visibility
!Method name
!Method name
!Description
!Description
|-
|-
|public
|[[JUserHelper::getProfile/11.1|getProfile]]
|[[JUserHelper::getProfile/11.1|getProfile]]
|Gets the user profile information.  
|Gets the user profile information.  
|-
|-
|public static
|[[JUserHelper::activateUser/11.1|activateUser]]
|[[JUserHelper::activateUser/11.1|activateUser]]
|Method to activate a user.  
|Method to activate a user.  
|-
|-
|public static
|[[JUserHelper::addUserToGroup/11.1|addUserToGroup]]
|[[JUserHelper::addUserToGroup/11.1|addUserToGroup]]
|Method to add a user to a group.  
|Method to add a user to a group.  
|-
|-
|public static
|[[JUserHelper::genRandomPassword/11.1|genRandomPassword]]
|[[JUserHelper::genRandomPassword/11.1|genRandomPassword]]
|Generate a random password.  
|Generate a random password.  
|-
|-
|public static
|[[JUserHelper::getCryptedPassword/11.1|getCryptedPassword]]
|[[JUserHelper::getCryptedPassword/11.1|getCryptedPassword]]
|Formats a password using the current encryption.  
|Formats a password using the current encryption.  
|-
|-
|public static
|[[JUserHelper::getSalt/11.1|getSalt]]
|[[JUserHelper::getSalt/11.1|getSalt]]
|Returns a salt for the appropriate kind of password encryption.  
|Returns a salt for the appropriate kind of password encryption.  
|-
|-
|public static
|[[JUserHelper::getUserGroups/11.1|getUserGroups]]
|[[JUserHelper::getUserGroups/11.1|getUserGroups]]
|Method to get a list of groups a user is in.  
|Method to get a list of groups a user is in.  
|-
|-
|public static
|[[JUserHelper::getUserId/11.1|getUserId]]
|[[JUserHelper::getUserId/11.1|getUserId]]
|Returns userid if a user exists.  
|Returns userid if a user exists.  
|-
|-
|public static
|[[JUserHelper::removeUserFromGroup/11.1|removeUserFromGroup]]
|[[JUserHelper::removeUserFromGroup/11.1|removeUserFromGroup]]
|Method to remove a user from a group.  
|Method to remove a user from a group.  
|-
|-
|public static
|[[JUserHelper::setUserGroups/11.1|setUserGroups]]
|[[JUserHelper::setUserGroups/11.1|setUserGroups]]
|Method to set the groups for a user.  
|Method to set the groups for a user.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/user/helper.php
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.user.helper' );</source>
<source lang="php">jimport( 'joomla.user.helper' );</source>
===See also===
===See also===
* JUserHelper source code in [[jplatform:user/helper.php|BitBucket]]
* {{JVer|11.1}} '''JUserHelper source code''' on [[jplatform:user/helper.php|BitBucket]]
* [[JUserHelper|Other versions of this class]]
* {{JVer|11.1}} Subpackage [[Subpackage User/11.1|User]]
* [[JUserHelper|Other versions of JUserHelper]]
{{SeeAlso:JUserHelper}}
{{SeeAlso:JUserHelper}}
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JUserHelper|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[SeeAlso:JUserHelper|Edit See Also]]<nowiki>]</nowiki>
</span>
</span>
===Examples===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />
<dpl>
<dpl>
Line 65: Line 73:
category=ClassExample
category=ClassExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JUserHelper]]</noinclude>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JUserHelper]]</noinclude>

Revision as of 23:10, 27 April 2011

Joomla 11.1 JUserHelper

Description

Template:Description:JUserHelper [Edit Descripton]

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

Template:SeeAlso:JUserHelper [Edit See Also]

User contributed notes

<CodeExamplesForm />