PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.11.0
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.11.0
4.11.0 4.10.0 4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Staging / Traits / WithAdvanceStagingOptions.php
wp-staging / Staging / Traits Last commit date
StagingDatabaseDtoTrait.php 1 day ago StagingNetworkDtoTrait.php 1 day ago StagingOperationDtoTrait.php 1 day ago StagingSiteGetterTrait.php 1 day ago WithAdvanceStagingOptions.php 1 day ago WithDataAdjustmentTasks.php 11 months ago WithStagingDatabase.php 1 day ago WithStagingEnginePreference.php 1 day ago WithStagingRequirementLogs.php 1 day ago WithStagingSiteDto.php 1 day ago
WithAdvanceStagingOptions.php
400 lines
1 <?php
2
3 namespace WPStaging\Staging\Traits;
4
5 trait WithAdvanceStagingOptions
6 {
7
8 private $useNewAdminAccount = false;
9
10
11 private $adminEmail = '';
12
13
14 private $adminPassword = '';
15
16
17 private $useCustomDatabase = false;
18
19
20 private $databaseServer = '';
21
22
23 private $databaseName = '';
24
25
26 private $databaseUser = '';
27
28
29 private $databasePassword = '';
30
31
32 private $databasePrefix = '';
33
34
35 private $databaseSsl = false;
36
37
38 private $customUrl = '';
39
40
41 private $customPath = '';
42
43
44 private $isEmailsAllowed = true;
45
46
47 private $isUploadsSymlinked = false;
48
49
50 private $isCronEnabled = true;
51
52
53 private $isWooSchedulerEnabled = true;
54
55
56 private $isEmailsReminderEnabled = false;
57
58
59 private $isAutoUpdatePlugins = false;
60
61
62 private $tmpExcludedFullPaths = [];
63
64
65 private $tmpExcludedGoDaddyFiles = [];
66
67
68
69
70
71 public function setUseNewAdminAccount(bool $useNewAdminAccount)
72 {
73 $this->useNewAdminAccount = $useNewAdminAccount;
74 }
75
76
77
78
79 public function getUseNewAdminAccount(): bool
80 {
81 return $this->useNewAdminAccount;
82 }
83
84
85
86
87
88 public function setAdminEmail(string $adminEmail)
89 {
90 $this->adminEmail = $adminEmail;
91 }
92
93
94
95
96 public function getAdminEmail(): string
97 {
98 return $this->adminEmail;
99 }
100
101
102
103
104
105 public function setAdminPassword(string $adminPassword)
106 {
107 $this->adminPassword = $adminPassword;
108 }
109
110
111
112
113 public function getAdminPassword(): string
114 {
115 return $this->adminPassword;
116 }
117
118
119
120
121
122 public function setUseCustomDatabase(bool $useCustomDatabase)
123 {
124 $this->useCustomDatabase = $useCustomDatabase;
125 }
126
127
128
129
130 public function getUseCustomDatabase(): bool
131 {
132 return $this->useCustomDatabase;
133 }
134
135
136
137
138
139 public function setDatabaseServer(string $databaseServer)
140 {
141 $this->databaseServer = $databaseServer;
142 }
143
144
145
146
147 public function getDatabaseServer(): string
148 {
149 return $this->databaseServer;
150 }
151
152
153
154
155
156 public function setDatabaseName(string $databaseName)
157 {
158 $this->databaseName = $databaseName;
159 }
160
161
162
163
164 public function getDatabaseName(): string
165 {
166 return $this->databaseName;
167 }
168
169
170
171
172
173 public function setDatabaseUser(string $databaseUser)
174 {
175 $this->databaseUser = $databaseUser;
176 }
177
178
179
180
181 public function getDatabaseUser(): string
182 {
183 return $this->databaseUser;
184 }
185
186
187
188
189
190 public function setDatabasePassword(string $databasePassword)
191 {
192 $this->databasePassword = $databasePassword;
193 }
194
195
196
197
198 public function getDatabasePassword(): string
199 {
200 return $this->databasePassword;
201 }
202
203
204
205
206
207 public function setDatabasePrefix(string $databasePrefix)
208 {
209 $this->databasePrefix = $databasePrefix;
210 }
211
212
213
214
215 public function getDatabasePrefix(): string
216 {
217 return $this->databasePrefix;
218 }
219
220
221
222
223
224 public function setDatabaseSsl(bool $databaseSsl)
225 {
226 $this->databaseSsl = $databaseSsl;
227 }
228
229
230
231
232 public function getDatabaseSsl(): bool
233 {
234 return $this->databaseSsl;
235 }
236
237
238
239
240
241 public function setCustomUrl(string $customUrl)
242 {
243 $this->customUrl = $customUrl;
244 }
245
246
247
248
249 public function getCustomUrl(): string
250 {
251 return $this->customUrl;
252 }
253
254
255
256
257
258 public function setCustomPath(string $customPath)
259 {
260 $this->customPath = $customPath;
261 }
262
263
264
265
266 public function getCustomPath(): string
267 {
268 return $this->customPath;
269 }
270
271
272
273
274
275 public function setIsEmailsAllowed(bool $isEmailsAllowed)
276 {
277 $this->isEmailsAllowed = $isEmailsAllowed;
278 }
279
280
281
282
283 public function getIsEmailsAllowed(): bool
284 {
285 return $this->isEmailsAllowed;
286 }
287
288 public function setIsUploadsSymlinked(bool $isUploadsSymlinked)
289 {
290 $this->isUploadsSymlinked = $isUploadsSymlinked;
291 }
292
293 public function getIsUploadsSymlinked(): bool
294 {
295 return $this->isUploadsSymlinked;
296 }
297
298
299
300
301
302 public function setIsCronEnabled(bool $isCronEnabled)
303 {
304 $this->isCronEnabled = $isCronEnabled;
305 }
306
307
308
309
310 public function getIsCronEnabled(): bool
311 {
312 return $this->isCronEnabled;
313 }
314
315
316
317
318
319 public function setIsWooSchedulerEnabled(bool $isWooSchedulerEnabled)
320 {
321 $this->isWooSchedulerEnabled = $isWooSchedulerEnabled;
322 }
323
324
325
326
327 public function getIsWooSchedulerEnabled(): bool
328 {
329 return $this->isWooSchedulerEnabled;
330 }
331
332
333
334
335
336 public function setIsEmailsReminderEnabled(bool $isEmailsReminderEnabled)
337 {
338 $this->isEmailsReminderEnabled = $isEmailsReminderEnabled;
339 }
340
341
342
343
344 public function getIsEmailsReminderEnabled(): bool
345 {
346 return $this->isEmailsReminderEnabled;
347 }
348
349
350
351
352
353 public function setIsAutoUpdatePlugins(bool $isAutoUpdatePlugins)
354 {
355 $this->isAutoUpdatePlugins = $isAutoUpdatePlugins;
356 }
357
358
359
360
361 public function getIsAutoUpdatePlugins(): bool
362 {
363 return $this->isAutoUpdatePlugins;
364 }
365
366
367
368
369
370 public function setTmpExcludedFullPaths(array $tmpExcludedFullPaths)
371 {
372 $this->tmpExcludedFullPaths = $tmpExcludedFullPaths;
373 }
374
375
376
377
378 public function getTmpExcludedFullPaths(): array
379 {
380 return $this->tmpExcludedFullPaths;
381 }
382
383
384
385
386
387 public function setTmpExcludedGoDaddyFiles(array $tmpExcludedGoDaddyFiles)
388 {
389 $this->tmpExcludedGoDaddyFiles = $tmpExcludedGoDaddyFiles;
390 }
391
392
393
394
395 public function getTmpExcludedGoDaddyFiles(): array
396 {
397 return $this->tmpExcludedGoDaddyFiles;
398 }
399 }
400