Horde_Lock::getLockInfo PHP Method

getLockInfo() abstract public method

Return an array of information about the requested lock.
abstract public getLockInfo ( string $lockid ) : array
$lockid string Lock ID to look up.
return array Lock information.
    public abstract function getLockInfo($lockid);

Usage Example

Example #1
0
 /**
  * @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."));
         }
     }
 }