getLoginUserType

Skip to end of metadata
Go to start of metadata

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";
}

Related

Notes

Function Source

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.