JApplicationBase::loadIdentity
Allows the application to load a custom or default identity.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create an identity, if required, based on more specific needs.
Signature
public function loadIdentity([JUser
$identity = null] )
Parameters
-
$identity
- An optional identity object. If omitted, the factory user is created.
Returns
- JApplicationBase
- This method is chainable.