Horde_Lock::clearLock PHP Method

clearLock() abstract public method

NOTE: No security checks are done in the Horde_Lock API. It is expected that the calling application has done all necessary security checks before requesting a lock be cleared.
abstract public clearLock ( string $lockid ) : boolean
$lockid string The lock ID as generated by a previous call to setLock()
return boolean Returns true on success.
    public abstract function clearLock($lockid);

Usage Example

Example #1
0
 public function unlock()
 {
     if ($this->_locks && $this->_lock) {
         $this->_locks->clearLock($this->_lock['lock_id']);
         unset($this->_lock);
     }
 }
All Usage Examples Of Horde_Lock::clearLock