From: Chris Date: Wed, 19 Mar 2014 05:02:17 +0000 (+0800) Subject: GroupCountries.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=0e5518a169d79fea8da5ebd279eb127e5e399b1d GroupCountries.php --- 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() + { + + } }