projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2aa289
)
GroupCountries.php
author
Chris
<chris@roojs.com>
Wed, 19 Mar 2014 05:02:17 +0000
(13:02 +0800)
committer
Chris
<chris@roojs.com>
Wed, 19 Mar 2014 05:02:17 +0000
(13:02 +0800)
GroupCountries.php
patch
|
blob
|
history
diff --git
a/GroupCountries.php
b/GroupCountries.php
index
8c4a2e7
..
7fbafbb
100644
(file)
--- a/
GroupCountries.php
+++ b/
GroupCountries.php
@@
-37,18
+37,22
@@
class Pman_Core_GroupCountries extends Pman
$users = explode(',', $_REQUEST['user_ids']);
- switch($_REQUEST['action']){
- case 'add':
- $this->addPersonToCountry();
- break;
- case 'sup':
- $this->supPersonToCountry();
- break;
- }
+ $cls = $_REQUEST['action'].'PersonToCountry';
+ $this->$cls($users);
print_r($_REQUEST);
}
+ function addPersonToCountry()
+ {
+ foreach($users as $id){
+
+ }
+ }
+ function supPersonToCountry()
+ {
+
+ }
}