modX.checkForLocks
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
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
$311 per month—let's make that $500!
Learn moremodX::checkForLocks¶
Checks for locking on a page. A page is "locked" if another user is already viewing it. This prevents collisions.
Syntax¶
API Doc: modX::checkForLocks()
void checkForLocks (integer $id, string $action, string $type)
Example¶
Check for locks on the edit_chunk action.
if ($modx->checkForLocks($modx->getLoginUserID(),'edit_chunk','edit');
See Also¶
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
$311 per month—let's make that $500!
Learn more