| @@ 123-131 (lines=9) @@ | ||
| 120 | * |
|
| 121 | * @param array $conf |
|
| 122 | */ |
|
| 123 | protected function setupSourceData(array $conf) |
|
| 124 | { |
|
| 125 | $this->databases = Util\Str::toList(Util\Arr::getValue($conf, 'databases', '')); |
|
| 126 | $this->collections = Util\Str::toList(Util\Arr::getValue($conf, 'collections', '')); |
|
| 127 | $this->excludeCollections = Util\Str::toList(Util\Arr::getValue($conf, 'excludeCollections', '')); |
|
| 128 | $this->excludeCollectionsWithPrefix = Util\Str::toList( |
|
| 129 | Util\Arr::getValue($conf, 'excludeCollectionsWithPrefix', '') |
|
| 130 | ); |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * Fetch credential settings. |
|
| @@ 201-207 (lines=7) @@ | ||
| 198 | * |
|
| 199 | * @param array $conf |
|
| 200 | */ |
|
| 201 | protected function setupSourceData(array $conf) |
|
| 202 | { |
|
| 203 | $this->tables = Util\Str::toList(Util\Arr::getValue($conf, 'tables', '')); |
|
| 204 | $this->databases = Util\Str::toList(Util\Arr::getValue($conf, 'databases', '')); |
|
| 205 | $this->ignoreTables = Util\Str::toList(Util\Arr::getValue($conf, 'ignoreTables', '')); |
|
| 206 | $this->structureOnly = Util\Str::toList(Util\Arr::getValue($conf, 'structureOnly', '')); |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * Execute the backup. |
|