Jump to main content Jump to doc navigation

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