aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorElizabeth Danzberger <lizzy7128@tutanota.de>2024-07-10 16:20:44 -0400
committerJulius Härtl <jus@bitgrid.net>2024-07-25 11:11:39 +0200
commitdbfe70e4f642a5571c095b685ed3fad0ec1931a1 (patch)
tree9fdc963d4cfb451a3b51c6e3d647550642e8c7c9 /lib/public/Files
parentf01dd3872443068aae27579c78636d813da52994 (diff)
downloadnextcloud-server-dbfe70e4f642a5571c095b685ed3fad0ec1931a1.tar.gz
nextcloud-server-dbfe70e4f642a5571c095b685ed3fad0ec1931a1.zip
fix: Add Field and FieldType back to server API
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Template/Field.php18
-rw-r--r--lib/public/Files/Template/FieldType.php12
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/Files/Template/Field.php b/lib/public/Files/Template/Field.php
new file mode 100644
index 00000000000..143ea95c0ef
--- /dev/null
+++ b/lib/public/Files/Template/Field.php
@@ -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
index 00000000000..e5e0c176d99
--- /dev/null
+++ b/lib/public/Files/Template/FieldType.php
@@ -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;
+}