Skip to content

Commit

Permalink
fix: Add Field and FieldType back to server API
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Jul 10, 2024
1 parent 5b3fb57 commit d1947c3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/public/Files/Template/Field.php
Original file line number Diff line number Diff line change
@@ -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;
}
}
12 changes: 12 additions & 0 deletions lib/public/Files/Template/FieldType.php
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit d1947c3

Please sign in to comment.