Jackalope\Lock\LockManager::isLocked PHP Метод

isLocked() публичный Метод

{@inheritDoc}
public isLocked ( $absPath )
    public function isLocked($absPath)
    {
        if (!$this->session->nodeExists($absPath)) {
            throw new PathNotFoundException("There is no node at '{$absPath}'");
        }
        return $this->transport->isLocked($absPath);
    }

Usage Example

Пример #1
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function isLive()
 {
     if ($this->isLive) {
         $this->isLive = $this->lockManager->isLocked($this->path);
     }
     return $this->isLive;
 }