File modules/cms/api/ArrayOf.class.php
Last commit: Tue Oct 13 22:52:59 2026 +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.
1 <?php 2 3 namespace cms\api; 4 5 use Attribute; 6 7 #[Attribute(Attribute::TARGET_PARAMETER)] // Darf nur an Eigenschaften genutzt werden 8 class ArrayOf 9 { 10 // Im Konstruktor definierst du, welche Daten das Attribut aufnehmen soll 11 public function __construct( 12 public string $className 13 ) 14 { 15 } 16 }
Downloadmodules/cms/api/ArrayOf.class.php
History 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:49 +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.