From 0e5518a169d79fea8da5ebd279eb127e5e399b1d Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 19 Mar 2014 13:02:17 +0800 Subject: [PATCH] GroupCountries.php --- GroupCountries.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/GroupCountries.php b/GroupCountries.php index 8c4a2e72..7fbafbbd 100644 --- 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() + { + + } } -- 2.39.2