| @@ 247-253 (lines=7) @@ | ||
| 244 | ]); |
|
| 245 | } |
|
| 246 | ||
| 247 | private function addSettings(ISettings $settings, $table) { |
|
| 248 | $this->mapper->add($table, [ |
|
| 249 | 'class' => get_class($settings), |
|
| 250 | 'section' => $settings->getSection(), |
|
| 251 | 'priority' => $settings->getPriority(), |
|
| 252 | ]); |
|
| 253 | } |
|
| 254 | ||
| 255 | private function updateSettings(ISettings $settings, $table) { |
|
| 256 | $this->mapper->update( |
|
| @@ 255-265 (lines=11) @@ | ||
| 252 | ]); |
|
| 253 | } |
|
| 254 | ||
| 255 | private function updateSettings(ISettings $settings, $table) { |
|
| 256 | $this->mapper->update( |
|
| 257 | $table, |
|
| 258 | 'class', |
|
| 259 | get_class($settings), |
|
| 260 | [ |
|
| 261 | 'section' => $settings->getSection(), |
|
| 262 | 'priority' => $settings->getPriority(), |
|
| 263 | ] |
|
| 264 | ); |
|
| 265 | } |
|
| 266 | ||
| 267 | private function updateSection(ISection $section, $table) { |
|
| 268 | $this->mapper->update( |
|