Returns whether the current view is locked.
bool TRUE if the view is locked, FALSE otherwise.
public function isLocked() { return is_object($this->lock) && $this->lock->owner != $GLOBALS['user']->uid; }