API17

Difference between revisions of "JUserHelper"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<span class="editsection" style="font-size:76%;">
+
=={{JVer|11.1}} JUserHelper==
<nowiki>[</nowiki>[[Description:JUserHelper|Edit Descripton]]<nowiki>]</nowiki>
+
===Description===
</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
 
|-
 
|-
|[[JUserHelper::getProfile/11.1|getProfile]]
+
|public
 +
|[[API17:JUserHelper::getProfile|getProfile]]
 
|Gets the user profile information.  
 
|Gets the user profile information.  
 
|-
 
|-
|[[JUserHelper::activateUser/11.1|activateUser]]
+
|public static
 +
|[[API17:JUserHelper::activateUser|activateUser]]
 
|Method to activate a user.  
 
|Method to activate a user.  
 
|-
 
|-
|[[JUserHelper::addUserToGroup/11.1|addUserToGroup]]
+
|public static
 +
|[[API17:JUserHelper::addUserToGroup|addUserToGroup]]
 
|Method to add a user to a group.  
 
|Method to add a user to a group.  
 
|-
 
|-
|[[JUserHelper::genRandomPassword/11.1|genRandomPassword]]
+
|public static
 +
|[[API17:JUserHelper::genRandomPassword|genRandomPassword]]
 
|Generate a random password.  
 
|Generate a random password.  
 
|-
 
|-
|[[JUserHelper::getCryptedPassword/11.1|getCryptedPassword]]
+
|public static
 +
|[[API17:JUserHelper::getCryptedPassword|getCryptedPassword]]
 
|Formats a password using the current encryption.  
 
|Formats a password using the current encryption.  
 
|-
 
|-
|[[JUserHelper::getSalt/11.1|getSalt]]
+
|public static
 +
|[[API17:JUserHelper::getSalt|getSalt]]
 
|Returns a salt for the appropriate kind of password encryption.  
 
|Returns a salt for the appropriate kind of password encryption.  
 
|-
 
|-
|[[JUserHelper::getUserGroups/11.1|getUserGroups]]
+
|public static
 +
|[[API17:JUserHelper::getUserGroups|getUserGroups]]
 
|Method to get a list of groups a user is in.  
 
|Method to get a list of groups a user is in.  
 
|-
 
|-
|[[JUserHelper::getUserId/11.1|getUserId]]
+
|public static
 +
|[[API17:JUserHelper::getUserId|getUserId]]
 
|Returns userid if a user exists.  
 
|Returns userid if a user exists.  
 
|-
 
|-
|[[JUserHelper::removeUserFromGroup/11.1|removeUserFromGroup]]
+
|public static
 +
|[[API17:JUserHelper::removeUserFromGroup|removeUserFromGroup]]
 
|Method to remove a user from a group.  
 
|Method to remove a user from a group.  
 
|-
 
|-
|[[JUserHelper::setUserGroups/11.1|setUserGroups]]
+
|public static
 +
|[[API17:JUserHelper::setUserGroups|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 [[API17:Subpackage User|User]]
{{SeeAlso:JUserHelper}}
+
* [[API17:JUserHelper|Other versions of JUserHelper]]
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JUserHelper|Edit See Also]]<nowiki>]</nowiki>
+
 
</span>
+
===User contributed notes===
===Examples===
+
=== Code Examples ===
<CodeExamplesForm />
 
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JUserHelper
 
category=JUserHelper
category=CodeExample
+
namespace=CodeExample
 
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 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:55, 24 March 2017

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[edit]

Description[edit]

Methods[edit]

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[edit]

jimport( 'joomla.user.helper' );

See also[edit]


User contributed notes[edit]

Code Examples[edit]