File modules/cms/api/Template.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 3 namespace cms\api; 4 5 6 /** 7 * Template. 8 */ 9 class Template { 10 11 public function __construct( 12 /** 13 * The ID of the template. 14 */ 15 public int $id, 16 17 /** 18 * elements of the template. 19 * @var array 20 */ 21 #[ArrayOf(Element::class)] 22 public array $elements, 23 24 /** 25 * templatemodels of the template. 26 * @var array 27 */ 28 #[ArrayOf(TemplateModel::class)] 29 public array $templateModels, 30 31 ) 32 { 33 } 34 35 }
Downloadmodules/cms/api/Template.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. Tue, 13 Oct 2026 22:52:59 +0200 Jan Dankert New: The UI is now able to send hierarchical form data and the server is converting it into an object. This is a very nice feature, because this enables a better OpenAPI interface. Tue, 13 Oct 2026 00:25:36 +0200 Jan Dankert New: Using Objects as return value in Action methods. With this change the creation of OpenAPI is much easier. This is a POC, the other methods follow from time to time.