private static function getLockFromData($oData)
 {
     $oLockPage = new AnwPageById($oData->LockPage);
     $oLockPage->setSkipLoadingContent(true);
     $oLockUser = self::sqlToUser($oData->LockUser, $oData->LockUserName);
     $nLockTime = $oData->LockTime;
     $nLockTimeLast = $oData->LockTimeLast;
     $nLockType = $oData->LockType;
     $oLock = new AnwLock($oLockPage, $oLockUser, $nLockTime, $nLockTimeLast, $nLockType);
     return $oLock;
 }