/**
* @throws Wicked_Exception
*/
public function lock()
{
if ($this->_locks) {
$id = $this->_locks->setLock(Wicked::lockUser(), 'wicked', $this->pageName(), $GLOBALS['conf']['wicked']['lock']['time'] * 60, Horde_Lock::TYPE_EXCLUSIVE);
if ($id) {
$this->_lock = $this->_locks->getLockInfo($id);
} else {
throw new Wicked_Exception(_("The page is already locked."));
}
}
}