summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-05-16 01:40:36 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-23 12:36:37 +0200
commitb68fdb473d03878911b0874a75564c8a7f08d03d (patch)
treef403c34abe58347bd4f3aa6c926c077d6088eba7 /lib/private
parent560ab2e91158fa57b12cb5f382dfd79cbbc1ffc4 (diff)
downloadnextcloud-server-b68fdb473d03878911b0874a75564c8a7f08d03d.tar.gz
nextcloud-server-b68fdb473d03878911b0874a75564c8a7f08d03d.zip
Extend interfaces
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Settings/Manager.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index d40dfd1e417..a307261c83f 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -338,6 +338,24 @@ class Manager implements IManager {
}
/**
+ * @param string $section
+ * @return ISection[]
+ */
+ private function getBuiltInPersonalSettings($section) {
+ $forms = [];
+ try {
+ if ($section === 'personal-info') {
+ /** @var ISettings $form */
+ $form = new Personal\PersonalInfo();
+ $forms[$form->getPriority()] = [$form];
+ }
+ } catch (QueryException $e) {
+ // skip
+ }
+ return $forms;
+ }
+
+ /**
* @inheritdoc
*/
public function getAdminSettings($section) {
@@ -358,4 +376,22 @@ class Manager implements IManager {
ksort($settings);
return $settings;
}
+
+ /**
+ * @inheritdoc
+ */
+ public function getPersonalSections() {
+ $sections = [
+ 0 => [new Section('personal-info', $this->l->t('Personal info'), 0, $this->url->imagePath('core', 'actions/info.svg'))],
+ ];
+ return $sections;
+ }
+
+ /**
+ * @inheritdoc
+ */
+ public function getPersonalSettings($section) {
+ $settings = $this->getBuiltInPersonalSettings($section);
+ return $settings;
+ }
}