summaryrefslogtreecommitdiff
path: root/utils/modules/members.php
diff options
context:
space:
mode:
authordeva <deva>2009-04-30 08:12:56 +0000
committerdeva <deva>2009-04-30 08:12:56 +0000
commit56dbde9d687c8e97156552963ff8e7496ef6fb79 (patch)
tree2d43c466177b69eaf7ee5ad970ee8e2a1db62ecf /utils/modules/members.php
parent8030e0c5506ace5ef7705bfe6c49d7badc4691a2 (diff)
Added 'all', 'old' and 'current' run-modes.
Diffstat (limited to 'utils/modules/members.php')
-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;
}