File modules/cms/action/user/UserRemoveAction.class.php
Last commit: Tue Nov 17 23:51:00 2020 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.
1 <?php 2 namespace cms\action\user; 3 use cms\action\Method; 4 use cms\action\UserAction; 5 use language\Messages; 6 7 8 class UserRemoveAction extends UserAction implements Method { 9 public function view() { 10 $this->setTemplateVars( $this->user->getProperties() ); 11 } 12 public function post() { 13 $this->user->delete(); 14 $this->addNoticeFor( $this->user ,Messages::DELETED); 15 } 16 }
Downloadmodules/cms/action/user/UserRemoveAction.class.php
History Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.