Skip to content

Commit

Permalink
fix: Template field classes
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Jul 5, 2024
1 parent 0211d82 commit 58c341b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions composer/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
'OCA\\Richdocuments\\Settings\\Section' => $baseDir . '/../lib/Settings/Section.php',
'OCA\\Richdocuments\\TemplateManager' => $baseDir . '/../lib/TemplateManager.php',
'OCA\\Richdocuments\\Template\\CollaboraTemplateProvider' => $baseDir . '/../lib/Template/CollaboraTemplateProvider.php',
'OCA\\Richdocuments\\Template\\Field' => $baseDir . '/../lib/Template/Field.php',
'OCA\\Richdocuments\\Template\\FieldType' => $baseDir . '/../lib/Template/FieldType.php',
'OCA\\Richdocuments\\TokenManager' => $baseDir . '/../lib/TokenManager.php',
'OCA\\Richdocuments\\UploadException' => $baseDir . '/../lib/UploadException.php',
'OCA\\Richdocuments\\WOPI\\Parser' => $baseDir . '/../lib/WOPI/Parser.php',
Expand Down
2 changes: 2 additions & 0 deletions composer/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class ComposerStaticInitRichdocuments
'OCA\\Richdocuments\\Settings\\Section' => __DIR__ . '/..' . '/../lib/Settings/Section.php',
'OCA\\Richdocuments\\TemplateManager' => __DIR__ . '/..' . '/../lib/TemplateManager.php',
'OCA\\Richdocuments\\Template\\CollaboraTemplateProvider' => __DIR__ . '/..' . '/../lib/Template/CollaboraTemplateProvider.php',
'OCA\\Richdocuments\\Template\\Field' => __DIR__ . '/..' . '/../lib/Template/Field.php',
'OCA\\Richdocuments\\Template\\FieldType' => __DIR__ . '/..' . '/../lib/Template/FieldType.php',
'OCA\\Richdocuments\\TokenManager' => __DIR__ . '/..' . '/../lib/TokenManager.php',
'OCA\\Richdocuments\\UploadException' => __DIR__ . '/..' . '/../lib/UploadException.php',
'OCA\\Richdocuments\\WOPI\\Parser' => __DIR__ . '/..' . '/../lib/WOPI/Parser.php',
Expand Down
16 changes: 16 additions & 0 deletions lib/Template/Field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Richdocuments\Template;

class Field {
public FieldType $type;

public function __construct(FieldType $type) {
$this->type = $type;
}
}
12 changes: 12 additions & 0 deletions lib/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 58c341b

Please sign in to comment.