@@ -56,6 +56,9 @@ discard block |
||
56 | 56 | ]; |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param string $type |
|
61 | + */ |
|
59 | 62 | protected function formatSections($sections, $currentSection, $type, $currentType) { |
60 | 63 | $templateParameters = []; |
61 | 64 | /** @var \OCP\Settings\ISection[] $prioritizedSections */ |
@@ -89,6 +92,9 @@ discard block |
||
89 | 92 | return $templateParameters; |
90 | 93 | } |
91 | 94 | |
95 | + /** |
|
96 | + * @param string $currentSections |
|
97 | + */ |
|
92 | 98 | protected function formatPersonalSections($currentType, $currentSections) { |
93 | 99 | $sections = $this->settingsManager->getPersonalSections(); |
94 | 100 | $templateParameters = $this->formatSections($sections, $currentSections, 'personal', $currentType); |
@@ -96,6 +102,9 @@ discard block |
||
96 | 102 | return $templateParameters; |
97 | 103 | } |
98 | 104 | |
105 | + /** |
|
106 | + * @param string $currentSections |
|
107 | + */ |
|
99 | 108 | protected function formatAdminSections($currentType, $currentSections) { |
100 | 109 | $sections = $this->settingsManager->getAdminSections(); |
101 | 110 | $templateParameters = $this->formatSections($sections, $currentSections, 'admin', $currentType); |
@@ -119,6 +128,10 @@ discard block |
||
119 | 128 | return ['content' => $html]; |
120 | 129 | } |
121 | 130 | |
131 | + /** |
|
132 | + * @param string $type |
|
133 | + * @param string $section |
|
134 | + */ |
|
122 | 135 | private function getIndexResponse($type, $section) { |
123 | 136 | $this->navigationManager->setActiveEntry('settings'); |
124 | 137 | $templateParams = []; |