Documentation

Lock

CPosting::Lock(
    int ID
);

The method Lock attempts to lock a post. Used with automatic dispatch of the post.

Parameters

ParameterDescription Available from version
ID Post ID.

Return values

Returns true on successful blocking. Otherwise, returns false. If blocking wasn't successful due to a database error, returns false and throws (CMain::ThrowException).



© «Bitrix24», 2001-2024
Up