| @@ 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. |
|
| @@ 183-189 (lines=7) @@ | ||
| 180 | * |
|
| 181 | * @param array $conf |
|
| 182 | */ |
|
| 183 | protected function setupSourceData(array $conf) |
|
| 184 | { |
|
| 185 | $this->tables = Util\Str::toList(Util\Arr::getValue($conf, 'tables', '')); |
|
| 186 | $this->databases = Util\Str::toList(Util\Arr::getValue($conf, 'databases', '')); |
|
| 187 | $this->ignoreTables = Util\Str::toList(Util\Arr::getValue($conf, 'ignoreTables', '')); |
|
| 188 | $this->structureOnly = Util\Str::toList(Util\Arr::getValue($conf, 'structureOnly', '')); |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * Execute the backup. |
|