Jump to main content Jump to doc navigation

modX::checkForLocks

Проверяет наличие блокировки на странице. Страница "заблокирована", если другой пользователь уже просматривает ее. Это предотвращает столкновения.

Синтаксис

API Doc: modX::checkForLocks()

void checkForLocks (integer $id, string $action, string $type)

Пример

Проверьте наличие блокировок в действии edit_chunk.

if ($modx->checkForLocks($modx->getLoginUserID(),'edit_chunk','edit');

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

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