mirror of
https://github.com/netzbegruenung/circles.git
synced 2024-05-14 00:56:05 +02:00
Merge pull request #146 from coletivoEITA/getSharesByPath
Implemented method ShareByCircleProvider->getSharesByPath
This commit is contained in:
commit
726ac6b100
|
@ -414,7 +414,17 @@ class ShareByCircleProvider extends CircleProviderRequest implements IShareProvi
|
|||
* @return IShare[]|null
|
||||
*/
|
||||
public function getSharesByPath(Node $path) {
|
||||
return null;
|
||||
$qb = $this->getBaseSelectSql();
|
||||
$this->limitToFiles($qb, [$path->getId()]);
|
||||
$cursor = $qb->execute();
|
||||
|
||||
$shares = [];
|
||||
while ($data = $cursor->fetch()) {
|
||||
$shares[] = $this->createShareObject($data);
|
||||
}
|
||||
$cursor->closeCursor();
|
||||
|
||||
return $shares;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue