]> source.dussan.org Git - nextcloud-server.git/commit
Get all shares as iterable
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 29 Oct 2019 15:56:06 +0000 (16:56 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 30 Oct 2019 08:45:27 +0000 (09:45 +0100)
commit8085ca4cc4e0d38e33b623613b36ec0fe03e5a9f
tree8fdb99486678156da016425e36d8444bdfe34821
parent380563fd53a2f03d772614388a9f345579ba7ca3
Get all shares as iterable

Sometimes we need all shares or rather a specific subset of shares but
creating dedicated functions is a pain. This just returns an iterable
object for all shares so we can loop over them without allocating all
the memory on the system.

It should not be used by any user called code. But in an occ command or
background job it is fine IMO.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/federatedfilesharing/lib/FederatedShareProvider.php
apps/sharebymail/lib/ShareByMailProvider.php
lib/private/Share20/DefaultShareProvider.php
lib/private/Share20/Manager.php
lib/public/Share/IManager.php
lib/public/Share/IShareProvider.php