Skip to content

After Lock / Unlock / Forward

After lock

1
2
3
4
5
6
7
8
function TABLENAME_after_lock(AppGiniHelperRecordLockContextLock $context)
{
    // the memberID of the user who has locked that record

    $owner = $context->getOwner();
    $context->setAlertMessage("Locked by {$context->getOwner()}");
    return true;
}

After unlock

1
2
3
4
5
6
7
8
function TABLENAME_after_unlock(AppGiniHelperRecordLockContextUnlock $context)
{
    // the memberID of the user who has unlocked that record

    $sender = $context->getSender();
    $context->setAlertMessage("Unlocked by {$context->getSender()}");
    return true;
}

After forward

1
2
3
4
5
6
7
8
9
function TABLENAME_after_forward(AppGiniHelperRecordLockContextForward $context)
{
    /* sender >>> recipient */

    $sender = $context->getSender();
    $recipient = $context->getRecipient();

    $context->setAlertMessage("Forwarded from {$context->getSender()} to {$context->getRecipient()}");
}

Helper functions

  • $context->setAlertMessage($message);
  • $message ( string )