/** * Handles the userlogout event and unlocks all records currently locked by the current user. * * @param string $strEventName * @param array $arrArguments * * @return bool */ public function handleEvent($strEventName, array $arrArguments) { //unwrap arguments list($strUserid) = $arrArguments; foreach (class_lockmanager::getLockedRecordsForUser($strUserid) as $objOneLock) { $objOneLock->getLockManager()->unlockRecord(); } return true; }