Jump to main content Jump to doc navigation

modUser.loadAttributes

Other versions: 3.x — Other languages: EN RU — Found a problem? Please edit this page or report an issue.

modUser::loadAttributes

Loads the principal attributes that define a modUser security profile.

Syntax

API Doc: http://api.modx.com/revolution/2.2/db_core_model_modx_moduser.class.html#%5CmodUser::loadAttributes()

void loadAttributes ( $target, [ $context = ''], [ $reload = false])

Example

Load attributes for the 'sports' context and the modResource target.

$user->loadAttributes('modResource','sports',true);

See Also