File modules/cms/action/tag/TagRemoveAction.class.php
Last commit: Thu Feb 16 22:57:35 2023 +0100 Jan Dankert New: More functions (adding, deleting) for tags.
1 <?php 2 namespace cms\action\tag; 3 use cms\action\Method; 4 use cms\action\TagAction; 5 use language\Messages; 6 7 /** 8 * Deleting the tag. 9 */ 10 class TagRemoveAction extends TagAction implements Method { 11 12 public function view() { 13 14 $this->setTemplateVar( 'name',$this->tag->name ); 15 } 16 17 18 /** 19 * Delete the tag. 20 * 21 * @return void 22 */ 23 public function post() { 24 25 $this->tag->delete(); 26 27 $this->addNoticeFor( $this->tag,Messages::DELETED); 28 } 29 }
Downloadmodules/cms/action/tag/TagRemoveAction.class.php
History Thu, 16 Feb 2023 22:57:35 +0100 Jan Dankert New: More functions (adding, deleting) for tags.