Jump to main content Jump to doc navigation

modUser::loadAttributes

Загружает основные атрибуты, которые определяют профиль безопасности modUser.

Синтаксис

API документация: http://api.modx.com/revolution/2.2/db_core_model_modx_moduser.class.html#%5CmodUser::loadAttributes()

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

Пример

Загрузите атрибуты для 'sports' контекста и цели modResource.

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

Смотрите также

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

Budget

$0 per month—let's make that $500!

Learn more