Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2019-01-11 13:18:39 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2019-01-11 13:18:39 +0300
commitf2a0521d4e7ad49e2604e1b9df695eb5d211f764 (patch)
treebe1dced9987b6f1f7a9b5dcf54e66385b404a6e3 /lib
parent477c1d5f4db10c1e8886097ce1547a2e45040ae2 (diff)
add mail shares and room shares to the output of the monitoring app
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ShareStatistics.php12
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()) {