File modules/cms/action/tag/TagEditAction.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\Action; 4 use cms\action\Method; 5 use cms\action\ProjectAction; 6 use cms\action\TagAction; 7 use cms\model\Folder; 8 use cms\model\Permission; 9 use util\exception\SecurityException; 10 11 class TagEditAction extends TagAction implements Method { 12 13 public function view() { 14 15 $this->setTemplateVar('name',$this->tag->name); 16 17 $this->setTemplateVar('objects',array_map( 18 function($baseObject) { 19 // convert baseObject to array 20 return $baseObject->getProperties() + get_object_vars( $baseObject->getDefaultName() ); 21 },$this->tag->getObjects() 22 ) ); 23 24 } 25 }
Downloadmodules/cms/action/tag/TagEditAction.class.php
History Thu, 16 Feb 2023 22:57:35 +0100 Jan Dankert New: More functions (adding, deleting) for tags.