diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-24 14:52:51 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 07:44:24 -0700 |
commit | 69cb47ccf445008bfb37d9a52f31da18dd5cdcaa (patch) | |
tree | 0bd817065e8ea979f0f55712313151ab839e32ea /plugins/YammerImport/lib | |
parent | 8f438da254defa35d9e066fb29947da208d14319 (diff) |
Initial progress display of Yammer import state in admin panel
Diffstat (limited to 'plugins/YammerImport/lib')
-rw-r--r-- | plugins/YammerImport/lib/yammerrunner.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/YammerImport/lib/yammerrunner.php b/plugins/YammerImport/lib/yammerrunner.php index c4db48399..e0aadff2c 100644 --- a/plugins/YammerImport/lib/yammerrunner.php +++ b/plugins/YammerImport/lib/yammerrunner.php @@ -324,4 +324,51 @@ class YammerRunner return true; } + /** + * Count the number of Yammer users we've mapped into our system! + * + * @return int + */ + public function countUsers() + { + $map = new Yammer_user(); + return $map->count(); + } + + + /** + * Count the number of Yammer groups we've mapped into our system! + * + * @return int + */ + public function countGroups() + { + $map = new Yammer_group(); + return $map->count(); + } + + + /** + * Count the number of Yammer notices we've pulled down for pending import... + * + * @return int + */ + public function countFetchedNotices() + { + $map = new Yammer_notice_stub(); + return $map->count(); + } + + + /** + * Count the number of Yammer notices we've mapped into our system! + * + * @return int + */ + public function countSavedNotices() + { + $map = new Yammer_notice(); + return $map->count(); + } + } |