diff options
-rw-r--r-- | src/controllers/Users.class.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php index a0eebdb..2461f65 100644 --- a/src/controllers/Users.class.php +++ b/src/controllers/Users.class.php @@ -9,9 +9,9 @@ Router::register('users/*' , 'Users', 'individual'); class Users extends Controller { public static $illegal_names = array('', 'new', 'index'); - + // Index Views /////////////////////////////////////////////// - + public function index($routed, $remainder) { return $this->index_dir($routed, $remainder); } @@ -48,9 +48,9 @@ class Users extends Controller { } $this->show_index($routed, $remainder); } - + // Other Views /////////////////////////////////////////////// - + /** * Handle GETing the new user form. * @@ -166,7 +166,7 @@ class Users extends Controller { } } } - + /** * This will parse POST (really, PUT) data to update a single user */ @@ -224,23 +224,23 @@ class Users extends Controller { // Change groups /////////////////////////////////////////////// $this->confArray($user, 'groups'); - + return $vars; } - + private function confArray($user, $key) { if (isset($_POST[$key]) && is_array($_POST[$key])) { $user->setConfArray($key, $_POST[$key]); } } - + private function confText($user, $name) { if (isset($_POST["user_$name"])) { $user->setConf($name, $_POST["user_$name"]); } } - - + + /** * This will parse POST (really, PUT) data to update multiple users. */ @@ -339,7 +339,7 @@ class Users extends Controller { break; } } - + function attrib($key, $name) { return array('key'=>$key, 'name'=>$name); } |