diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-01-14 23:25:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-14 23:25:51 +0300 |
commit | 24f7c39e28a9f18ffed0aeb4df53964996edffc4 (patch) | |
tree | f2d1b835cd10e5e7cef2506c9b2fc87b2baf4b49 /lib | |
parent | 3efcb4f0911334139c48ecb4859cde0e03f5293d (diff) | |
parent | 6989e1b5edcfaab2db5dea98e609d2164ead12ad (diff) |
Merge pull request #138 from nextcloud/add-new-shares
add mail shares and room shares to the output of the monitoring app
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ShareStatistics.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/ShareStatistics.php b/lib/ShareStatistics.php index 0d08aa5..2244c2d 100644 --- a/lib/ShareStatistics.php +++ b/lib/ShareStatistics.php @@ -56,11 +56,13 @@ class ShareStatistics { $data = [ 'num_shares' => $this->countEntries('share'), - 'num_shares_user' => $this->countShares(0), - 'num_shares_groups' => $this->countShares(1), - 'num_shares_link' => $this->countShares(3), - 'num_shares_link_no_password' => $this->countShares(3, true), - 'num_fed_shares_sent' => $this->countShares(6), + 'num_shares_user' => $this->countShares(\OCP\Share::SHARE_TYPE_USER), + 'num_shares_groups' => $this->countShares(\OCP\Share::SHARE_TYPE_GROUP), + 'num_shares_link' => $this->countShares(\OCP\Share::SHARE_TYPE_LINK), + 'num_shares_mail' => $this->countShares(\OCP\Share::SHARE_TYPE_EMAIL), + 'num_shares_room' => $this->countShares(\OCP\Share::SHARE_TYPE_ROOM), + 'num_shares_link_no_password' => $this->countShares(\OCP\Share::SHARE_TYPE_LINK, true), + 'num_fed_shares_sent' => $this->countShares(\OCP\Share::SHARE_TYPE_REMOTE), 'num_fed_shares_received' => $this->countEntries('share_external'), ]; while ($row = $result->fetch()) { |