|
|||
|
Checks the existence of a page lock?. A page lock? is created when an user starts editing a page. You can use this tag to warn the user, prevent the page from being modified (by removing the editor text area, for example), etc.
Usage<wiki:CheckLock mode="locked|unlocked|owned" id="<variable>">
Parameters
Example<wiki:CheckLock mode="locked" id="lock"> <P CLASS="locknote">User '<%=lock.getLocker()%>' has started to edit this page, but has not yet saved. I won't stop you from editing this page anyway, BUT be aware that the other person might be quite annoyed. It would be courteous to wait for his lock to expire or until he stops editing the page. The lock expires in <%=lock.getTimeLeft()%> minutes. </P> </wiki:CheckLock>
The PageLock classThe PageLock class has the following methods you can use:
|
This material is based upon work supported by the National Science Foundation under award 0225676. Any opinions, findings and conclusions or recomendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation (NSF). Copyright 2004 Partnership for Biodiversity Informatics, University of New Mexico, The Regents of the University of California, and University of Kansas |