123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <?php
- namespace OCP\Settings;
- use OCP\IUser;
- interface IManager {
-
- public const KEY_ADMIN_SETTINGS = 'admin';
-
- public const KEY_ADMIN_SECTION = 'admin-section';
-
- public const KEY_PERSONAL_SETTINGS = 'personal';
-
- public const KEY_PERSONAL_SECTION = 'personal-section';
-
- public const SETTINGS_ADMIN = 'admin';
-
- public const SETTINGS_PERSONAL = 'personal';
-
- public function registerSection(string $type, string $section);
-
- public function registerSetting(string $type, string $setting);
-
- public function getAdminSections(): array;
-
- public function getPersonalSections(): array;
-
- public function getAdminSettings(string $section, bool $subAdminOnly = false): array;
-
- public function getAllowedAdminSettings(string $section, IUser $user): array;
-
- public function getAllAllowedAdminSettings(IUser $user): array;
-
- public function getPersonalSettings(string $section): array;
-
- public function getSection(string $type, string $sectionId): ?IIconSection;
- }
|