File modules/cms/action/BaseAction.class.php

Last commit: Fri Mar 18 22:38:42 2022 +0100	dankert	Refactoring: Extracted the TemplateGenerator out of the PageGenerator.
1 <?php 2 3 4 namespace cms\action; 5 6 use util\exception\ClientException; 7 8 /** 9 */ 10 abstract class BaseAction extends Action implements Method 11 { 12 13 public function __construct() 14 { 15 parent::__construct(); 16 } 17 18 19 /** 20 * @throws ClientException 21 */ 22 public function post() 23 { 24 throw new ClientException("Bad Method"); 25 } 26 27 /** 28 * @throws ClientException 29 */ 30 public function view() 31 { 32 throw new ClientException("Bad Method"); 33 } 34 }
Download modules/cms/action/BaseAction.class.php
History Fri, 18 Mar 2022 22:38:42 +0100 dankert Refactoring: Extracted the TemplateGenerator out of the PageGenerator. Sun, 14 Mar 2021 22:29:56 +0100 Jan Dankert Refactoring: Clearer access check. Wed, 18 Nov 2020 00:18:10 +0100 Jan Dankert Refactoring Part 2: Removing all unnecessary methods in the action base classes. Sun, 1 Nov 2020 22:31:13 +0100 Jan Dankert Fix: Method 'availableView' was missing. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.