Exemplo n.º 1
0
 /**
  * Returns all lock information on a particular uri
  *
  * This function should return an array with Sabre\DAV\Locks\LockInfo objects. If there are no locks on a file, return an empty array.
  *
  * Additionally there is also the possibility of locks on parent nodes, so we'll need to traverse every part of the tree
  * If the $returnChildLocks argument is set to true, we'll also traverse all the children of the object
  * for any possible locks and return those as well.
  *
  * @param string $uri
  * @param bool $returnChildLocks
  * @return array
  */
 public function getLocks($uri, $returnChildLocks = false)
 {
     $lockList = array();
     if ($this->locksBackend) {
         $lockList = array_merge($lockList, $this->locksBackend->getLocks($uri, $returnChildLocks));
     }
     return $lockList;
 }
Exemplo n.º 2
0
 /**
  * Returns all lock information on a particular uri
  *
  * This function should return an array with Sabre\DAV\Locks\LockInfo objects. If there are no locks on a file, return an empty array.
  *
  * Additionally there is also the possibility of locks on parent nodes, so we'll need to traverse every part of the tree
  * If the $returnChildLocks argument is set to true, we'll also traverse all the children of the object
  * for any possible locks and return those as well.
  *
  * @param string $uri
  * @param bool $returnChildLocks
  * @return array
  */
 function getLocks($uri, $returnChildLocks = false)
 {
     return $this->locksBackend->getLocks($uri, $returnChildLocks);
 }