JUser/1.5

From Joomla! Documentation
< JUser(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
m (See also: fixing link to API)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} JUser==
 +
===Description===
 +
{{Description:JUser}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JUser|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JUser|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JUser}}
 
===Defined in===
 
libraries/joomla/user/user.php
 
===Subpackage===
 
[[Subpackage User/1.5|User]]
 
===Extends===
 
[[JObject/1.5|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JUser::__construct/1.5|__construct]]
 
|[[JUser::__construct/1.5|__construct]]
 
|Constructor activating the default information of the language.  
 
|Constructor activating the default information of the language.  
 
|-
 
|-
 +
|public
 
|[[JUser::authorize/1.5|authorize]]
 
|[[JUser::authorize/1.5|authorize]]
 
|Method to check  object authorization against an access control object and optionally an access extension object.  
 
|Method to check  object authorization against an access control object and optionally an access extension object.  
 
|-
 
|-
 +
|public
 
|[[JUser::bind/1.5|bind]]
 
|[[JUser::bind/1.5|bind]]
 
|Method to bind an associative array of data to a user object.  
 
|Method to bind an associative array of data to a user object.  
 
|-
 
|-
 +
|public
 
|[[JUser::defParam/1.5|defParam]]
 
|[[JUser::defParam/1.5|defParam]]
 
|Method to set a default parameter if it does not exist.  
 
|Method to set a default parameter if it does not exist.  
 
|-
 
|-
 +
|public
 
|[[JUser::delete/1.5|delete]]
 
|[[JUser::delete/1.5|delete]]
 
|Method to delete the  object from the database.  
 
|Method to delete the  object from the database.  
 
|-
 
|-
 +
|public 
 
|[[JUser::getInstance/1.5|getInstance]]
 
|[[JUser::getInstance/1.5|getInstance]]
 
|Returns a reference to the global User object, only creating it if it doesn't already exist.  
 
|Returns a reference to the global User object, only creating it if it doesn't already exist.  
 
|-
 
|-
 +
|public
 
|[[JUser::getParam/1.5|getParam]]
 
|[[JUser::getParam/1.5|getParam]]
 
|Method to get a parameter value.  
 
|Method to get a parameter value.  
 
|-
 
|-
 +
|public 
 
|[[JUser::getParameters/1.5|getParameters]]
 
|[[JUser::getParameters/1.5|getParameters]]
 
|Method to get the user parameters.  
 
|Method to get the user parameters.  
 
|-
 
|-
 +
|public 
 
|[[JUser::getTable/1.5|getTable]]
 
|[[JUser::getTable/1.5|getTable]]
 
|Method to get the user table object.  
 
|Method to get the user table object.  
 
|-
 
|-
 +
|public
 
|[[JUser::load/1.5|load]]
 
|[[JUser::load/1.5|load]]
 
|Method to load a  object by user id number.  
 
|Method to load a  object by user id number.  
 
|-
 
|-
 +
|public
 
|[[JUser::save/1.5|save]]
 
|[[JUser::save/1.5|save]]
 
|Method to save the  object to the database.  
 
|Method to save the  object to the database.  
 
|-
 
|-
 +
|public
 
|[[JUser::setLastVisit/1.5|setLastVisit]]
 
|[[JUser::setLastVisit/1.5|setLastVisit]]
 
|Pass through method to the table for setting the last visit date.  
 
|Pass through method to the table for setting the last visit date.  
 
|-
 
|-
 +
|public
 
|[[JUser::setParam/1.5|setParam]]
 
|[[JUser::setParam/1.5|setParam]]
 
|Method to set a parameter.  
 
|Method to set a parameter.  
 
|-
 
|-
 +
|public
 
|[[JUser::setParameters/1.5|setParameters]]
 
|[[JUser::setParameters/1.5|setParameters]]
 
|Method to get the user parameters.  
 
|Method to get the user parameters.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/user/user.php
 +
* '''Extends''' [[JObject/1.5|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.user.user' );</source>
 
<source lang="php">jimport( 'joomla.user.user' );</source>
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JUser''' on [http://api.joomla.org/1.5/Joomla-Framework/User/JUser.html api.joomla.org]
 +
* {{JVer|1.5}} '''JUser source code''' on [[jframework15:user/user.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage User/1.5|User]]
 +
* [[JUser|Other versions of JUser]]
 +
{{SeeAlso:JUser}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JUser|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JUser|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JUser}}
+
===User contributed notes===
* [[JUser|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/User/JUser.html JUser on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 77: Line 91:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JUser]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JUser]]</noinclude>

Latest revision as of 16:06, 13 February 2013

[edit] Joomla 1.5 JUser

[edit] Description

Description:JUser [Edit Descripton]

[edit] Methods

Visibility Method name Description
public __construct Constructor activating the default information of the language.
public authorize Method to check object authorization against an access control object and optionally an access extension object.
public bind Method to bind an associative array of data to a user object.
public defParam Method to set a default parameter if it does not exist.
public delete Method to delete the object from the database.
public getInstance Returns a reference to the global User object, only creating it if it doesn't already exist.
public getParam Method to get a parameter value.
public getParameters Method to get the user parameters.
public getTable Method to get the user table object.
public load Method to load a object by user id number.
public save Method to save the object to the database.
public setLastVisit Pass through method to the table for setting the last visit date.
public setParam Method to set a parameter.
public setParameters Method to get the user parameters.
  • Defined in libraries/joomla/user/user.php
  • Extends JObject

[edit] Importing

jimport( 'joomla.user.user' );

[edit] See also

SeeAlso:JUser [Edit See Also]

[edit] User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox