Site logo file
API
Search
Phoca.cz Main Site
Phoca Cart
Phoca Cart Demo
Search
Search
Advanced Search
Projects
Joomla
Phoca Cart
Phoca Gallery
Phoca Download
Classes
AbstractAES
AbstractEvent
AbstractEvent
AbstractEvent
AbstractEvent
AbstractGroupButton
AbstractImmutableEvent
AbstractMenu
AbstractModuleDispatcher
AbstractRenderer
AbstractView
Access
Access
AccessiblemediaField
AccesslevelField
ActionButton
ActionsDropdown
Adapter
AdapterInstance
AddUserCommand
AddUserToGroupCommand
AdminController
AdministratorApplication
AdministratorMenu
AdministratorMenuItem
AdministratorRouter
AdminLanguage
AdminModel
Aes
AesInterface
AfterBindEvent
AfterCheckinEvent
AfterCheckoutEvent
AfterDeleteEvent
AfterExtensionBootEvent
AfterHitEvent
AfterLoadEvent
AfterMoveEvent
AfterPublishEvent
AfterReorderEvent
AfterResetEvent
AfterStoreEvent
AliastagField
ApcuStorage
ApiApplication
ApiController
ApiDispatcher
ApiMVCFactory
ApiRouter
ApiRouter
Application
ApplicationHelper
Argon2idHandler
Argon2iHandler
Asset
AssociationExtensionHelper
AssociationExtensionInterface
Associations
AssociationServiceInterface
AssociationServiceTrait
AtomParser
AtomRenderer
Authentication
Authentication
AuthenticationFailed
AuthenticationFailedExceptionHandler
AuthenticationHelper
AuthenticationResponse
AuthorField
Backgroundfill
Base32
BaseApplication
BaseController
BaseDatabaseModel
BaseLayout
BaseModel
BasicButton
BCryptHandler
BeforeBatchEvent
BeforeBindEvent
BeforeCheckinEvent
BeforeCheckoutEvent
BeforeDeleteEvent
BeforeExtensionBootEvent
BeforeHitEvent
BeforeLoadEvent
BeforeMoveEvent
BeforePublishEvent
BeforeReorderEvent
BeforeResetEvent
BeforeStoreEvent
Behavior
BooleanRule
BootableExtensionInterface
Bootstrap
Brightness
Browser
BufferStreamHandler
Cache
CacheConnectingException
CacheController
CacheController
CacheControllerFactory
CacheControllerFactoryInterface
CacheExceptionInterface
CachehandlerField
CacheStorage
CacheStorageHelper
CachingLanguageFactory
CalendarField
CalendarRule
CallbackController
CallbackLogger
Captcha
CaptchaField
CaptchaRule
Categories
CategoriesView
Category
Category
CategoryFactory
CategoryFactory
CategoryFactoryInterface
CategoryFeedView
CategoryField
CategoryInterface
CategoryNode
CategoryServiceInterface
CategoryServiceTrait
CategoryView
ChainedHandler
ChangeItem
Changelog
ChangeSet
ChangeUserPasswordCommand
CheckboxesField
CheckboxField
CheckEvent
CheckIfRehashNeededHandlerInterface
CheckinCheckout
CheckinCheckoutExceptionHandler
CheckJoomlaUpdatesCommand
CheckUpdatesCommand
ChromestyleField
ClassLoader
CleanCacheCommand
Cli
CliApplication
ClientHelper
CliInput
CliOutput
CliRenderer
CMSApplication
CMSApplicationInterface
CMSHelper
CMSObject
CMSPlugin
CMSWebApplicationInterface
CollectionAdapter
ColorField
ColorProcessor
ColorRule
ColorStyle
ComboField
Component
ComponentAdapter
ComponentDispatcher
ComponentDispatcherFactory
ComponentDispatcherFactory
ComponentDispatcherFactoryInterface
ComponentHelper
ComponentInterface
ComponentlayoutField
ComponentRecord
ComponentRenderer
ComponentsField
Config
ConfirmButton
Console
ConsoleApplication
ContainerAwareToolbarFactory
Content
Content
ContentHelper
ContentHistory
ContenthistoryField
ContentLanguage
ContentlanguageField
ContentType
ContenttypeField
Contrast
ControllerInterface
Cookie
CoreAssetItem
CoreButtonsTrait
CoreContent
Crypt
CryptoCipher
CssIdentifierRule
CssIdentifierSubstringRule
CurlTransport
CustomButton
DaemonApplication
Database
DatabaseAwareTrait
DatabaseconnectionField
DatabaseLogger
DatabaseModelInterface
Date
Date
Debug
DelegatingPsrLogger
DeleteUserCommand
Dispatcher
Dispatcher
DispatcherInterface
DisplayEvent
Document
Document
DocumentRenderer
DownloadSource
DraggableList
Dropdown
DropdownButton
DummyPlugin
EchoLogger
Edgedetect
Editor
EditorField
Email
EmailField
EmailRule
Emboss
EqualsRule
ErrorDocument
ErrorEvent
EventAware
EventAwareInterface
ExceptionHandler
ExistsRule
Extension
ExtensionAdapter
ExtensionDiscoverCommand
ExtensionDiscoverInstallCommand
ExtensionDiscoverListCommand
ExtensionHelper
ExtensionInstallCommand
ExtensionManagerInterface
ExtensionManagerTrait
ExtensionNamespaceMapper
ExtensionRemoveCommand
ExtensionsListCommand
Factory
Factory
FactoryInterface
FeaturedButton
Feed
FeedDocument
FeedEnclosure
FeedEntry
FeedFactory
FeedImage
FeedItem
FeedLink
FeedParser
FeedPerson
FeedRenderer
FieldsServiceInterface
File
FileAdapter
FileField
FileLayout
FilelistField
FilePathRule
Files
FileStorage
FilesystemHelper
FinderIndexCommand
Folder
FolderlistField
FolderPathExistsRule
Form
Form
Form
FormattedtextLogger
FormBehavior
FormBehaviorTrait
FormController
FormFactory
FormFactoryAwareInterface
FormFactoryAwareTrait
FormFactoryInterface
FormField
FormFilterInterface
FormHelper
FormModel
FormModelInterface
FormRule
FormValidateAssetItem
FormView
FrontendlanguageField
FtpClient
GenericDataException
GenericEvent
GetConfigurationCommand
Grayscale
Grid
GroupedlistField
HeadertagField
HeadRenderer
Help
HelpButton
HelperFactory
HelperFactory
HelperFactoryInterface
HiddenField
HtmlDocument
HTMLHelper
HTMLRegistry
HTMLRegistryAwareTrait
HtmlRenderer
HtmlView
Http
HttpBridgePostRequestMethod
HttpFactory
Icons
IdentityAware
Image
ImageDocument
ImageFilter
ImagelistField
ImmutableNodeInterface
ImmutableNodeTrait
InlinehelpButton
InMemoryLogger
Input
InputFilter
Installer
InstallerAdapter
InstallerExtension
InstallerHelper
InstallerScript
IntarrayFilter
IntegerField
InvalidActionException
InvalidParameterExceptionHandler
InvalidRouteExceptionHandler
ItemModel
ItemModelInterface
ItunesRssParser
JGrid
JoomlaSerializer
JoomlaStorage
Jquery
Json
JsonapiDocument
JsonapiRenderer
JsonApiView
JsonDocument
JsonRenderer
JsonResponse
JsonView
KeepaliveAssetItem
LangActiveAssetItem
Language
Language
Language
LanguageAdapter
LanguageFactory
LanguageFactoryInterface
LanguageField
LanguageHelper
LastvisitdaterangeField
LayoutHelper
LayoutInterface
LegacyComponent
LegacyComponentDispatcher
LegacyFactory
LegacyModelLoaderTrait
LibraryAdapter
LibraryHelper
LibraryManifest
LimitboxField
LinkButton
Links
ListField
ListHelper
ListModel
ListModelInterface
ListUserCommand
ListView
Log
LogEntry
Logger
Logger
LoggerRegistry
Mail
MailDisabledException
MailHelper
MailTemplate
Manifest
Mcrypt
MD5Handler
MediaField
MediaHelper
MediaRssParser
MemcachedStorage
Menu
Menu
Menu
MenuFactory
MenuFactoryInterface
MenuField
MenuItem
MenuitemField
MenuRules
MenuType
MessagequeueLogger
MessageRenderer
MetadataManager
MetadataManagerListener
MetasRenderer
MeterField
Microdata
MissingComponentException
ModelInterface
Module
Module
Module
ModuleAdapter
ModuleDispatcher
ModuleDispatcherFactory
ModuleDispatcherFactory
ModuleDispatcherFactoryInterface
ModuleHelper
ModuleInterface
ModulelayoutField
ModuleLayoutRule
ModuleorderField
ModulepositionField
ModuleRenderer
ModulesRenderer
ModuletagField
Multilanguage
MVCComponent
MVCFactory
MVCFactory
MVCFactoryAwareTrait
MVCFactoryInterface
MVCFactoryServiceInterface
MVCFactoryServiceTrait
MysqlChangeItem
NamespaceParserInterface
Negate
Nested
NodeInterface
NodeTrait
NomenuRules
NotAcceptable
NotAcceptableExceptionHandler
NotAllowed
NotAllowedExceptionHandler
NoteField
NotequalsRule
Number
NumberField
NumberRule
ObjectCreateEvent
OnGetApiAttributes
OnGetApiFields
OnGetApiRelation
OpensearchDocument
OpensearchImage
OpensearchUrl
OpenSSL
OptionsRule
OrderingField
OutputController
OutputFilter
PackageAdapter
PackageManifest
PageController
Pagination
PaginationObject
PasswordField
PasswordRule
Patcher
Path
Pathway
Pathway
PHPassHandler
PluginAdapter
PluginHelper
PluginInterface
PluginsField
PluginstatusField
PopupButton
PostgresqlChangeItem
PredefinedlistField
PreloadManager
PreloadManagerInterface
ProcessorInterface
Profiler
ProviderAwareAuthenticationPluginInterface
PublishedButton
PunycodeHelper
RadiobasicField
RadioField
Randval
RandValInterface
RangeField
RawDocument
RawFilter
RedirectStatusField
RedisStorage
RegistrationdaterangeField
Registry
RemoveOldFilesCommand
RemoveUserFromGroupCommand
RendererInterface
RendererInterface
ResourceNotFound
ResourceNotFoundExceptionHandler
Response
Route
RouteHelper
RouteNotFoundException
Router
RouterBase
RouterFactory
RouterFactory
RouterFactoryInterface
RouterInterface
RouterLegacy
RouterServiceInterface
RouterServiceTrait
RouterView
RouterViewConfiguration
RssParser
RssRenderer
Rule
Rules
RulesField
RulesFilter
RulesInterface
RulesRule
SafehtmlFilter
Save
SaveExceptionHandler
ScriptsRenderer
SearchTools
SectionNotFoundException
Select
SendEmail
SendEmailExceptionHandler
SeparatorButton
Session
Session
SessionFactory
SessionGcCommand
SessionhandlerField
SessionManager
SessionMetadataGcCommand
SetConfigurationCommand
SetNewTagsEvent
Sidebar
SiteApplication
SiteDownCommand
SiteMenu
SitePathway
SiteRouter
SiteUpCommand
Sketchy
Smooth
SocketTransport
SodiumCipher
SortableList
SpacerField
SqlField
SqlsrvChangeItem
StandardButton
StandardRules
StateBehaviorTrait
StatefulModelInterface
StatusField
Stdout
Stream
StreamString
StreamTransport
StringController
StringHelper
StylesRenderer
SubformField
SubformRule
SyslogLogger
Table
TableInterface
Tag
TagApiSerializerTrait
TagField
TaggableTableInterface
TaggableTableTrait
TagServiceInterface
TagServiceTrait
TagsHelper
TasksListCommand
TasksRunCommand
TasksStateCommand
Telephone
TelephoneField
TelFilter
TelRule
TemplateAdapter
TemplatestyleField
Text
TextareaField
TextField
TimeField
TimeRule
TimezoneField
Toolbar
Toolbar
ToolbarButton
ToolbarFactoryInterface
ToolbarHelper
Totp
TransitionButton
TransitionField
Transliterate
TransportInterface
Ucm
UCM
UCMBase
UCMContent
UCMType
UiTab
UnknownAssetException
UnparsableImageException
UnsatisfiedDependencyException
UnsetFilter
UnsupportedCacheException
UnsupportedStorageException
Update
Update
UpdateAdapter
UpdateCoreCommand
Updater
UpdateSite
Uri
UrlField
UrlFilter
UrlRule
User
User
User
User
UseractiveField
UserFactory
UserFactoryInterface
UserField
Usergroup
UsergrouplistField
UserGroupsHelper
UserHelper
UserIdRule
UsernameRule
UserstateField
Utility
Version
VersionableControllerTrait
VersionableModelTrait
VersionableTableInterface
Versioning
ViewController
ViewInterface
ViewLevel
W3cLogger
WebApplication
WebAssetAttachBehaviorInterface
WebAssetExceptionInterface
WebAssetItem
WebAssetItemInterface
WebAssetManager
WebAssetManagerInterface
WebAssetRegistry
WebAssetRegistry
WebAssetRegistryAssetChanged
WebAssetRegistryInterface
WincacheStorage
Workflow
WorkflowBehaviorTrait
WorkflowComponentSectionsField
WorkflowconditionField
WorkflowFunctionalityUsedEvent
WorkflowModelInterface
WorkflowPluginTrait
WorkflowServiceInterface
WorkflowServiceTrait
WorkflowStage
WorkflowstageField
WorkflowTransitionEvent
WritableContainerLoader
WritableLoaderInterface
Xml
XmlDocument
XmlRenderer
Methods
__construct
getInstance
getParam
setParam
defParam
authorise
getAuthorisedCategories
getAuthorisedViewLevels
getAuthorisedGroups
clearAccessRights
setLastVisit
getTimezone
setParameters
getTable
bind
save
delete
load
__sleep
__wakeup
You are here:
Home
Joomla
User
⇦
Back to Joomla project (class list)
Class User - list of methods
User class. Handles all application interaction with a user
Extends
CMSObject
Package:
Joomla\CMS\User
Copyright:
(C) 2006 Open Source Matters, Inc.
License:
GNU General Public License version 2 or later; see LICENSE.txt
Located at:
Joomla/User/User.php
Project:
Joomla
Method Summary
public
__construct
(mixed
$identifier
=
0
)
Constructor activating the default information of the language
Parameters
int
$identifier
The primary key of the user to load (optional).
Since
1.7.0
Show source code of this method:
__construct Source Code
public static \Joomla\CMS\User\User
getInstance
(mixed
$identifier
=
0
)
Returns the global User object, only creating it if it doesn't already exist.
Parameters
int
$identifier
The primary key of the user to load (optional).
Returns
\Joomla\CMS\User\User The User object.
Since
1.7.0
Deprecated
5.0
Show source code of this method:
getInstance Source Code
public mixed
getParam
(mixed
$key
, mixed
$default
=
null
)
Method to get a parameter value
Parameters
string
$key
Parameter key
mixed
$default
Parameter default value
Returns
mixed
The value or the default if it did not exist
Since
1.7.0
Show source code of this method:
getParam Source Code
public mixed
setParam
(mixed
$key
, mixed
$value
)
Method to set a parameter
Parameters
string
$key
Parameter key
mixed
$value
Parameter value
Returns
mixed
Set parameter value
Since
1.7.0
Show source code of this method:
setParam Source Code
public mixed
defParam
(mixed
$key
, mixed
$value
)
Method to set a default parameter if it does not exist
Parameters
string
$key
Parameter key
mixed
$value
Parameter value
Returns
mixed
Set parameter value
Since
1.7.0
Show source code of this method:
defParam Source Code
public bool
authorise
(mixed
$action
, mixed
$assetname
=
null
)
Method to check User object authorisation against an access control object and optionally an access extension object
Parameters
string
$action
The name of the action to check for permission.
string
$assetname
The name of the asset on which to perform the action.
Returns
bool
True if authorised
Since
1.7.0
Show source code of this method:
authorise Source Code
public array
getAuthorisedCategories
(mixed
$component
, mixed
$action
)
Method to return a list of all categories that a user has permission for a given action
Parameters
string
$component
The component from which to retrieve the categories
string
$action
The name of the section within the component from which to retrieve the actions.
Returns
array
List of categories that this group can do this action to (empty array if none). Categories must be published.
Since
1.7.0
Show source code of this method:
getAuthorisedCategories Source Code
public array
getAuthorisedViewLevels
()
Gets an array of the authorised access levels for the user
Returns
array
Since
1.7.0
Show source code of this method:
getAuthorisedViewLevels Source Code
public array
getAuthorisedGroups
()
Gets an array of the authorised user groups
Returns
array
Since
1.7.0
Show source code of this method:
getAuthorisedGroups Source Code
public void
clearAccessRights
()
Clears the access rights cache of this user
Returns
void
Since
3.4.0
Show source code of this method:
clearAccessRights Source Code
public bool
setLastVisit
(mixed
$timestamp
=
null
)
Pass through method to the table for setting the last visit date
Parameters
int
$timestamp
The timestamp, defaults to 'now'.
Returns
bool
True on success.
Since
1.7.0
Show source code of this method:
setLastVisit Source Code
public \DateTimeZone
getTimezone
()
Method to get the user timezone.
Returns
\DateTimeZone
Since
3.7.0
Show source code of this method:
getTimezone Source Code
public void
setParameters
(mixed
$params
)
Method to get the user parameters
Parameters
object
$params
The user parameters object
Returns
void
Since
1.7.0
Show source code of this method:
setParameters Source Code
public static \Joomla\CMS\Table\Table
getTable
(mixed
$type
=
null
, mixed
$prefix
=
'JTable'
)
Method to get the user table object
Parameters
string
$type
The user table name to be used
string
$prefix
The user table prefix to be used
Returns
\Joomla\CMS\Table\Table The user table object
Since
1.7.0
-
At 4.0 this method will no longer be static
Show source code of this method:
getTable Source Code
public bool
bind
(mixed
&$array
)
Method to bind an associative array of data to a user object
Parameters
array
&
$array
The associative array to bind to the object
Returns
bool
True on success
Since
1.7.0
Show source code of this method:
bind Source Code
public bool
save
(mixed
$updateOnly
=
false
)
Method to save the User object to the database
Parameters
bool
$updateOnly
Save the object only if not a new user Currently only used in the user reset password method.
Returns
bool
True on success
Since
1.7.0
-
\RuntimeException
Show source code of this method:
save Source Code
public bool
delete
()
Method to delete the User object from the database
Returns
bool
True on success
Since
1.7.0
Show source code of this method:
delete Source Code
public bool
load
(mixed
$id
)
Method to load a User object by user id number
Parameters
mixed
$id
The user id of the user to load
Returns
bool
True on success
Since
1.7.0
Show source code of this method:
load Source Code
public array
__sleep
()
Method to allow serialize the object with minimal properties.
Returns
array
The names of the properties to include in serialization.
Since
3.6.0
Show source code of this method:
__sleep Source Code
public void
__wakeup
()
Method to recover the full object on unserialize.
Returns
void
Since
3.6.0
Show source code of this method:
__wakeup Source Code
Properties Summary
protected
bool
$isRoot
A cached switch for if this user has root access rights.
Since
1.7.0
public
int
$id
Unique id
Since
1.7.0
public
string
$name
The user's real name (or nickname)
Since
1.7.0
public
string
$username
The login name
Since
1.7.0
public
string
$email
The email
Since
1.7.0
public
string
$password
MD5 encrypted password
Since
1.7.0
public
string
$password_clear
Clear password, only available when a new password is set for a user
Since
1.7.0
public
int
$block
Block status
Since
1.7.0
public
int
$sendEmail
Should this user receive system email
Since
1.7.0
public
string
$registerDate
Date the user was registered
Since
1.7.0
public
string
$lastvisitDate
Date of last visit
Since
1.7.0
public
string
$activation
Activation hash
Since
1.7.0
public \Joomla\Registry\Registry
$params
User parameters
Since
1.7.0
public
array
$groups
Associative array of user names => group ids
Since
1.7.0
public
int
$guest
Guest status
Since
1.7.0
public
string
$lastResetTime
Last Reset Time
Since
3.0.1
public
int
$resetCount
Count since last Reset Time
Since
3.0.1
public
int
$requireReset
Flag to require the user's password be reset
Since
3.2
protected \Joomla\Registry\Registry
$_params
User parameters
Since
1.7.0
protected
array
$_authGroups
Authorised access groups
Since
1.7.0
protected
array
$_authLevels
Authorised access levels
Since
1.7.0
protected
array
$_authActions
Authorised access actions
Since
1.7.0
protected
string
$_errorMsg
Error message
Since
1.7.0
protected static
array
$instances
Since
1.7.3
Tags Summary
Since
1.7.0