modX::getLoginUserID
Returns the current user ID, for the current or specified context.
Syntax
API Doc: http://api.modxcms.com/modx/modX.html#getLoginUserID
string getLoginUserID ([string $context = ''])
Example
Get the current login user ID for the 'sports' context.
$id = $modx->getLoginUserID('sports');