modUser.hasSessionContext
Последнее обновление Oct 11th, 2026 | История страницы | Улучшить эту страницу | Сообщить о проблеме
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
$194 per month—let's make that $500!
Learn moremodUser::hasSessionContext¶
Проверяет, есть ли у пользователя определенный контекст сеанса или другими словами, «вошел ли» в определенный контекст.
Синтаксис¶
boolean hasSessionContext (mixed $context)
Пример¶
Проверьте, вошёл ли пользователь в контекст ‘sports’:
if ($user->hasSessionContext('sports')) {
// пользователь вошёл в контекст 'sports'
}
Смотрите также¶
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
$194 per month—let's make that $500!
Learn more










