FreeMED. RecordLock

Handle individual table row locking.

Summary
Handle individual table row locking.
Creates a recordlock object for a particular table.
Determine if a particular row has been locked.
Lock the specified row, or renew a currently held lock.
Remove any locks held on a particular table row

Functions

RecordLock

function RecordLock ($table)

Creates a recordlock object for a particular table.

Parameters

$tableTable name

IsLocked

function IsLocked ($row)

Determine if a particular row has been locked.

Parameters

$rowid of record to be checked

Returns

User number if a particular user has the record locked, otherwise returns false.

LockRow

function LockRow ($row)

Lock the specified row, or renew a currently held lock.

Parameters

$rowRow id in question

Returns

Boolean, success.

UnlockRow

function UnlockRow ($row)

Remove any locks held on a particular table row

Parameters

$rowTable row in question

Returns

Boolean, success.

function RecordLock ($table)
Creates a recordlock object for a particular table.
function IsLocked ($row)
Determine if a particular row has been locked.
function LockRow ($row)
Lock the specified row, or renew a currently held lock.
function UnlockRow ($row)
Remove any locks held on a particular table row