Jackalope\Transport\Jackrabbit\Client::isLocked PHP Method

isLocked() public method

{@inheritDoc}
public isLocked ( $absPath )
    public function isLocked($absPath)
    {
        $request = $this->getRequest(Request::PROPFIND, $absPath);
        $request->setBody($this->buildPropfindRequest(array('D:lockdiscovery')));
        $request->setDepth(0);
        $dom = $request->executeDom();
        $lockInfo = $this->getRequiredDomElementByTagNameNS($dom, self::NS_DAV, 'lockdiscovery');
        return $lockInfo->childNodes->length > 0;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function isLocked($absPath)
 {
     return $this->transport->isLocked($absPath);
 }