Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API: setDisplayName

Scroll Prev Next More

 

Sets the current Display Name.

Syntax

Security::setDisplayName($str)

Arguments

$str

the Display name.

Return value

No return value.

Example

Change the current display name. It makes the most sense to use this function in AfterSuccessfuLogin event.

 

$str = "user_name" ;
Security::setDisplayName($str);

See also:

Security API: getDisplayName

About Security API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software