Back to Joomla project (class list)

Class IdentityAware - list of methods

Trait for application classes which are identity (user) aware
Package: Joomla\CMS\Application
Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
Located at: Joomla/Application/IdentityAware.php
Project: Joomla

Method Summary

public \Joomla\CMS\User\User
()

Get the application identity.
Returns
  • \Joomla\CMS\User\User
Since
  • 4.0.0
Show source code of this method: getIdentity Source Code

public $this
(\Joomla\CMS\User\User $identity = null)

Allows the application to load a custom or default identity.
Parameters
  • \Joomla\CMS\User\User $identity An optional identity object. If omitted, a null user object is created.
Returns
  • $this
Since
  • 4.0.0
Show source code of this method: loadIdentity Source Code

public void
(\Joomla\CMS\User\UserFactoryInterface $userFactory)

Set the user factory to use.
Parameters
  • \Joomla\CMS\User\UserFactoryInterface $userFactory The user factory to use
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setUserFactory Source Code

Properties Summary

protected \Joomla\CMS\User\User
$identity
The application identity object.
Since
  • 4.0.0
private \Joomla\CMS\User\UserFactoryInterface
$userFactory
UserFactoryInterface
Since
  • 4.0.0

Tags Summary

Since
4.0.0