IdentityAware

Trait for application classes which are identity (user) aware

since

4.0.0

package

Application

Methods

getIdentity

Get the application identity.

getIdentity() : \Joomla\CMS\User\User
since

4.0.0

Response

\Joomla\CMS\User\User

loadIdentity

Allows the application to load a custom or default identity.

loadIdentity(\Joomla\CMS\User\User identity = null) : $this
since

4.0.0

Arguments

identity

\Joomla\CMS\User\UserAn optional identity object. If omitted, a null user object is created.

Response

$this

setUserFactory

Set the user factory to use.

setUserFactory(\Joomla\CMS\User\UserFactoryInterface userFactory) : void
since

4.0.0

Arguments

userFactory

\Joomla\CMS\User\UserFactoryInterfaceThe user factory to use

Properties

identity

The application identity object.

since

4.0.0

Type(s)

User

userFactory

UserFactoryInterface

since

4.0.0

Type(s)

UserFactoryInterface