]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Add Field and FieldType back to server API
authorElizabeth Danzberger <lizzy7128@tutanota.de>
Wed, 10 Jul 2024 20:20:44 +0000 (16:20 -0400)
committerJulius Härtl <jus@bitgrid.net>
Thu, 25 Jul 2024 09:11:39 +0000 (11:11 +0200)
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
lib/public/Files/Template/Field.php [new file with mode: 0644]
lib/public/Files/Template/FieldType.php [new file with mode: 0644]

diff --git a/lib/public/Files/Template/Field.php b/lib/public/Files/Template/Field.php
new file mode 100644 (file)
index 0000000..143ea95
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCA\Richdocuments\Template;
+
+class Field {
+       private FieldType $type;
+       private int $index;
+       private string $content;
+
+       public function __construct(FieldType $type) {
+               $this->type = $type;
+       }
+}
diff --git a/lib/public/Files/Template/FieldType.php b/lib/public/Files/Template/FieldType.php
new file mode 100644 (file)
index 0000000..e5e0c17
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCA\Richdocuments\Template;
+
+enum FieldType {
+       case PlainText;
+}