JUser: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/user/user.php | libraries/joomla/user/user.php | ||
| Line 56: | Line 54: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JUser | category=JUser | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:14, 25 March 2017
Defined in
libraries/joomla/user/user.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor activating the default information of the language |
| getInstance | Returns a reference to the global User object, only creating it if it doesn't already exist. |
| getParam | Method to get a parameter value |
| setParam | Method to set a parameter |
| defParam | Method to set a default parameter if it does not exist |
| authorize | Method to check JUser object authorization against an access control object and optionally an access extension object |
| setLastVisit | Pass through method to the table for setting the last visit date |
| getParameters | Method to get the user parameters |
| setParameters | Method to get the user parameters |
| getTable | Method to get the user table object |
| bind | Method to bind an associative array of data to a user object |
| save | Method to save the JUser object to the database |
| delete | Method to delete the JUser object from the database |
| load | Method to load a JUser object by user id number |
Importing
jimport( 'joomla.user.user' );
Examples
Code Examples