-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Expand file tree
/
Copy pathConfigLexicon.php
More file actions
89 lines (82 loc) · 2.37 KB
/
Copy pathConfigLexicon.php
File metadata and controls
89 lines (82 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files;
use OCP\Config\Lexicon\Entry;
use OCP\Config\Lexicon\ILexicon;
use OCP\Config\Lexicon\Strictness;
use OCP\Config\ValueType;
/**
* Config Lexicon for files.
*
* Please Add & Manage your Config Keys in that file and keep the Lexicon up to date!
*
* {@see ILexicon}
*/
class ConfigLexicon implements ILexicon {
public const OVERWRITES_HOME_FOLDERS = 'overwrites_home_folders';
public const RECENT_LIMIT = 'recent_limit';
public const GROUP_RECENT_FILES = 'group_recent_files';
public const RECENT_FILES_GROUP_MIME_TYPES = 'recent_files_group_mime_types';
public const RECENT_FILES_GROUP_TIMESPAN_MINUTES = 'recent_files_group_timespan_minutes';
public const LOCAL_CLIENT_INTEGRATION = 'local_client_integration';
#[\Override]
public function getStrictness(): Strictness {
return Strictness::IGNORE;
}
#[\Override]
public function getAppConfigs(): array {
return [
new Entry(
self::OVERWRITES_HOME_FOLDERS,
ValueType::ARRAY,
defaultRaw: [],
definition: 'List of applications overwriting home folders',
lazy: false,
note: 'It will be populated with app IDs of mount providers that overwrite home folders. Currently, only files_external and groupfolders.',
),
new Entry(
self::RECENT_LIMIT,
ValueType::INT,
defaultRaw: 100,
definition: 'Maximum number of files to display on recent files view',
lazy: false,
),
new Entry(
self::GROUP_RECENT_FILES,
ValueType::BOOL,
defaultRaw: false,
definition: 'Whether to group recent files by MIME type or not',
lazy: false,
),
new Entry(
self::RECENT_FILES_GROUP_MIME_TYPES,
ValueType::ARRAY,
defaultRaw: [],
definition: 'Which MIME types to group in the recent files list',
lazy: false,
),
new Entry(
self::RECENT_FILES_GROUP_TIMESPAN_MINUTES,
ValueType::INT,
defaultRaw: 2,
definition: 'Time window in minutes to group files uploaded close together in the recent files list',
lazy: false,
),
new Entry(
self::LOCAL_CLIENT_INTEGRATION,
ValueType::BOOL,
defaultRaw: true,
definition: 'Whether to enable local client integration',
lazy: false,
),
];
}
#[\Override]
public function getUserConfigs(): array {
return [];
}
}