| @@ 239-245 (lines=7) @@ | ||
| 236 | } |
|
| 237 | } |
|
| 238 | ||
| 239 | private function addSection(ISection $section, $table) { |
|
| 240 | $this->mapper->add($table, [ |
|
| 241 | 'id' => $section->getID(), |
|
| 242 | 'class' => get_class($section), |
|
| 243 | 'priority' => $section->getPriority(), |
|
| 244 | ]); |
|
| 245 | } |
|
| 246 | ||
| 247 | private function addSettings(ISettings $settings, $table) { |
|
| 248 | $this->mapper->add($table, [ |
|
| @@ 267-277 (lines=11) @@ | ||
| 264 | ); |
|
| 265 | } |
|
| 266 | ||
| 267 | private function updateSection(ISection $section, $table) { |
|
| 268 | $this->mapper->update( |
|
| 269 | $table, |
|
| 270 | 'class', |
|
| 271 | get_class($section), |
|
| 272 | [ |
|
| 273 | 'id' => $section->getID(), |
|
| 274 | 'priority' => $section->getPriority(), |
|
| 275 | ] |
|
| 276 | ); |
|
| 277 | } |
|
| 278 | ||
| 279 | /** |
|
| 280 | * @param string $className |
|