| @@ 232-238 (lines=7) @@ | ||
| 229 | } |
|
| 230 | } |
|
| 231 | ||
| 232 | private function addSection(ISection $section, $table) { |
|
| 233 | $this->mapper->add($table, [ |
|
| 234 | 'id' => $section->getID(), |
|
| 235 | 'class' => get_class($section), |
|
| 236 | 'priority' => $section->getPriority(), |
|
| 237 | ]); |
|
| 238 | } |
|
| 239 | ||
| 240 | private function addSettings(ISettings $settings, $table) { |
|
| 241 | $this->mapper->add($table, [ |
|
| @@ 260-270 (lines=11) @@ | ||
| 257 | ); |
|
| 258 | } |
|
| 259 | ||
| 260 | private function updateSection(ISection $section, $table) { |
|
| 261 | $this->mapper->update( |
|
| 262 | $table, |
|
| 263 | 'class', |
|
| 264 | get_class($section), |
|
| 265 | [ |
|
| 266 | 'id' => $section->getID(), |
|
| 267 | 'priority' => $section->getPriority(), |
|
| 268 | ] |
|
| 269 | ); |
|
| 270 | } |
|
| 271 | ||
| 272 | /** |
|
| 273 | * @param string $className |
|