Actions

API17

Difference between revisions of "JUserHelper::getUserId"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 28: Line 28:
 
int The user id or 0 if not found
 
int The user id or 0 if not found
 
===Defined in===
 
===Defined in===
libraries/joomla/user/helper.php
+
libraries/joomla/user/helper.php (line 268)
 +
* see source code in [[jplatform:user/helper.php#cl-268|BitBucket]]
 
===Referenced by===
 
===Referenced by===
* [[JUser/getInstance/11.1|JUser::getInstance]]
+
* [[JUser::getInstance/11.1|JUser::getInstance]]
 
===See also===
 
===See also===
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">

Revision as of 20:31, 23 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JUserHelper::getUserId

Description

Returns userid if a user exists.

Description:JUserHelper::getUserId [Edit Descripton]

Synopsis

public static JUserHelper::getUserId ($username)
Parameter Type Default Description
$username string The username to search on

Returns

int The user id or 0 if not found

Defined in

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

Referenced by

See also

[Edit See Also]

SeeAlso:JUserHelper::getUserId

Examples

<CodeExamplesForm />