summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/modules/members.php30
1 files changed, 27 insertions, 3 deletions
diff --git a/utils/modules/members.php b/utils/modules/members.php
index f06380a..ac32d60 100644
--- a/utils/modules/members.php
+++ b/utils/modules/members.php
@@ -259,10 +259,34 @@ class Members {
public function run($params)
{
- $str = "";
- foreach($this->members as $member) {
- $str .= $member->show();
+ foreach($params as $param) {
+ switch($param) {
+ case "all":
+ $str = "";
+ foreach($this->members as $member) {
+ $str .= $member->show();
+ }
+ return $str;
+
+ case "old":
+ $str = "";
+ foreach($this->members as $member) {
+ if($member->stopyear) $str .= $member->show();
+ }
+ return $str;
+
+ default:
+ case "current":
+ $str = "";
+ foreach($this->members as $member) {
+ if($member->stopyear == "") $str .= $member->show();
+ }
+ return $str;
+ }
}
+
+
+
return $str;
}