modX.checkForLocks

Skip to end of metadata
Go to start of metadata


modX::checkForLocks

Checks for locking on a page. A page is "locked" if another user is already viewing it. This prevents collisions.

Syntax

API Doc: http://api.modxcms.com/modx/modX.html#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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.