| @@ 166-174 (lines=9) @@ | ||
| 163 | * @param string $sectionID |
|
| 164 | * @return array of ISection |
|
| 165 | */ |
|
| 166 | public function getPersonalPanels($sectionID) { |
|
| 167 | // Trigger a load of all personal panels to discover sections |
|
| 168 | $this->loadPanels('personal'); |
|
| 169 | if (isset($this->panels['personal'][$sectionID])) { |
|
| 170 | return $this->panels['personal'][$sectionID]; |
|
| 171 | } else { |
|
| 172 | return []; |
|
| 173 | } |
|
| 174 | } |
|
| 175 | ||
| 176 | /** |
|
| 177 | * Returns ISettings for the admin settings in the given section |
|
| @@ 181-189 (lines=9) @@ | ||
| 178 | * @param string $sectionID |
|
| 179 | * @return array of ISection |
|
| 180 | */ |
|
| 181 | public function getAdminPanels($sectionID) { |
|
| 182 | // Trigger a load of all admin panels to discover sections |
|
| 183 | $this->loadPanels('admin'); |
|
| 184 | if (isset($this->panels['admin'][$sectionID])) { |
|
| 185 | return $this->panels['admin'][$sectionID]; |
|
| 186 | } else { |
|
| 187 | return []; |
|
| 188 | } |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * Returns the default set of ISections used in core |
|