getLoginUserType

API:getLoginUserType

API Quick reference
Variable name: getLoginUserType
Modx versions: 0.9.x + Evolution
Input parameters:  
Return if successful: Logged in user type
Return type: int
Return on failure: null
Object parent: DocumentParser

Description / Usage

integer getLoginUserType( );

Returns current login user type - web or manager.

Examples

$usrType = getLoginUserType();
if($usrType == "web"){
   $output = "Welcome web user";
}

Notes

Function Source

Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).