File modules/cms/action/file/FilePreviewAction.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\file; 3 use cms\action\FileAction; 4 use cms\action\Method; 5 use util\Html; 6 7 8 class FilePreviewAction extends FileAction implements Method { 9 10 public function view() { 11 $url = Html::url($this->file->getType(),'show',$this->file->objectid ); 12 $this->setTemplateVar('preview_url',$url ); 13 } 14 15 public function post() { 16 } 17 }
Download modules/cms/action/file/FilePreviewAction.class.php
History Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.