File modules/cms/action/group/GroupRemoveAction.class.php

Last commit: Thu Nov 19 14:49:58 2020 +0100	Jan Dankert	Fix: Action::addNotice() is replaced by Action::addNoticeFor()
1 <?php 2 namespace cms\action\group; 3 use cms\action\GroupAction; 4 use cms\action\Method; 5 use language\Messages; 6 7 /** 8 * Removing this group. 9 */ 10 class GroupRemoveAction extends GroupAction implements Method { 11 12 public function view() { 13 $this->setTemplateVars( $this->group->getProperties() ); 14 } 15 16 17 public function post() { 18 19 $this->group->delete(); 20 $this->addNoticeFor($this->group, Messages::DELETED); 21 } 22 }
Download modules/cms/action/group/GroupRemoveAction.class.php
History Thu, 19 Nov 2020 14:49:58 +0100 Jan Dankert Fix: Action::addNotice() is replaced by Action::addNoticeFor() Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.