File modules/cms/action/user/UserAddgrouptouserAction.class.php
Last commit: Wed Mar 10 23:51:22 2021 +0100 Jan Dankert Refactoring: Cleaned the Request params.
1 <?php 2 namespace cms\action\user; 3 use cms\action\Method; 4 use cms\action\UserAction; 5 use cms\model\Group; 6 use language\Messages; 7 8 class UserAddgrouptouserAction extends UserAction implements Method { 9 public function view() { 10 11 } 12 public function post() { 13 $group = new Group( $this->request->getRequiredNumber('groupid' ) ); 14 $group->load(); 15 16 $this->user->addGroup( $group->groupid ); 17 18 $this->addNoticeFor( $this->user, Messages::ADDED); 19 } 20 }
Downloadmodules/cms/action/user/UserAddgrouptouserAction.class.php
History Wed, 10 Mar 2021 23:51:22 +0100 Jan Dankert Refactoring: Cleaned the Request params. Fri, 26 Feb 2021 01:06:01 +0100 Jan Dankert Refactoring accessing the request parameter values. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.