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 / Framework / CloningProcess / CloningDto.php
wp-staging / Framework / CloningProcess Last commit date
Data 1 day ago Database 1 day ago CloningDto.php 1 day ago ExcludedPlugins.php 1 day ago
CloningDto.php
175 lines
1 <?php
2
3 namespace WPStaging\Framework\CloningProcess;
4
5 use WPStaging\Backend\Modules\Jobs\Job;
6
7 class CloningDto
8 {
9
10
11
12 protected $job;
13
14
15
16
17 protected $stagingDb;
18
19
20
21
22 protected $productionDb;
23
24
25
26
27 protected $isExternal;
28
29
30
31
32 protected $isMultisite;
33
34
35
36
37 protected $externalDatabaseHost;
38
39
40
41
42 protected $externalDatabaseUser;
43
44
45
46
47 protected $externalDatabasePassword;
48
49
50
51
52 protected $externalDatabaseName;
53
54
55
56
57 protected $externalDatabaseSsl;
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 public function __construct(Job $job, \wpdb $stagingDb, \wpdb $productionDb, $isExternal, $isMultisite, $externalDatabaseHost, $externalDatabaseUser, $externalDatabasePassword, $externalDatabaseName, $externalDatabaseSsl = false)
73 {
74 $this->job = $job;
75 $this->stagingDb = $stagingDb;
76 $this->productionDb = $productionDb;
77 $this->isExternal = $isExternal;
78 $this->isMultisite = $isMultisite;
79 $this->externalDatabaseHost = $externalDatabaseHost;
80 $this->externalDatabaseUser = $externalDatabaseUser;
81 $this->externalDatabasePassword = $externalDatabasePassword;
82 $this->externalDatabaseName = $externalDatabaseName;
83 $this->externalDatabaseSsl = $externalDatabaseSsl;
84 }
85
86
87
88
89 public function getStagingDb()
90 {
91 return $this->stagingDb;
92 }
93
94
95
96
97 public function getProductionDb()
98 {
99 return $this->productionDb;
100 }
101
102
103
104
105 public function getJob()
106 {
107 return $this->job;
108 }
109
110
111
112
113
114 public function setJob($job)
115 {
116 $this->job = $job;
117 }
118
119
120
121
122 public function isExternal()
123 {
124 return $this->isExternal;
125 }
126
127
128
129
130 public function isMultisite()
131 {
132 return $this->isMultisite;
133 }
134
135
136
137
138 public function getExternalDatabaseHost()
139 {
140 return $this->externalDatabaseHost;
141 }
142
143
144
145
146 public function getExternalDatabaseUser()
147 {
148 return $this->externalDatabaseUser;
149 }
150
151
152
153
154 public function getExternalDatabasePassword()
155 {
156 return $this->externalDatabasePassword;
157 }
158
159
160
161
162 public function getExternalDatabaseName()
163 {
164 return $this->externalDatabaseName;
165 }
166
167
168
169
170 public function getExternalDatabaseSsl()
171 {
172 return $this->externalDatabaseSsl;
173 }
174 }
175