File modules/cms/action/page/PageAdvancedAction.class.php

Last commit: Sat Oct 17 02:16:28 2026 +0200	Jan Dankert	Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths.
1 <?php 2 namespace cms\action\page; 3 use cms\action\Method; 4 use cms\action\object\ObjectInfoAction; 5 use cms\action\PageAction; 6 use cms\generator\PageGenerator; 7 use cms\generator\Producer; 8 use cms\model\Permission; 9 use cms\model\Template; 10 11 class PageAdvancedAction extends PageAction implements Method { 12 13 /** 14 * @return void 15 * @throws \util\exception\ClientException 16 * @throws \util\exception\ObjectNotFoundException 17 */ 18 public function view() { 19 20 $parentAction = new ObjectInfoAction(); 21 $parentAction->request = $this->request; 22 $parentAction->init(); 23 $parentAction->view(); 24 25 $this->page->load(); 26 27 $this->setTemplateVars( $this->page->getProperties() ); 28 29 if ( $this->userIsProjectAdmin() ) 30 { 31 $this->setTemplateVar('templateid',$this->page->templateid); 32 } 33 34 $template = new Template( $this->page->templateid ); 35 $template->load(); 36 $this->setTemplateVar('template_name',$template->name ); 37 } 38 39 40 }
Download modules/cms/action/page/PageAdvancedAction.class.php
History Sat, 17 Oct 2026 02:16:28 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths. Thu, 15 Oct 2026 01:39:59 +0200 Jan Dankert New: A much better generation of the OpenAPI Interface documents, supports now the UI API Objects. Thu, 24 Apr 2025 00:13:35 +0200 Jan Dankert New: OpenAPI with REST interface for all actions and methods Fri, 3 Dec 2021 23:36:56 +0100 dankert Some security enhancements. Thu, 4 Mar 2021 00:06:46 +0100 Jan Dankert Removed menu entry for 'changetemplate'.