File modules/cms/action/project/ProjectRemoveAction.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\project; 3 use cms\action\Method; 4 use cms\action\ProjectAction; 5 use language\Messages; 6 7 class ProjectRemoveAction extends ProjectAction implements Method { 8 9 public function view() { 10 11 $this->setTemplateVar( 'name',$this->project->name ); 12 } 13 14 15 public function post() { 16 17 // Gesamtes Projekt loeschen 18 $this->project->delete(); 19 20 $this->addNoticeFor( $this->project,Messages::DELETED); 21 } 22 }
Downloadmodules/cms/action/project/ProjectRemoveAction.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.