File modules/cms/action/pageelement/PageelementPreviewAction.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\pageelement; 3 use cms\action\Method; 4 use cms\action\PageelementAction; 5 use cms\generator\Producer; 6 use cms\generator\ValueGenerator; 7 8 class PageelementPreviewAction extends PageelementAction implements Method { 9 public function view() { 10 $valueGenerator = new ValueGenerator( $this->createValueContext( Producer::SCHEME_PREVIEW) ); 11 $this->setTemplateVar('preview' ,$valueGenerator->getCache()->get() ); 12 } 13 public function post() { 14 } 15 }
Download modules/cms/action/pageelement/PageelementPreviewAction.class.php
History Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.