@@ -1,412 +1,412 @@ |
||
1 | 1 | <?php return array( |
2 | - 'root' => array( |
|
3 | - 'pretty_version' => 'dev-master', |
|
4 | - 'version' => 'dev-master', |
|
5 | - 'type' => 'wordpress-plugin', |
|
6 | - 'install_path' => __DIR__ . '/../../', |
|
7 | - 'aliases' => array(), |
|
8 | - 'reference' => '7b922196422c03d8ac304c7b62fbe08a9b23fe29', |
|
9 | - 'name' => 'eventespresso/event-espresso-core', |
|
10 | - 'dev' => true, |
|
11 | - ), |
|
12 | - 'versions' => array( |
|
13 | - 'composer/installers' => array( |
|
14 | - 'pretty_version' => 'v2.1.0', |
|
15 | - 'version' => '2.1.0.0', |
|
16 | - 'type' => 'composer-plugin', |
|
17 | - 'install_path' => __DIR__ . '/./installers', |
|
18 | - 'aliases' => array(), |
|
19 | - 'reference' => '75e5ef05436c90ac565a48176cc7465991908352', |
|
20 | - 'dev_requirement' => false, |
|
21 | - ), |
|
22 | - 'doctrine/instantiator' => array( |
|
23 | - 'pretty_version' => '1.4.1', |
|
24 | - 'version' => '1.4.1.0', |
|
25 | - 'type' => 'library', |
|
26 | - 'install_path' => __DIR__ . '/../doctrine/instantiator', |
|
27 | - 'aliases' => array(), |
|
28 | - 'reference' => '10dcfce151b967d20fde1b34ae6640712c3891bc', |
|
29 | - 'dev_requirement' => true, |
|
30 | - ), |
|
31 | - 'eventespresso/ee-coding-standards' => array( |
|
32 | - 'pretty_version' => 'dev-master', |
|
33 | - 'version' => 'dev-master', |
|
34 | - 'type' => 'phpcodesniffer-standard', |
|
35 | - 'install_path' => __DIR__ . '/../eventespresso/ee-coding-standards', |
|
36 | - 'aliases' => array( |
|
37 | - 0 => '9999999-dev', |
|
38 | - ), |
|
39 | - 'reference' => '4bbdbb4ed08aeb7ac719b19d8adbd0974c8b63ae', |
|
40 | - 'dev_requirement' => true, |
|
41 | - ), |
|
42 | - 'eventespresso/event-espresso-core' => array( |
|
43 | - 'pretty_version' => 'dev-master', |
|
44 | - 'version' => 'dev-master', |
|
45 | - 'type' => 'wordpress-plugin', |
|
46 | - 'install_path' => __DIR__ . '/../../', |
|
47 | - 'aliases' => array(), |
|
48 | - 'reference' => '7b922196422c03d8ac304c7b62fbe08a9b23fe29', |
|
49 | - 'dev_requirement' => false, |
|
50 | - ), |
|
51 | - 'myclabs/deep-copy' => array( |
|
52 | - 'pretty_version' => '1.11.0', |
|
53 | - 'version' => '1.11.0.0', |
|
54 | - 'type' => 'library', |
|
55 | - 'install_path' => __DIR__ . '/../myclabs/deep-copy', |
|
56 | - 'aliases' => array(), |
|
57 | - 'reference' => '14daed4296fae74d9e3201d2c4925d1acb7aa614', |
|
58 | - 'dev_requirement' => true, |
|
59 | - ), |
|
60 | - 'nikic/php-parser' => array( |
|
61 | - 'pretty_version' => 'v4.13.2', |
|
62 | - 'version' => '4.13.2.0', |
|
63 | - 'type' => 'library', |
|
64 | - 'install_path' => __DIR__ . '/../nikic/php-parser', |
|
65 | - 'aliases' => array(), |
|
66 | - 'reference' => '210577fe3cf7badcc5814d99455df46564f3c077', |
|
67 | - 'dev_requirement' => true, |
|
68 | - ), |
|
69 | - 'phar-io/manifest' => array( |
|
70 | - 'pretty_version' => '2.0.3', |
|
71 | - 'version' => '2.0.3.0', |
|
72 | - 'type' => 'library', |
|
73 | - 'install_path' => __DIR__ . '/../phar-io/manifest', |
|
74 | - 'aliases' => array(), |
|
75 | - 'reference' => '97803eca37d319dfa7826cc2437fc020857acb53', |
|
76 | - 'dev_requirement' => true, |
|
77 | - ), |
|
78 | - 'phar-io/version' => array( |
|
79 | - 'pretty_version' => '3.2.1', |
|
80 | - 'version' => '3.2.1.0', |
|
81 | - 'type' => 'library', |
|
82 | - 'install_path' => __DIR__ . '/../phar-io/version', |
|
83 | - 'aliases' => array(), |
|
84 | - 'reference' => '4f7fd7836c6f332bb2933569e566a0d6c4cbed74', |
|
85 | - 'dev_requirement' => true, |
|
86 | - ), |
|
87 | - 'phpcompatibility/php-compatibility' => array( |
|
88 | - 'pretty_version' => '9.3.5', |
|
89 | - 'version' => '9.3.5.0', |
|
90 | - 'type' => 'phpcodesniffer-standard', |
|
91 | - 'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility', |
|
92 | - 'aliases' => array(), |
|
93 | - 'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243', |
|
94 | - 'dev_requirement' => true, |
|
95 | - ), |
|
96 | - 'phpcompatibility/phpcompatibility-paragonie' => array( |
|
97 | - 'pretty_version' => '1.3.1', |
|
98 | - 'version' => '1.3.1.0', |
|
99 | - 'type' => 'phpcodesniffer-standard', |
|
100 | - 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie', |
|
101 | - 'aliases' => array(), |
|
102 | - 'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43', |
|
103 | - 'dev_requirement' => true, |
|
104 | - ), |
|
105 | - 'phpcompatibility/phpcompatibility-wp' => array( |
|
106 | - 'pretty_version' => '2.1.3', |
|
107 | - 'version' => '2.1.3.0', |
|
108 | - 'type' => 'phpcodesniffer-standard', |
|
109 | - 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp', |
|
110 | - 'aliases' => array(), |
|
111 | - 'reference' => 'd55de55f88697b9cdb94bccf04f14eb3b11cf308', |
|
112 | - 'dev_requirement' => true, |
|
113 | - ), |
|
114 | - 'phpdocumentor/reflection-common' => array( |
|
115 | - 'pretty_version' => '2.2.0', |
|
116 | - 'version' => '2.2.0.0', |
|
117 | - 'type' => 'library', |
|
118 | - 'install_path' => __DIR__ . '/../phpdocumentor/reflection-common', |
|
119 | - 'aliases' => array(), |
|
120 | - 'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b', |
|
121 | - 'dev_requirement' => true, |
|
122 | - ), |
|
123 | - 'phpdocumentor/reflection-docblock' => array( |
|
124 | - 'pretty_version' => '5.3.0', |
|
125 | - 'version' => '5.3.0.0', |
|
126 | - 'type' => 'library', |
|
127 | - 'install_path' => __DIR__ . '/../phpdocumentor/reflection-docblock', |
|
128 | - 'aliases' => array(), |
|
129 | - 'reference' => '622548b623e81ca6d78b721c5e029f4ce664f170', |
|
130 | - 'dev_requirement' => true, |
|
131 | - ), |
|
132 | - 'phpdocumentor/type-resolver' => array( |
|
133 | - 'pretty_version' => '1.6.0', |
|
134 | - 'version' => '1.6.0.0', |
|
135 | - 'type' => 'library', |
|
136 | - 'install_path' => __DIR__ . '/../phpdocumentor/type-resolver', |
|
137 | - 'aliases' => array(), |
|
138 | - 'reference' => '93ebd0014cab80c4ea9f5e297ea48672f1b87706', |
|
139 | - 'dev_requirement' => true, |
|
140 | - ), |
|
141 | - 'phpspec/prophecy' => array( |
|
142 | - 'pretty_version' => 'v1.15.0', |
|
143 | - 'version' => '1.15.0.0', |
|
144 | - 'type' => 'library', |
|
145 | - 'install_path' => __DIR__ . '/../phpspec/prophecy', |
|
146 | - 'aliases' => array(), |
|
147 | - 'reference' => 'bbcd7380b0ebf3961ee21409db7b38bc31d69a13', |
|
148 | - 'dev_requirement' => true, |
|
149 | - ), |
|
150 | - 'phpunit/php-code-coverage' => array( |
|
151 | - 'pretty_version' => '9.2.15', |
|
152 | - 'version' => '9.2.15.0', |
|
153 | - 'type' => 'library', |
|
154 | - 'install_path' => __DIR__ . '/../phpunit/php-code-coverage', |
|
155 | - 'aliases' => array(), |
|
156 | - 'reference' => '2e9da11878c4202f97915c1cb4bb1ca318a63f5f', |
|
157 | - 'dev_requirement' => true, |
|
158 | - ), |
|
159 | - 'phpunit/php-file-iterator' => array( |
|
160 | - 'pretty_version' => '3.0.6', |
|
161 | - 'version' => '3.0.6.0', |
|
162 | - 'type' => 'library', |
|
163 | - 'install_path' => __DIR__ . '/../phpunit/php-file-iterator', |
|
164 | - 'aliases' => array(), |
|
165 | - 'reference' => 'cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf', |
|
166 | - 'dev_requirement' => true, |
|
167 | - ), |
|
168 | - 'phpunit/php-invoker' => array( |
|
169 | - 'pretty_version' => '3.1.1', |
|
170 | - 'version' => '3.1.1.0', |
|
171 | - 'type' => 'library', |
|
172 | - 'install_path' => __DIR__ . '/../phpunit/php-invoker', |
|
173 | - 'aliases' => array(), |
|
174 | - 'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67', |
|
175 | - 'dev_requirement' => true, |
|
176 | - ), |
|
177 | - 'phpunit/php-text-template' => array( |
|
178 | - 'pretty_version' => '2.0.4', |
|
179 | - 'version' => '2.0.4.0', |
|
180 | - 'type' => 'library', |
|
181 | - 'install_path' => __DIR__ . '/../phpunit/php-text-template', |
|
182 | - 'aliases' => array(), |
|
183 | - 'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28', |
|
184 | - 'dev_requirement' => true, |
|
185 | - ), |
|
186 | - 'phpunit/php-timer' => array( |
|
187 | - 'pretty_version' => '5.0.3', |
|
188 | - 'version' => '5.0.3.0', |
|
189 | - 'type' => 'library', |
|
190 | - 'install_path' => __DIR__ . '/../phpunit/php-timer', |
|
191 | - 'aliases' => array(), |
|
192 | - 'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2', |
|
193 | - 'dev_requirement' => true, |
|
194 | - ), |
|
195 | - 'phpunit/phpunit' => array( |
|
196 | - 'pretty_version' => '9.5.19', |
|
197 | - 'version' => '9.5.19.0', |
|
198 | - 'type' => 'library', |
|
199 | - 'install_path' => __DIR__ . '/../phpunit/phpunit', |
|
200 | - 'aliases' => array(), |
|
201 | - 'reference' => '35ea4b7f3acabb26f4bb640f8c30866c401da807', |
|
202 | - 'dev_requirement' => true, |
|
203 | - ), |
|
204 | - 'roave/security-advisories' => array( |
|
205 | - 'pretty_version' => 'dev-master', |
|
206 | - 'version' => 'dev-master', |
|
207 | - 'type' => 'metapackage', |
|
208 | - 'install_path' => NULL, |
|
209 | - 'aliases' => array(), |
|
210 | - 'reference' => 'a1696aadf99f7ff55d44c56e7ebf54eace85310c', |
|
211 | - 'dev_requirement' => true, |
|
212 | - ), |
|
213 | - 'sebastian/cli-parser' => array( |
|
214 | - 'pretty_version' => '1.0.1', |
|
215 | - 'version' => '1.0.1.0', |
|
216 | - 'type' => 'library', |
|
217 | - 'install_path' => __DIR__ . '/../sebastian/cli-parser', |
|
218 | - 'aliases' => array(), |
|
219 | - 'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2', |
|
220 | - 'dev_requirement' => true, |
|
221 | - ), |
|
222 | - 'sebastian/code-unit' => array( |
|
223 | - 'pretty_version' => '1.0.8', |
|
224 | - 'version' => '1.0.8.0', |
|
225 | - 'type' => 'library', |
|
226 | - 'install_path' => __DIR__ . '/../sebastian/code-unit', |
|
227 | - 'aliases' => array(), |
|
228 | - 'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120', |
|
229 | - 'dev_requirement' => true, |
|
230 | - ), |
|
231 | - 'sebastian/code-unit-reverse-lookup' => array( |
|
232 | - 'pretty_version' => '2.0.3', |
|
233 | - 'version' => '2.0.3.0', |
|
234 | - 'type' => 'library', |
|
235 | - 'install_path' => __DIR__ . '/../sebastian/code-unit-reverse-lookup', |
|
236 | - 'aliases' => array(), |
|
237 | - 'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5', |
|
238 | - 'dev_requirement' => true, |
|
239 | - ), |
|
240 | - 'sebastian/comparator' => array( |
|
241 | - 'pretty_version' => '4.0.6', |
|
242 | - 'version' => '4.0.6.0', |
|
243 | - 'type' => 'library', |
|
244 | - 'install_path' => __DIR__ . '/../sebastian/comparator', |
|
245 | - 'aliases' => array(), |
|
246 | - 'reference' => '55f4261989e546dc112258c7a75935a81a7ce382', |
|
247 | - 'dev_requirement' => true, |
|
248 | - ), |
|
249 | - 'sebastian/complexity' => array( |
|
250 | - 'pretty_version' => '2.0.2', |
|
251 | - 'version' => '2.0.2.0', |
|
252 | - 'type' => 'library', |
|
253 | - 'install_path' => __DIR__ . '/../sebastian/complexity', |
|
254 | - 'aliases' => array(), |
|
255 | - 'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88', |
|
256 | - 'dev_requirement' => true, |
|
257 | - ), |
|
258 | - 'sebastian/diff' => array( |
|
259 | - 'pretty_version' => '4.0.4', |
|
260 | - 'version' => '4.0.4.0', |
|
261 | - 'type' => 'library', |
|
262 | - 'install_path' => __DIR__ . '/../sebastian/diff', |
|
263 | - 'aliases' => array(), |
|
264 | - 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', |
|
265 | - 'dev_requirement' => true, |
|
266 | - ), |
|
267 | - 'sebastian/environment' => array( |
|
268 | - 'pretty_version' => '5.1.3', |
|
269 | - 'version' => '5.1.3.0', |
|
270 | - 'type' => 'library', |
|
271 | - 'install_path' => __DIR__ . '/../sebastian/environment', |
|
272 | - 'aliases' => array(), |
|
273 | - 'reference' => '388b6ced16caa751030f6a69e588299fa09200ac', |
|
274 | - 'dev_requirement' => true, |
|
275 | - ), |
|
276 | - 'sebastian/exporter' => array( |
|
277 | - 'pretty_version' => '4.0.4', |
|
278 | - 'version' => '4.0.4.0', |
|
279 | - 'type' => 'library', |
|
280 | - 'install_path' => __DIR__ . '/../sebastian/exporter', |
|
281 | - 'aliases' => array(), |
|
282 | - 'reference' => '65e8b7db476c5dd267e65eea9cab77584d3cfff9', |
|
283 | - 'dev_requirement' => true, |
|
284 | - ), |
|
285 | - 'sebastian/global-state' => array( |
|
286 | - 'pretty_version' => '5.0.5', |
|
287 | - 'version' => '5.0.5.0', |
|
288 | - 'type' => 'library', |
|
289 | - 'install_path' => __DIR__ . '/../sebastian/global-state', |
|
290 | - 'aliases' => array(), |
|
291 | - 'reference' => '0ca8db5a5fc9c8646244e629625ac486fa286bf2', |
|
292 | - 'dev_requirement' => true, |
|
293 | - ), |
|
294 | - 'sebastian/lines-of-code' => array( |
|
295 | - 'pretty_version' => '1.0.3', |
|
296 | - 'version' => '1.0.3.0', |
|
297 | - 'type' => 'library', |
|
298 | - 'install_path' => __DIR__ . '/../sebastian/lines-of-code', |
|
299 | - 'aliases' => array(), |
|
300 | - 'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc', |
|
301 | - 'dev_requirement' => true, |
|
302 | - ), |
|
303 | - 'sebastian/object-enumerator' => array( |
|
304 | - 'pretty_version' => '4.0.4', |
|
305 | - 'version' => '4.0.4.0', |
|
306 | - 'type' => 'library', |
|
307 | - 'install_path' => __DIR__ . '/../sebastian/object-enumerator', |
|
308 | - 'aliases' => array(), |
|
309 | - 'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71', |
|
310 | - 'dev_requirement' => true, |
|
311 | - ), |
|
312 | - 'sebastian/object-reflector' => array( |
|
313 | - 'pretty_version' => '2.0.4', |
|
314 | - 'version' => '2.0.4.0', |
|
315 | - 'type' => 'library', |
|
316 | - 'install_path' => __DIR__ . '/../sebastian/object-reflector', |
|
317 | - 'aliases' => array(), |
|
318 | - 'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7', |
|
319 | - 'dev_requirement' => true, |
|
320 | - ), |
|
321 | - 'sebastian/recursion-context' => array( |
|
322 | - 'pretty_version' => '4.0.4', |
|
323 | - 'version' => '4.0.4.0', |
|
324 | - 'type' => 'library', |
|
325 | - 'install_path' => __DIR__ . '/../sebastian/recursion-context', |
|
326 | - 'aliases' => array(), |
|
327 | - 'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172', |
|
328 | - 'dev_requirement' => true, |
|
329 | - ), |
|
330 | - 'sebastian/resource-operations' => array( |
|
331 | - 'pretty_version' => '3.0.3', |
|
332 | - 'version' => '3.0.3.0', |
|
333 | - 'type' => 'library', |
|
334 | - 'install_path' => __DIR__ . '/../sebastian/resource-operations', |
|
335 | - 'aliases' => array(), |
|
336 | - 'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8', |
|
337 | - 'dev_requirement' => true, |
|
338 | - ), |
|
339 | - 'sebastian/type' => array( |
|
340 | - 'pretty_version' => '3.0.0', |
|
341 | - 'version' => '3.0.0.0', |
|
342 | - 'type' => 'library', |
|
343 | - 'install_path' => __DIR__ . '/../sebastian/type', |
|
344 | - 'aliases' => array(), |
|
345 | - 'reference' => 'b233b84bc4465aff7b57cf1c4bc75c86d00d6dad', |
|
346 | - 'dev_requirement' => true, |
|
347 | - ), |
|
348 | - 'sebastian/version' => array( |
|
349 | - 'pretty_version' => '3.0.2', |
|
350 | - 'version' => '3.0.2.0', |
|
351 | - 'type' => 'library', |
|
352 | - 'install_path' => __DIR__ . '/../sebastian/version', |
|
353 | - 'aliases' => array(), |
|
354 | - 'reference' => 'c6c1022351a901512170118436c764e473f6de8c', |
|
355 | - 'dev_requirement' => true, |
|
356 | - ), |
|
357 | - 'squizlabs/php_codesniffer' => array( |
|
358 | - 'pretty_version' => '3.6.2', |
|
359 | - 'version' => '3.6.2.0', |
|
360 | - 'type' => 'library', |
|
361 | - 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', |
|
362 | - 'aliases' => array(), |
|
363 | - 'reference' => '5e4e71592f69da17871dba6e80dd51bce74a351a', |
|
364 | - 'dev_requirement' => true, |
|
365 | - ), |
|
366 | - 'symfony/polyfill-ctype' => array( |
|
367 | - 'pretty_version' => 'v1.25.0', |
|
368 | - 'version' => '1.25.0.0', |
|
369 | - 'type' => 'library', |
|
370 | - 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', |
|
371 | - 'aliases' => array(), |
|
372 | - 'reference' => '30885182c981ab175d4d034db0f6f469898070ab', |
|
373 | - 'dev_requirement' => true, |
|
374 | - ), |
|
375 | - 'theseer/tokenizer' => array( |
|
376 | - 'pretty_version' => '1.2.1', |
|
377 | - 'version' => '1.2.1.0', |
|
378 | - 'type' => 'library', |
|
379 | - 'install_path' => __DIR__ . '/../theseer/tokenizer', |
|
380 | - 'aliases' => array(), |
|
381 | - 'reference' => '34a41e998c2183e22995f158c581e7b5e755ab9e', |
|
382 | - 'dev_requirement' => true, |
|
383 | - ), |
|
384 | - 'webmozart/assert' => array( |
|
385 | - 'pretty_version' => '1.10.0', |
|
386 | - 'version' => '1.10.0.0', |
|
387 | - 'type' => 'library', |
|
388 | - 'install_path' => __DIR__ . '/../webmozart/assert', |
|
389 | - 'aliases' => array(), |
|
390 | - 'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25', |
|
391 | - 'dev_requirement' => true, |
|
392 | - ), |
|
393 | - 'wp-coding-standards/wpcs' => array( |
|
394 | - 'pretty_version' => '2.3.0', |
|
395 | - 'version' => '2.3.0.0', |
|
396 | - 'type' => 'phpcodesniffer-standard', |
|
397 | - 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs', |
|
398 | - 'aliases' => array(), |
|
399 | - 'reference' => '7da1894633f168fe244afc6de00d141f27517b62', |
|
400 | - 'dev_requirement' => true, |
|
401 | - ), |
|
402 | - 'yoast/phpunit-polyfills' => array( |
|
403 | - 'pretty_version' => '1.0.3', |
|
404 | - 'version' => '1.0.3.0', |
|
405 | - 'type' => 'library', |
|
406 | - 'install_path' => __DIR__ . '/../yoast/phpunit-polyfills', |
|
407 | - 'aliases' => array(), |
|
408 | - 'reference' => '5ea3536428944955f969bc764bbe09738e151ada', |
|
409 | - 'dev_requirement' => true, |
|
410 | - ), |
|
411 | - ), |
|
2 | + 'root' => array( |
|
3 | + 'pretty_version' => 'dev-master', |
|
4 | + 'version' => 'dev-master', |
|
5 | + 'type' => 'wordpress-plugin', |
|
6 | + 'install_path' => __DIR__ . '/../../', |
|
7 | + 'aliases' => array(), |
|
8 | + 'reference' => '7b922196422c03d8ac304c7b62fbe08a9b23fe29', |
|
9 | + 'name' => 'eventespresso/event-espresso-core', |
|
10 | + 'dev' => true, |
|
11 | + ), |
|
12 | + 'versions' => array( |
|
13 | + 'composer/installers' => array( |
|
14 | + 'pretty_version' => 'v2.1.0', |
|
15 | + 'version' => '2.1.0.0', |
|
16 | + 'type' => 'composer-plugin', |
|
17 | + 'install_path' => __DIR__ . '/./installers', |
|
18 | + 'aliases' => array(), |
|
19 | + 'reference' => '75e5ef05436c90ac565a48176cc7465991908352', |
|
20 | + 'dev_requirement' => false, |
|
21 | + ), |
|
22 | + 'doctrine/instantiator' => array( |
|
23 | + 'pretty_version' => '1.4.1', |
|
24 | + 'version' => '1.4.1.0', |
|
25 | + 'type' => 'library', |
|
26 | + 'install_path' => __DIR__ . '/../doctrine/instantiator', |
|
27 | + 'aliases' => array(), |
|
28 | + 'reference' => '10dcfce151b967d20fde1b34ae6640712c3891bc', |
|
29 | + 'dev_requirement' => true, |
|
30 | + ), |
|
31 | + 'eventespresso/ee-coding-standards' => array( |
|
32 | + 'pretty_version' => 'dev-master', |
|
33 | + 'version' => 'dev-master', |
|
34 | + 'type' => 'phpcodesniffer-standard', |
|
35 | + 'install_path' => __DIR__ . '/../eventespresso/ee-coding-standards', |
|
36 | + 'aliases' => array( |
|
37 | + 0 => '9999999-dev', |
|
38 | + ), |
|
39 | + 'reference' => '4bbdbb4ed08aeb7ac719b19d8adbd0974c8b63ae', |
|
40 | + 'dev_requirement' => true, |
|
41 | + ), |
|
42 | + 'eventespresso/event-espresso-core' => array( |
|
43 | + 'pretty_version' => 'dev-master', |
|
44 | + 'version' => 'dev-master', |
|
45 | + 'type' => 'wordpress-plugin', |
|
46 | + 'install_path' => __DIR__ . '/../../', |
|
47 | + 'aliases' => array(), |
|
48 | + 'reference' => '7b922196422c03d8ac304c7b62fbe08a9b23fe29', |
|
49 | + 'dev_requirement' => false, |
|
50 | + ), |
|
51 | + 'myclabs/deep-copy' => array( |
|
52 | + 'pretty_version' => '1.11.0', |
|
53 | + 'version' => '1.11.0.0', |
|
54 | + 'type' => 'library', |
|
55 | + 'install_path' => __DIR__ . '/../myclabs/deep-copy', |
|
56 | + 'aliases' => array(), |
|
57 | + 'reference' => '14daed4296fae74d9e3201d2c4925d1acb7aa614', |
|
58 | + 'dev_requirement' => true, |
|
59 | + ), |
|
60 | + 'nikic/php-parser' => array( |
|
61 | + 'pretty_version' => 'v4.13.2', |
|
62 | + 'version' => '4.13.2.0', |
|
63 | + 'type' => 'library', |
|
64 | + 'install_path' => __DIR__ . '/../nikic/php-parser', |
|
65 | + 'aliases' => array(), |
|
66 | + 'reference' => '210577fe3cf7badcc5814d99455df46564f3c077', |
|
67 | + 'dev_requirement' => true, |
|
68 | + ), |
|
69 | + 'phar-io/manifest' => array( |
|
70 | + 'pretty_version' => '2.0.3', |
|
71 | + 'version' => '2.0.3.0', |
|
72 | + 'type' => 'library', |
|
73 | + 'install_path' => __DIR__ . '/../phar-io/manifest', |
|
74 | + 'aliases' => array(), |
|
75 | + 'reference' => '97803eca37d319dfa7826cc2437fc020857acb53', |
|
76 | + 'dev_requirement' => true, |
|
77 | + ), |
|
78 | + 'phar-io/version' => array( |
|
79 | + 'pretty_version' => '3.2.1', |
|
80 | + 'version' => '3.2.1.0', |
|
81 | + 'type' => 'library', |
|
82 | + 'install_path' => __DIR__ . '/../phar-io/version', |
|
83 | + 'aliases' => array(), |
|
84 | + 'reference' => '4f7fd7836c6f332bb2933569e566a0d6c4cbed74', |
|
85 | + 'dev_requirement' => true, |
|
86 | + ), |
|
87 | + 'phpcompatibility/php-compatibility' => array( |
|
88 | + 'pretty_version' => '9.3.5', |
|
89 | + 'version' => '9.3.5.0', |
|
90 | + 'type' => 'phpcodesniffer-standard', |
|
91 | + 'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility', |
|
92 | + 'aliases' => array(), |
|
93 | + 'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243', |
|
94 | + 'dev_requirement' => true, |
|
95 | + ), |
|
96 | + 'phpcompatibility/phpcompatibility-paragonie' => array( |
|
97 | + 'pretty_version' => '1.3.1', |
|
98 | + 'version' => '1.3.1.0', |
|
99 | + 'type' => 'phpcodesniffer-standard', |
|
100 | + 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie', |
|
101 | + 'aliases' => array(), |
|
102 | + 'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43', |
|
103 | + 'dev_requirement' => true, |
|
104 | + ), |
|
105 | + 'phpcompatibility/phpcompatibility-wp' => array( |
|
106 | + 'pretty_version' => '2.1.3', |
|
107 | + 'version' => '2.1.3.0', |
|
108 | + 'type' => 'phpcodesniffer-standard', |
|
109 | + 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp', |
|
110 | + 'aliases' => array(), |
|
111 | + 'reference' => 'd55de55f88697b9cdb94bccf04f14eb3b11cf308', |
|
112 | + 'dev_requirement' => true, |
|
113 | + ), |
|
114 | + 'phpdocumentor/reflection-common' => array( |
|
115 | + 'pretty_version' => '2.2.0', |
|
116 | + 'version' => '2.2.0.0', |
|
117 | + 'type' => 'library', |
|
118 | + 'install_path' => __DIR__ . '/../phpdocumentor/reflection-common', |
|
119 | + 'aliases' => array(), |
|
120 | + 'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b', |
|
121 | + 'dev_requirement' => true, |
|
122 | + ), |
|
123 | + 'phpdocumentor/reflection-docblock' => array( |
|
124 | + 'pretty_version' => '5.3.0', |
|
125 | + 'version' => '5.3.0.0', |
|
126 | + 'type' => 'library', |
|
127 | + 'install_path' => __DIR__ . '/../phpdocumentor/reflection-docblock', |
|
128 | + 'aliases' => array(), |
|
129 | + 'reference' => '622548b623e81ca6d78b721c5e029f4ce664f170', |
|
130 | + 'dev_requirement' => true, |
|
131 | + ), |
|
132 | + 'phpdocumentor/type-resolver' => array( |
|
133 | + 'pretty_version' => '1.6.0', |
|
134 | + 'version' => '1.6.0.0', |
|
135 | + 'type' => 'library', |
|
136 | + 'install_path' => __DIR__ . '/../phpdocumentor/type-resolver', |
|
137 | + 'aliases' => array(), |
|
138 | + 'reference' => '93ebd0014cab80c4ea9f5e297ea48672f1b87706', |
|
139 | + 'dev_requirement' => true, |
|
140 | + ), |
|
141 | + 'phpspec/prophecy' => array( |
|
142 | + 'pretty_version' => 'v1.15.0', |
|
143 | + 'version' => '1.15.0.0', |
|
144 | + 'type' => 'library', |
|
145 | + 'install_path' => __DIR__ . '/../phpspec/prophecy', |
|
146 | + 'aliases' => array(), |
|
147 | + 'reference' => 'bbcd7380b0ebf3961ee21409db7b38bc31d69a13', |
|
148 | + 'dev_requirement' => true, |
|
149 | + ), |
|
150 | + 'phpunit/php-code-coverage' => array( |
|
151 | + 'pretty_version' => '9.2.15', |
|
152 | + 'version' => '9.2.15.0', |
|
153 | + 'type' => 'library', |
|
154 | + 'install_path' => __DIR__ . '/../phpunit/php-code-coverage', |
|
155 | + 'aliases' => array(), |
|
156 | + 'reference' => '2e9da11878c4202f97915c1cb4bb1ca318a63f5f', |
|
157 | + 'dev_requirement' => true, |
|
158 | + ), |
|
159 | + 'phpunit/php-file-iterator' => array( |
|
160 | + 'pretty_version' => '3.0.6', |
|
161 | + 'version' => '3.0.6.0', |
|
162 | + 'type' => 'library', |
|
163 | + 'install_path' => __DIR__ . '/../phpunit/php-file-iterator', |
|
164 | + 'aliases' => array(), |
|
165 | + 'reference' => 'cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf', |
|
166 | + 'dev_requirement' => true, |
|
167 | + ), |
|
168 | + 'phpunit/php-invoker' => array( |
|
169 | + 'pretty_version' => '3.1.1', |
|
170 | + 'version' => '3.1.1.0', |
|
171 | + 'type' => 'library', |
|
172 | + 'install_path' => __DIR__ . '/../phpunit/php-invoker', |
|
173 | + 'aliases' => array(), |
|
174 | + 'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67', |
|
175 | + 'dev_requirement' => true, |
|
176 | + ), |
|
177 | + 'phpunit/php-text-template' => array( |
|
178 | + 'pretty_version' => '2.0.4', |
|
179 | + 'version' => '2.0.4.0', |
|
180 | + 'type' => 'library', |
|
181 | + 'install_path' => __DIR__ . '/../phpunit/php-text-template', |
|
182 | + 'aliases' => array(), |
|
183 | + 'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28', |
|
184 | + 'dev_requirement' => true, |
|
185 | + ), |
|
186 | + 'phpunit/php-timer' => array( |
|
187 | + 'pretty_version' => '5.0.3', |
|
188 | + 'version' => '5.0.3.0', |
|
189 | + 'type' => 'library', |
|
190 | + 'install_path' => __DIR__ . '/../phpunit/php-timer', |
|
191 | + 'aliases' => array(), |
|
192 | + 'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2', |
|
193 | + 'dev_requirement' => true, |
|
194 | + ), |
|
195 | + 'phpunit/phpunit' => array( |
|
196 | + 'pretty_version' => '9.5.19', |
|
197 | + 'version' => '9.5.19.0', |
|
198 | + 'type' => 'library', |
|
199 | + 'install_path' => __DIR__ . '/../phpunit/phpunit', |
|
200 | + 'aliases' => array(), |
|
201 | + 'reference' => '35ea4b7f3acabb26f4bb640f8c30866c401da807', |
|
202 | + 'dev_requirement' => true, |
|
203 | + ), |
|
204 | + 'roave/security-advisories' => array( |
|
205 | + 'pretty_version' => 'dev-master', |
|
206 | + 'version' => 'dev-master', |
|
207 | + 'type' => 'metapackage', |
|
208 | + 'install_path' => NULL, |
|
209 | + 'aliases' => array(), |
|
210 | + 'reference' => 'a1696aadf99f7ff55d44c56e7ebf54eace85310c', |
|
211 | + 'dev_requirement' => true, |
|
212 | + ), |
|
213 | + 'sebastian/cli-parser' => array( |
|
214 | + 'pretty_version' => '1.0.1', |
|
215 | + 'version' => '1.0.1.0', |
|
216 | + 'type' => 'library', |
|
217 | + 'install_path' => __DIR__ . '/../sebastian/cli-parser', |
|
218 | + 'aliases' => array(), |
|
219 | + 'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2', |
|
220 | + 'dev_requirement' => true, |
|
221 | + ), |
|
222 | + 'sebastian/code-unit' => array( |
|
223 | + 'pretty_version' => '1.0.8', |
|
224 | + 'version' => '1.0.8.0', |
|
225 | + 'type' => 'library', |
|
226 | + 'install_path' => __DIR__ . '/../sebastian/code-unit', |
|
227 | + 'aliases' => array(), |
|
228 | + 'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120', |
|
229 | + 'dev_requirement' => true, |
|
230 | + ), |
|
231 | + 'sebastian/code-unit-reverse-lookup' => array( |
|
232 | + 'pretty_version' => '2.0.3', |
|
233 | + 'version' => '2.0.3.0', |
|
234 | + 'type' => 'library', |
|
235 | + 'install_path' => __DIR__ . '/../sebastian/code-unit-reverse-lookup', |
|
236 | + 'aliases' => array(), |
|
237 | + 'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5', |
|
238 | + 'dev_requirement' => true, |
|
239 | + ), |
|
240 | + 'sebastian/comparator' => array( |
|
241 | + 'pretty_version' => '4.0.6', |
|
242 | + 'version' => '4.0.6.0', |
|
243 | + 'type' => 'library', |
|
244 | + 'install_path' => __DIR__ . '/../sebastian/comparator', |
|
245 | + 'aliases' => array(), |
|
246 | + 'reference' => '55f4261989e546dc112258c7a75935a81a7ce382', |
|
247 | + 'dev_requirement' => true, |
|
248 | + ), |
|
249 | + 'sebastian/complexity' => array( |
|
250 | + 'pretty_version' => '2.0.2', |
|
251 | + 'version' => '2.0.2.0', |
|
252 | + 'type' => 'library', |
|
253 | + 'install_path' => __DIR__ . '/../sebastian/complexity', |
|
254 | + 'aliases' => array(), |
|
255 | + 'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88', |
|
256 | + 'dev_requirement' => true, |
|
257 | + ), |
|
258 | + 'sebastian/diff' => array( |
|
259 | + 'pretty_version' => '4.0.4', |
|
260 | + 'version' => '4.0.4.0', |
|
261 | + 'type' => 'library', |
|
262 | + 'install_path' => __DIR__ . '/../sebastian/diff', |
|
263 | + 'aliases' => array(), |
|
264 | + 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', |
|
265 | + 'dev_requirement' => true, |
|
266 | + ), |
|
267 | + 'sebastian/environment' => array( |
|
268 | + 'pretty_version' => '5.1.3', |
|
269 | + 'version' => '5.1.3.0', |
|
270 | + 'type' => 'library', |
|
271 | + 'install_path' => __DIR__ . '/../sebastian/environment', |
|
272 | + 'aliases' => array(), |
|
273 | + 'reference' => '388b6ced16caa751030f6a69e588299fa09200ac', |
|
274 | + 'dev_requirement' => true, |
|
275 | + ), |
|
276 | + 'sebastian/exporter' => array( |
|
277 | + 'pretty_version' => '4.0.4', |
|
278 | + 'version' => '4.0.4.0', |
|
279 | + 'type' => 'library', |
|
280 | + 'install_path' => __DIR__ . '/../sebastian/exporter', |
|
281 | + 'aliases' => array(), |
|
282 | + 'reference' => '65e8b7db476c5dd267e65eea9cab77584d3cfff9', |
|
283 | + 'dev_requirement' => true, |
|
284 | + ), |
|
285 | + 'sebastian/global-state' => array( |
|
286 | + 'pretty_version' => '5.0.5', |
|
287 | + 'version' => '5.0.5.0', |
|
288 | + 'type' => 'library', |
|
289 | + 'install_path' => __DIR__ . '/../sebastian/global-state', |
|
290 | + 'aliases' => array(), |
|
291 | + 'reference' => '0ca8db5a5fc9c8646244e629625ac486fa286bf2', |
|
292 | + 'dev_requirement' => true, |
|
293 | + ), |
|
294 | + 'sebastian/lines-of-code' => array( |
|
295 | + 'pretty_version' => '1.0.3', |
|
296 | + 'version' => '1.0.3.0', |
|
297 | + 'type' => 'library', |
|
298 | + 'install_path' => __DIR__ . '/../sebastian/lines-of-code', |
|
299 | + 'aliases' => array(), |
|
300 | + 'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc', |
|
301 | + 'dev_requirement' => true, |
|
302 | + ), |
|
303 | + 'sebastian/object-enumerator' => array( |
|
304 | + 'pretty_version' => '4.0.4', |
|
305 | + 'version' => '4.0.4.0', |
|
306 | + 'type' => 'library', |
|
307 | + 'install_path' => __DIR__ . '/../sebastian/object-enumerator', |
|
308 | + 'aliases' => array(), |
|
309 | + 'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71', |
|
310 | + 'dev_requirement' => true, |
|
311 | + ), |
|
312 | + 'sebastian/object-reflector' => array( |
|
313 | + 'pretty_version' => '2.0.4', |
|
314 | + 'version' => '2.0.4.0', |
|
315 | + 'type' => 'library', |
|
316 | + 'install_path' => __DIR__ . '/../sebastian/object-reflector', |
|
317 | + 'aliases' => array(), |
|
318 | + 'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7', |
|
319 | + 'dev_requirement' => true, |
|
320 | + ), |
|
321 | + 'sebastian/recursion-context' => array( |
|
322 | + 'pretty_version' => '4.0.4', |
|
323 | + 'version' => '4.0.4.0', |
|
324 | + 'type' => 'library', |
|
325 | + 'install_path' => __DIR__ . '/../sebastian/recursion-context', |
|
326 | + 'aliases' => array(), |
|
327 | + 'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172', |
|
328 | + 'dev_requirement' => true, |
|
329 | + ), |
|
330 | + 'sebastian/resource-operations' => array( |
|
331 | + 'pretty_version' => '3.0.3', |
|
332 | + 'version' => '3.0.3.0', |
|
333 | + 'type' => 'library', |
|
334 | + 'install_path' => __DIR__ . '/../sebastian/resource-operations', |
|
335 | + 'aliases' => array(), |
|
336 | + 'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8', |
|
337 | + 'dev_requirement' => true, |
|
338 | + ), |
|
339 | + 'sebastian/type' => array( |
|
340 | + 'pretty_version' => '3.0.0', |
|
341 | + 'version' => '3.0.0.0', |
|
342 | + 'type' => 'library', |
|
343 | + 'install_path' => __DIR__ . '/../sebastian/type', |
|
344 | + 'aliases' => array(), |
|
345 | + 'reference' => 'b233b84bc4465aff7b57cf1c4bc75c86d00d6dad', |
|
346 | + 'dev_requirement' => true, |
|
347 | + ), |
|
348 | + 'sebastian/version' => array( |
|
349 | + 'pretty_version' => '3.0.2', |
|
350 | + 'version' => '3.0.2.0', |
|
351 | + 'type' => 'library', |
|
352 | + 'install_path' => __DIR__ . '/../sebastian/version', |
|
353 | + 'aliases' => array(), |
|
354 | + 'reference' => 'c6c1022351a901512170118436c764e473f6de8c', |
|
355 | + 'dev_requirement' => true, |
|
356 | + ), |
|
357 | + 'squizlabs/php_codesniffer' => array( |
|
358 | + 'pretty_version' => '3.6.2', |
|
359 | + 'version' => '3.6.2.0', |
|
360 | + 'type' => 'library', |
|
361 | + 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', |
|
362 | + 'aliases' => array(), |
|
363 | + 'reference' => '5e4e71592f69da17871dba6e80dd51bce74a351a', |
|
364 | + 'dev_requirement' => true, |
|
365 | + ), |
|
366 | + 'symfony/polyfill-ctype' => array( |
|
367 | + 'pretty_version' => 'v1.25.0', |
|
368 | + 'version' => '1.25.0.0', |
|
369 | + 'type' => 'library', |
|
370 | + 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', |
|
371 | + 'aliases' => array(), |
|
372 | + 'reference' => '30885182c981ab175d4d034db0f6f469898070ab', |
|
373 | + 'dev_requirement' => true, |
|
374 | + ), |
|
375 | + 'theseer/tokenizer' => array( |
|
376 | + 'pretty_version' => '1.2.1', |
|
377 | + 'version' => '1.2.1.0', |
|
378 | + 'type' => 'library', |
|
379 | + 'install_path' => __DIR__ . '/../theseer/tokenizer', |
|
380 | + 'aliases' => array(), |
|
381 | + 'reference' => '34a41e998c2183e22995f158c581e7b5e755ab9e', |
|
382 | + 'dev_requirement' => true, |
|
383 | + ), |
|
384 | + 'webmozart/assert' => array( |
|
385 | + 'pretty_version' => '1.10.0', |
|
386 | + 'version' => '1.10.0.0', |
|
387 | + 'type' => 'library', |
|
388 | + 'install_path' => __DIR__ . '/../webmozart/assert', |
|
389 | + 'aliases' => array(), |
|
390 | + 'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25', |
|
391 | + 'dev_requirement' => true, |
|
392 | + ), |
|
393 | + 'wp-coding-standards/wpcs' => array( |
|
394 | + 'pretty_version' => '2.3.0', |
|
395 | + 'version' => '2.3.0.0', |
|
396 | + 'type' => 'phpcodesniffer-standard', |
|
397 | + 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs', |
|
398 | + 'aliases' => array(), |
|
399 | + 'reference' => '7da1894633f168fe244afc6de00d141f27517b62', |
|
400 | + 'dev_requirement' => true, |
|
401 | + ), |
|
402 | + 'yoast/phpunit-polyfills' => array( |
|
403 | + 'pretty_version' => '1.0.3', |
|
404 | + 'version' => '1.0.3.0', |
|
405 | + 'type' => 'library', |
|
406 | + 'install_path' => __DIR__ . '/../yoast/phpunit-polyfills', |
|
407 | + 'aliases' => array(), |
|
408 | + 'reference' => '5ea3536428944955f969bc764bbe09738e151ada', |
|
409 | + 'dev_requirement' => true, |
|
410 | + ), |
|
411 | + ), |
|
412 | 412 | ); |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | 'pretty_version' => 'dev-master', |
4 | 4 | 'version' => 'dev-master', |
5 | 5 | 'type' => 'wordpress-plugin', |
6 | - 'install_path' => __DIR__ . '/../../', |
|
6 | + 'install_path' => __DIR__.'/../../', |
|
7 | 7 | 'aliases' => array(), |
8 | 8 | 'reference' => '7b922196422c03d8ac304c7b62fbe08a9b23fe29', |
9 | 9 | 'name' => 'eventespresso/event-espresso-core', |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | 'pretty_version' => 'v2.1.0', |
15 | 15 | 'version' => '2.1.0.0', |
16 | 16 | 'type' => 'composer-plugin', |
17 | - 'install_path' => __DIR__ . '/./installers', |
|
17 | + 'install_path' => __DIR__.'/./installers', |
|
18 | 18 | 'aliases' => array(), |
19 | 19 | 'reference' => '75e5ef05436c90ac565a48176cc7465991908352', |
20 | 20 | 'dev_requirement' => false, |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | 'pretty_version' => '1.4.1', |
24 | 24 | 'version' => '1.4.1.0', |
25 | 25 | 'type' => 'library', |
26 | - 'install_path' => __DIR__ . '/../doctrine/instantiator', |
|
26 | + 'install_path' => __DIR__.'/../doctrine/instantiator', |
|
27 | 27 | 'aliases' => array(), |
28 | 28 | 'reference' => '10dcfce151b967d20fde1b34ae6640712c3891bc', |
29 | 29 | 'dev_requirement' => true, |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | 'pretty_version' => 'dev-master', |
33 | 33 | 'version' => 'dev-master', |
34 | 34 | 'type' => 'phpcodesniffer-standard', |
35 | - 'install_path' => __DIR__ . '/../eventespresso/ee-coding-standards', |
|
35 | + 'install_path' => __DIR__.'/../eventespresso/ee-coding-standards', |
|
36 | 36 | 'aliases' => array( |
37 | 37 | 0 => '9999999-dev', |
38 | 38 | ), |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | 'pretty_version' => 'dev-master', |
44 | 44 | 'version' => 'dev-master', |
45 | 45 | 'type' => 'wordpress-plugin', |
46 | - 'install_path' => __DIR__ . '/../../', |
|
46 | + 'install_path' => __DIR__.'/../../', |
|
47 | 47 | 'aliases' => array(), |
48 | 48 | 'reference' => '7b922196422c03d8ac304c7b62fbe08a9b23fe29', |
49 | 49 | 'dev_requirement' => false, |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'pretty_version' => '1.11.0', |
53 | 53 | 'version' => '1.11.0.0', |
54 | 54 | 'type' => 'library', |
55 | - 'install_path' => __DIR__ . '/../myclabs/deep-copy', |
|
55 | + 'install_path' => __DIR__.'/../myclabs/deep-copy', |
|
56 | 56 | 'aliases' => array(), |
57 | 57 | 'reference' => '14daed4296fae74d9e3201d2c4925d1acb7aa614', |
58 | 58 | 'dev_requirement' => true, |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'pretty_version' => 'v4.13.2', |
62 | 62 | 'version' => '4.13.2.0', |
63 | 63 | 'type' => 'library', |
64 | - 'install_path' => __DIR__ . '/../nikic/php-parser', |
|
64 | + 'install_path' => __DIR__.'/../nikic/php-parser', |
|
65 | 65 | 'aliases' => array(), |
66 | 66 | 'reference' => '210577fe3cf7badcc5814d99455df46564f3c077', |
67 | 67 | 'dev_requirement' => true, |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | 'pretty_version' => '2.0.3', |
71 | 71 | 'version' => '2.0.3.0', |
72 | 72 | 'type' => 'library', |
73 | - 'install_path' => __DIR__ . '/../phar-io/manifest', |
|
73 | + 'install_path' => __DIR__.'/../phar-io/manifest', |
|
74 | 74 | 'aliases' => array(), |
75 | 75 | 'reference' => '97803eca37d319dfa7826cc2437fc020857acb53', |
76 | 76 | 'dev_requirement' => true, |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'pretty_version' => '3.2.1', |
80 | 80 | 'version' => '3.2.1.0', |
81 | 81 | 'type' => 'library', |
82 | - 'install_path' => __DIR__ . '/../phar-io/version', |
|
82 | + 'install_path' => __DIR__.'/../phar-io/version', |
|
83 | 83 | 'aliases' => array(), |
84 | 84 | 'reference' => '4f7fd7836c6f332bb2933569e566a0d6c4cbed74', |
85 | 85 | 'dev_requirement' => true, |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | 'pretty_version' => '9.3.5', |
89 | 89 | 'version' => '9.3.5.0', |
90 | 90 | 'type' => 'phpcodesniffer-standard', |
91 | - 'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility', |
|
91 | + 'install_path' => __DIR__.'/../phpcompatibility/php-compatibility', |
|
92 | 92 | 'aliases' => array(), |
93 | 93 | 'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243', |
94 | 94 | 'dev_requirement' => true, |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'pretty_version' => '1.3.1', |
98 | 98 | 'version' => '1.3.1.0', |
99 | 99 | 'type' => 'phpcodesniffer-standard', |
100 | - 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-paragonie', |
|
100 | + 'install_path' => __DIR__.'/../phpcompatibility/phpcompatibility-paragonie', |
|
101 | 101 | 'aliases' => array(), |
102 | 102 | 'reference' => 'ddabec839cc003651f2ce695c938686d1086cf43', |
103 | 103 | 'dev_requirement' => true, |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | 'pretty_version' => '2.1.3', |
107 | 107 | 'version' => '2.1.3.0', |
108 | 108 | 'type' => 'phpcodesniffer-standard', |
109 | - 'install_path' => __DIR__ . '/../phpcompatibility/phpcompatibility-wp', |
|
109 | + 'install_path' => __DIR__.'/../phpcompatibility/phpcompatibility-wp', |
|
110 | 110 | 'aliases' => array(), |
111 | 111 | 'reference' => 'd55de55f88697b9cdb94bccf04f14eb3b11cf308', |
112 | 112 | 'dev_requirement' => true, |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | 'pretty_version' => '2.2.0', |
116 | 116 | 'version' => '2.2.0.0', |
117 | 117 | 'type' => 'library', |
118 | - 'install_path' => __DIR__ . '/../phpdocumentor/reflection-common', |
|
118 | + 'install_path' => __DIR__.'/../phpdocumentor/reflection-common', |
|
119 | 119 | 'aliases' => array(), |
120 | 120 | 'reference' => '1d01c49d4ed62f25aa84a747ad35d5a16924662b', |
121 | 121 | 'dev_requirement' => true, |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'pretty_version' => '5.3.0', |
125 | 125 | 'version' => '5.3.0.0', |
126 | 126 | 'type' => 'library', |
127 | - 'install_path' => __DIR__ . '/../phpdocumentor/reflection-docblock', |
|
127 | + 'install_path' => __DIR__.'/../phpdocumentor/reflection-docblock', |
|
128 | 128 | 'aliases' => array(), |
129 | 129 | 'reference' => '622548b623e81ca6d78b721c5e029f4ce664f170', |
130 | 130 | 'dev_requirement' => true, |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | 'pretty_version' => '1.6.0', |
134 | 134 | 'version' => '1.6.0.0', |
135 | 135 | 'type' => 'library', |
136 | - 'install_path' => __DIR__ . '/../phpdocumentor/type-resolver', |
|
136 | + 'install_path' => __DIR__.'/../phpdocumentor/type-resolver', |
|
137 | 137 | 'aliases' => array(), |
138 | 138 | 'reference' => '93ebd0014cab80c4ea9f5e297ea48672f1b87706', |
139 | 139 | 'dev_requirement' => true, |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | 'pretty_version' => 'v1.15.0', |
143 | 143 | 'version' => '1.15.0.0', |
144 | 144 | 'type' => 'library', |
145 | - 'install_path' => __DIR__ . '/../phpspec/prophecy', |
|
145 | + 'install_path' => __DIR__.'/../phpspec/prophecy', |
|
146 | 146 | 'aliases' => array(), |
147 | 147 | 'reference' => 'bbcd7380b0ebf3961ee21409db7b38bc31d69a13', |
148 | 148 | 'dev_requirement' => true, |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | 'pretty_version' => '9.2.15', |
152 | 152 | 'version' => '9.2.15.0', |
153 | 153 | 'type' => 'library', |
154 | - 'install_path' => __DIR__ . '/../phpunit/php-code-coverage', |
|
154 | + 'install_path' => __DIR__.'/../phpunit/php-code-coverage', |
|
155 | 155 | 'aliases' => array(), |
156 | 156 | 'reference' => '2e9da11878c4202f97915c1cb4bb1ca318a63f5f', |
157 | 157 | 'dev_requirement' => true, |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | 'pretty_version' => '3.0.6', |
161 | 161 | 'version' => '3.0.6.0', |
162 | 162 | 'type' => 'library', |
163 | - 'install_path' => __DIR__ . '/../phpunit/php-file-iterator', |
|
163 | + 'install_path' => __DIR__.'/../phpunit/php-file-iterator', |
|
164 | 164 | 'aliases' => array(), |
165 | 165 | 'reference' => 'cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf', |
166 | 166 | 'dev_requirement' => true, |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | 'pretty_version' => '3.1.1', |
170 | 170 | 'version' => '3.1.1.0', |
171 | 171 | 'type' => 'library', |
172 | - 'install_path' => __DIR__ . '/../phpunit/php-invoker', |
|
172 | + 'install_path' => __DIR__.'/../phpunit/php-invoker', |
|
173 | 173 | 'aliases' => array(), |
174 | 174 | 'reference' => '5a10147d0aaf65b58940a0b72f71c9ac0423cc67', |
175 | 175 | 'dev_requirement' => true, |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | 'pretty_version' => '2.0.4', |
179 | 179 | 'version' => '2.0.4.0', |
180 | 180 | 'type' => 'library', |
181 | - 'install_path' => __DIR__ . '/../phpunit/php-text-template', |
|
181 | + 'install_path' => __DIR__.'/../phpunit/php-text-template', |
|
182 | 182 | 'aliases' => array(), |
183 | 183 | 'reference' => '5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28', |
184 | 184 | 'dev_requirement' => true, |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | 'pretty_version' => '5.0.3', |
188 | 188 | 'version' => '5.0.3.0', |
189 | 189 | 'type' => 'library', |
190 | - 'install_path' => __DIR__ . '/../phpunit/php-timer', |
|
190 | + 'install_path' => __DIR__.'/../phpunit/php-timer', |
|
191 | 191 | 'aliases' => array(), |
192 | 192 | 'reference' => '5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2', |
193 | 193 | 'dev_requirement' => true, |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | 'pretty_version' => '9.5.19', |
197 | 197 | 'version' => '9.5.19.0', |
198 | 198 | 'type' => 'library', |
199 | - 'install_path' => __DIR__ . '/../phpunit/phpunit', |
|
199 | + 'install_path' => __DIR__.'/../phpunit/phpunit', |
|
200 | 200 | 'aliases' => array(), |
201 | 201 | 'reference' => '35ea4b7f3acabb26f4bb640f8c30866c401da807', |
202 | 202 | 'dev_requirement' => true, |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | 'pretty_version' => '1.0.1', |
215 | 215 | 'version' => '1.0.1.0', |
216 | 216 | 'type' => 'library', |
217 | - 'install_path' => __DIR__ . '/../sebastian/cli-parser', |
|
217 | + 'install_path' => __DIR__.'/../sebastian/cli-parser', |
|
218 | 218 | 'aliases' => array(), |
219 | 219 | 'reference' => '442e7c7e687e42adc03470c7b668bc4b2402c0b2', |
220 | 220 | 'dev_requirement' => true, |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | 'pretty_version' => '1.0.8', |
224 | 224 | 'version' => '1.0.8.0', |
225 | 225 | 'type' => 'library', |
226 | - 'install_path' => __DIR__ . '/../sebastian/code-unit', |
|
226 | + 'install_path' => __DIR__.'/../sebastian/code-unit', |
|
227 | 227 | 'aliases' => array(), |
228 | 228 | 'reference' => '1fc9f64c0927627ef78ba436c9b17d967e68e120', |
229 | 229 | 'dev_requirement' => true, |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | 'pretty_version' => '2.0.3', |
233 | 233 | 'version' => '2.0.3.0', |
234 | 234 | 'type' => 'library', |
235 | - 'install_path' => __DIR__ . '/../sebastian/code-unit-reverse-lookup', |
|
235 | + 'install_path' => __DIR__.'/../sebastian/code-unit-reverse-lookup', |
|
236 | 236 | 'aliases' => array(), |
237 | 237 | 'reference' => 'ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5', |
238 | 238 | 'dev_requirement' => true, |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | 'pretty_version' => '4.0.6', |
242 | 242 | 'version' => '4.0.6.0', |
243 | 243 | 'type' => 'library', |
244 | - 'install_path' => __DIR__ . '/../sebastian/comparator', |
|
244 | + 'install_path' => __DIR__.'/../sebastian/comparator', |
|
245 | 245 | 'aliases' => array(), |
246 | 246 | 'reference' => '55f4261989e546dc112258c7a75935a81a7ce382', |
247 | 247 | 'dev_requirement' => true, |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | 'pretty_version' => '2.0.2', |
251 | 251 | 'version' => '2.0.2.0', |
252 | 252 | 'type' => 'library', |
253 | - 'install_path' => __DIR__ . '/../sebastian/complexity', |
|
253 | + 'install_path' => __DIR__.'/../sebastian/complexity', |
|
254 | 254 | 'aliases' => array(), |
255 | 255 | 'reference' => '739b35e53379900cc9ac327b2147867b8b6efd88', |
256 | 256 | 'dev_requirement' => true, |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | 'pretty_version' => '4.0.4', |
260 | 260 | 'version' => '4.0.4.0', |
261 | 261 | 'type' => 'library', |
262 | - 'install_path' => __DIR__ . '/../sebastian/diff', |
|
262 | + 'install_path' => __DIR__.'/../sebastian/diff', |
|
263 | 263 | 'aliases' => array(), |
264 | 264 | 'reference' => '3461e3fccc7cfdfc2720be910d3bd73c69be590d', |
265 | 265 | 'dev_requirement' => true, |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | 'pretty_version' => '5.1.3', |
269 | 269 | 'version' => '5.1.3.0', |
270 | 270 | 'type' => 'library', |
271 | - 'install_path' => __DIR__ . '/../sebastian/environment', |
|
271 | + 'install_path' => __DIR__.'/../sebastian/environment', |
|
272 | 272 | 'aliases' => array(), |
273 | 273 | 'reference' => '388b6ced16caa751030f6a69e588299fa09200ac', |
274 | 274 | 'dev_requirement' => true, |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | 'pretty_version' => '4.0.4', |
278 | 278 | 'version' => '4.0.4.0', |
279 | 279 | 'type' => 'library', |
280 | - 'install_path' => __DIR__ . '/../sebastian/exporter', |
|
280 | + 'install_path' => __DIR__.'/../sebastian/exporter', |
|
281 | 281 | 'aliases' => array(), |
282 | 282 | 'reference' => '65e8b7db476c5dd267e65eea9cab77584d3cfff9', |
283 | 283 | 'dev_requirement' => true, |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | 'pretty_version' => '5.0.5', |
287 | 287 | 'version' => '5.0.5.0', |
288 | 288 | 'type' => 'library', |
289 | - 'install_path' => __DIR__ . '/../sebastian/global-state', |
|
289 | + 'install_path' => __DIR__.'/../sebastian/global-state', |
|
290 | 290 | 'aliases' => array(), |
291 | 291 | 'reference' => '0ca8db5a5fc9c8646244e629625ac486fa286bf2', |
292 | 292 | 'dev_requirement' => true, |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | 'pretty_version' => '1.0.3', |
296 | 296 | 'version' => '1.0.3.0', |
297 | 297 | 'type' => 'library', |
298 | - 'install_path' => __DIR__ . '/../sebastian/lines-of-code', |
|
298 | + 'install_path' => __DIR__.'/../sebastian/lines-of-code', |
|
299 | 299 | 'aliases' => array(), |
300 | 300 | 'reference' => 'c1c2e997aa3146983ed888ad08b15470a2e22ecc', |
301 | 301 | 'dev_requirement' => true, |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | 'pretty_version' => '4.0.4', |
305 | 305 | 'version' => '4.0.4.0', |
306 | 306 | 'type' => 'library', |
307 | - 'install_path' => __DIR__ . '/../sebastian/object-enumerator', |
|
307 | + 'install_path' => __DIR__.'/../sebastian/object-enumerator', |
|
308 | 308 | 'aliases' => array(), |
309 | 309 | 'reference' => '5c9eeac41b290a3712d88851518825ad78f45c71', |
310 | 310 | 'dev_requirement' => true, |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | 'pretty_version' => '2.0.4', |
314 | 314 | 'version' => '2.0.4.0', |
315 | 315 | 'type' => 'library', |
316 | - 'install_path' => __DIR__ . '/../sebastian/object-reflector', |
|
316 | + 'install_path' => __DIR__.'/../sebastian/object-reflector', |
|
317 | 317 | 'aliases' => array(), |
318 | 318 | 'reference' => 'b4f479ebdbf63ac605d183ece17d8d7fe49c15c7', |
319 | 319 | 'dev_requirement' => true, |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | 'pretty_version' => '4.0.4', |
323 | 323 | 'version' => '4.0.4.0', |
324 | 324 | 'type' => 'library', |
325 | - 'install_path' => __DIR__ . '/../sebastian/recursion-context', |
|
325 | + 'install_path' => __DIR__.'/../sebastian/recursion-context', |
|
326 | 326 | 'aliases' => array(), |
327 | 327 | 'reference' => 'cd9d8cf3c5804de4341c283ed787f099f5506172', |
328 | 328 | 'dev_requirement' => true, |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | 'pretty_version' => '3.0.3', |
332 | 332 | 'version' => '3.0.3.0', |
333 | 333 | 'type' => 'library', |
334 | - 'install_path' => __DIR__ . '/../sebastian/resource-operations', |
|
334 | + 'install_path' => __DIR__.'/../sebastian/resource-operations', |
|
335 | 335 | 'aliases' => array(), |
336 | 336 | 'reference' => '0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8', |
337 | 337 | 'dev_requirement' => true, |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | 'pretty_version' => '3.0.0', |
341 | 341 | 'version' => '3.0.0.0', |
342 | 342 | 'type' => 'library', |
343 | - 'install_path' => __DIR__ . '/../sebastian/type', |
|
343 | + 'install_path' => __DIR__.'/../sebastian/type', |
|
344 | 344 | 'aliases' => array(), |
345 | 345 | 'reference' => 'b233b84bc4465aff7b57cf1c4bc75c86d00d6dad', |
346 | 346 | 'dev_requirement' => true, |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | 'pretty_version' => '3.0.2', |
350 | 350 | 'version' => '3.0.2.0', |
351 | 351 | 'type' => 'library', |
352 | - 'install_path' => __DIR__ . '/../sebastian/version', |
|
352 | + 'install_path' => __DIR__.'/../sebastian/version', |
|
353 | 353 | 'aliases' => array(), |
354 | 354 | 'reference' => 'c6c1022351a901512170118436c764e473f6de8c', |
355 | 355 | 'dev_requirement' => true, |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | 'pretty_version' => '3.6.2', |
359 | 359 | 'version' => '3.6.2.0', |
360 | 360 | 'type' => 'library', |
361 | - 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', |
|
361 | + 'install_path' => __DIR__.'/../squizlabs/php_codesniffer', |
|
362 | 362 | 'aliases' => array(), |
363 | 363 | 'reference' => '5e4e71592f69da17871dba6e80dd51bce74a351a', |
364 | 364 | 'dev_requirement' => true, |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | 'pretty_version' => 'v1.25.0', |
368 | 368 | 'version' => '1.25.0.0', |
369 | 369 | 'type' => 'library', |
370 | - 'install_path' => __DIR__ . '/../symfony/polyfill-ctype', |
|
370 | + 'install_path' => __DIR__.'/../symfony/polyfill-ctype', |
|
371 | 371 | 'aliases' => array(), |
372 | 372 | 'reference' => '30885182c981ab175d4d034db0f6f469898070ab', |
373 | 373 | 'dev_requirement' => true, |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | 'pretty_version' => '1.2.1', |
377 | 377 | 'version' => '1.2.1.0', |
378 | 378 | 'type' => 'library', |
379 | - 'install_path' => __DIR__ . '/../theseer/tokenizer', |
|
379 | + 'install_path' => __DIR__.'/../theseer/tokenizer', |
|
380 | 380 | 'aliases' => array(), |
381 | 381 | 'reference' => '34a41e998c2183e22995f158c581e7b5e755ab9e', |
382 | 382 | 'dev_requirement' => true, |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | 'pretty_version' => '1.10.0', |
386 | 386 | 'version' => '1.10.0.0', |
387 | 387 | 'type' => 'library', |
388 | - 'install_path' => __DIR__ . '/../webmozart/assert', |
|
388 | + 'install_path' => __DIR__.'/../webmozart/assert', |
|
389 | 389 | 'aliases' => array(), |
390 | 390 | 'reference' => '6964c76c7804814a842473e0c8fd15bab0f18e25', |
391 | 391 | 'dev_requirement' => true, |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | 'pretty_version' => '2.3.0', |
395 | 395 | 'version' => '2.3.0.0', |
396 | 396 | 'type' => 'phpcodesniffer-standard', |
397 | - 'install_path' => __DIR__ . '/../wp-coding-standards/wpcs', |
|
397 | + 'install_path' => __DIR__.'/../wp-coding-standards/wpcs', |
|
398 | 398 | 'aliases' => array(), |
399 | 399 | 'reference' => '7da1894633f168fe244afc6de00d141f27517b62', |
400 | 400 | 'dev_requirement' => true, |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | 'pretty_version' => '1.0.3', |
404 | 404 | 'version' => '1.0.3.0', |
405 | 405 | 'type' => 'library', |
406 | - 'install_path' => __DIR__ . '/../yoast/phpunit-polyfills', |
|
406 | + 'install_path' => __DIR__.'/../yoast/phpunit-polyfills', |
|
407 | 407 | 'aliases' => array(), |
408 | 408 | 'reference' => '5ea3536428944955f969bc764bbe09738e151ada', |
409 | 409 | 'dev_requirement' => true, |
@@ -14,582 +14,582 @@ |
||
14 | 14 | class EE_Payment_Method extends EE_Base_Class |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * Payment Method type object, which has all the info about this type of payment method, |
|
19 | - * including functions for processing payments, to get settings forms, etc. |
|
20 | - * |
|
21 | - * @var EE_PMT_Base |
|
22 | - */ |
|
23 | - protected $_type_obj; |
|
24 | - |
|
25 | - |
|
26 | - /** |
|
27 | - * @param array $props_n_values |
|
28 | - * @return EE_Payment_Method |
|
29 | - * @throws \EE_Error |
|
30 | - */ |
|
31 | - public static function new_instance($props_n_values = array()) |
|
32 | - { |
|
33 | - $has_object = parent::_check_for_object($props_n_values, __CLASS__); |
|
34 | - return $has_object ? $has_object : new self($props_n_values, false); |
|
35 | - } |
|
36 | - |
|
37 | - |
|
38 | - /** |
|
39 | - * @param array $props_n_values |
|
40 | - * @return EE_Payment_Method |
|
41 | - * @throws \EE_Error |
|
42 | - */ |
|
43 | - public static function new_instance_from_db($props_n_values = array()) |
|
44 | - { |
|
45 | - return new self($props_n_values, true); |
|
46 | - } |
|
47 | - |
|
48 | - |
|
49 | - |
|
50 | - /** |
|
51 | - * Checks if there is a payment method class of the given 'PMD_type', and if so returns the classname. |
|
52 | - * Otherwise returns a normal EE_Payment_Method |
|
53 | - * |
|
54 | - * @param array $props_n_values where 'PMD_type' is a gateway name like 'Paypal_Standard','Invoice',etc (basically |
|
55 | - * the classname minus 'EEPM_') |
|
56 | - * @return string |
|
57 | - */ |
|
58 | - // private static function _payment_method_type($props_n_values) |
|
59 | - // { |
|
60 | - // EE_Registry::instance()->load_lib('Payment_Method_Manager'); |
|
61 | - // $type_string = isset($props_n_values['PMD_type']) ? $props_n_values['PMD_type'] : null; |
|
62 | - // if (EE_Payment_Method_Manager::instance()->payment_method_type_exists($type_string)) { |
|
63 | - // return 'EEPM_' . $type_string; |
|
64 | - // } else { |
|
65 | - // return __CLASS__; |
|
66 | - // } |
|
67 | - // } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * Gets whether this payment method can be used anywhere at all (ie frontend cart, admin, etc) |
|
72 | - * |
|
73 | - * @return boolean |
|
74 | - */ |
|
75 | - public function active() |
|
76 | - { |
|
77 | - return array_intersect(array_keys(EEM_Payment_Method::instance()->scopes()), $this->scope()); |
|
78 | - } |
|
79 | - |
|
80 | - |
|
81 | - /** |
|
82 | - * Sets this PM as active by making it usable within the CART scope. Offline gateways |
|
83 | - * are also usable from the admin-scope as well. DOES NOT SAVE it |
|
84 | - * |
|
85 | - * @throws \EE_Error |
|
86 | - */ |
|
87 | - public function set_active() |
|
88 | - { |
|
89 | - $default_scopes = array(EEM_Payment_Method::scope_cart); |
|
90 | - if ( |
|
91 | - $this->type_obj() && |
|
92 | - $this->type_obj()->payment_occurs() === EE_PMT_Base::offline |
|
93 | - ) { |
|
94 | - $default_scopes[] = EEM_Payment_Method::scope_admin; |
|
95 | - } |
|
96 | - $this->set_scope($default_scopes); |
|
97 | - } |
|
98 | - |
|
99 | - |
|
100 | - /** |
|
101 | - * Makes this payment method apply to NO scopes at all. DOES NOT SAVE it. |
|
102 | - */ |
|
103 | - public function deactivate() |
|
104 | - { |
|
105 | - $this->set_scope(array()); |
|
106 | - } |
|
107 | - |
|
108 | - |
|
109 | - /** |
|
110 | - * Gets button_url |
|
111 | - * |
|
112 | - * @return string |
|
113 | - */ |
|
114 | - public function button_url() |
|
115 | - { |
|
116 | - return $this->get('PMD_button_url'); |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - /** |
|
121 | - * Sets button_url |
|
122 | - * |
|
123 | - * @param string $button_url |
|
124 | - */ |
|
125 | - public function set_button_url($button_url) |
|
126 | - { |
|
127 | - $this->set('PMD_button_url', $button_url); |
|
128 | - } |
|
129 | - |
|
130 | - |
|
131 | - /** |
|
132 | - * Gets debug_mode |
|
133 | - * |
|
134 | - * @return boolean |
|
135 | - */ |
|
136 | - public function debug_mode() |
|
137 | - { |
|
138 | - return (bool) $this->get('PMD_debug_mode'); |
|
139 | - } |
|
140 | - |
|
141 | - |
|
142 | - /** |
|
143 | - * Sets debug_mode |
|
144 | - * |
|
145 | - * @param boolean $debug_mode |
|
146 | - */ |
|
147 | - public function set_debug_mode($debug_mode) |
|
148 | - { |
|
149 | - $this->set('PMD_debug_mode', $debug_mode); |
|
150 | - } |
|
151 | - |
|
152 | - |
|
153 | - /** |
|
154 | - * Gets description |
|
155 | - * |
|
156 | - * @return string |
|
157 | - */ |
|
158 | - public function description() |
|
159 | - { |
|
160 | - return $this->get('PMD_desc'); |
|
161 | - } |
|
162 | - |
|
163 | - |
|
164 | - /** |
|
165 | - * Sets description |
|
166 | - * |
|
167 | - * @param string $description |
|
168 | - */ |
|
169 | - public function set_description($description) |
|
170 | - { |
|
171 | - $this->set('PMD_desc', $description); |
|
172 | - } |
|
173 | - |
|
174 | - |
|
175 | - /** |
|
176 | - * Gets name |
|
177 | - * |
|
178 | - * @return string |
|
179 | - */ |
|
180 | - public function name() |
|
181 | - { |
|
182 | - return $this->get('PMD_name'); |
|
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - /** |
|
187 | - * Sets name |
|
188 | - * |
|
189 | - * @param string $name |
|
190 | - */ |
|
191 | - public function set_name($name) |
|
192 | - { |
|
193 | - $this->set('PMD_name', $name); |
|
194 | - } |
|
195 | - |
|
196 | - |
|
197 | - /** |
|
198 | - * Gets open_by_default |
|
199 | - * |
|
200 | - * @return boolean |
|
201 | - */ |
|
202 | - public function open_by_default() |
|
203 | - { |
|
204 | - return $this->get('PMD_open_by_default'); |
|
205 | - } |
|
206 | - |
|
207 | - |
|
208 | - /** |
|
209 | - * Sets open_by_default |
|
210 | - * |
|
211 | - * @param boolean $open_by_default |
|
212 | - */ |
|
213 | - public function set_open_by_default($open_by_default) |
|
214 | - { |
|
215 | - $this->set('PMD_open_by_default', $open_by_default); |
|
216 | - } |
|
217 | - |
|
218 | - |
|
219 | - /** |
|
220 | - * Gets order |
|
221 | - * |
|
222 | - * @return int |
|
223 | - */ |
|
224 | - public function order() |
|
225 | - { |
|
226 | - return $this->get('PMD_order'); |
|
227 | - } |
|
228 | - |
|
229 | - |
|
230 | - /** |
|
231 | - * Sets order |
|
232 | - * |
|
233 | - * @param int $order |
|
234 | - */ |
|
235 | - public function set_order($order) |
|
236 | - { |
|
237 | - $this->set('PMD_order', $order); |
|
238 | - } |
|
239 | - |
|
240 | - |
|
241 | - /** |
|
242 | - * Gets slug |
|
243 | - * |
|
244 | - * @return string |
|
245 | - */ |
|
246 | - public function slug() |
|
247 | - { |
|
248 | - return $this->get('PMD_slug'); |
|
249 | - } |
|
250 | - |
|
251 | - |
|
252 | - /** |
|
253 | - * Sets slug |
|
254 | - * |
|
255 | - * @param string $slug |
|
256 | - */ |
|
257 | - public function set_slug($slug) |
|
258 | - { |
|
259 | - $this->set('PMD_slug', $slug); |
|
260 | - } |
|
261 | - |
|
262 | - |
|
263 | - /** |
|
264 | - * Gets type |
|
265 | - * |
|
266 | - * @return string |
|
267 | - */ |
|
268 | - public function type() |
|
269 | - { |
|
270 | - return $this->get('PMD_type'); |
|
271 | - } |
|
272 | - |
|
273 | - |
|
274 | - /** |
|
275 | - * Sets type |
|
276 | - * |
|
277 | - * @param string $type |
|
278 | - */ |
|
279 | - public function set_type($type) |
|
280 | - { |
|
281 | - $this->set('PMD_type', $type); |
|
282 | - } |
|
283 | - |
|
284 | - |
|
285 | - /** |
|
286 | - * Gets wp_user |
|
287 | - * |
|
288 | - * @return int |
|
289 | - */ |
|
290 | - public function wp_user() |
|
291 | - { |
|
292 | - return $this->get('PMD_wp_user'); |
|
293 | - } |
|
294 | - |
|
295 | - |
|
296 | - /** |
|
297 | - * Sets wp_user |
|
298 | - * |
|
299 | - * @param int $wp_user_id |
|
300 | - */ |
|
301 | - public function set_wp_user($wp_user_id) |
|
302 | - { |
|
303 | - $this->set('PMD_wp_user', $wp_user_id); |
|
304 | - } |
|
305 | - |
|
306 | - /** |
|
307 | - * Overrides parent so when PMD_type is changed we refresh the _type_obj |
|
308 | - * |
|
309 | - * @param string $field_name |
|
310 | - * @param mixed $field_value |
|
311 | - * @param boolean $use_default |
|
312 | - */ |
|
313 | - public function set($field_name, $field_value, $use_default = false) |
|
314 | - { |
|
315 | - if ($field_name === 'PMD_type') { |
|
316 | - // the type has probably changed, so forget about its old type object |
|
317 | - $this->_type_obj = null; |
|
318 | - } |
|
319 | - parent::set($field_name, $field_value, $use_default); |
|
320 | - } |
|
321 | - |
|
322 | - |
|
323 | - /** |
|
324 | - * Gets admin_name |
|
325 | - * |
|
326 | - * @return string |
|
327 | - */ |
|
328 | - public function admin_name() |
|
329 | - { |
|
330 | - return $this->get('PMD_admin_name'); |
|
331 | - } |
|
332 | - |
|
333 | - |
|
334 | - /** |
|
335 | - * Sets admin_name |
|
336 | - * |
|
337 | - * @param string $admin_name |
|
338 | - */ |
|
339 | - public function set_admin_name($admin_name) |
|
340 | - { |
|
341 | - $this->set('PMD_admin_name', $admin_name); |
|
342 | - } |
|
343 | - |
|
344 | - |
|
345 | - /** |
|
346 | - * Gets admin_desc |
|
347 | - * |
|
348 | - * @return string |
|
349 | - */ |
|
350 | - public function admin_desc() |
|
351 | - { |
|
352 | - return $this->get('PMD_admin_desc'); |
|
353 | - } |
|
354 | - |
|
355 | - |
|
356 | - /** |
|
357 | - * Sets admin_desc |
|
358 | - * |
|
359 | - * @param string $admin_desc |
|
360 | - */ |
|
361 | - public function set_admin_desc($admin_desc) |
|
362 | - { |
|
363 | - $this->set('PMD_admin_desc', $admin_desc); |
|
364 | - } |
|
365 | - |
|
366 | - |
|
367 | - /** |
|
368 | - * Gets scope |
|
369 | - * |
|
370 | - * @return array |
|
371 | - */ |
|
372 | - public function scope() |
|
373 | - { |
|
374 | - return $this->get('PMD_scope'); |
|
375 | - } |
|
376 | - |
|
377 | - |
|
378 | - /** |
|
379 | - * Sets scope |
|
380 | - * |
|
381 | - * @param array $scope |
|
382 | - */ |
|
383 | - public function set_scope($scope) |
|
384 | - { |
|
385 | - $this->set('PMD_scope', $scope); |
|
386 | - } |
|
387 | - |
|
388 | - |
|
389 | - /** |
|
390 | - * Gets the payment method type for this payment method instance |
|
391 | - * |
|
392 | - * @return EE_PMT_Base |
|
393 | - * @throws EE_Error |
|
394 | - */ |
|
395 | - public function type_obj() |
|
396 | - { |
|
397 | - if (! $this->_type_obj) { |
|
398 | - EE_Registry::instance()->load_lib('Payment_Method_Manager'); |
|
399 | - if (EE_Payment_Method_Manager::instance()->payment_method_type_exists($this->type())) { |
|
400 | - $class_name = EE_Payment_Method_Manager::instance()->payment_method_class_from_type($this->type()); |
|
401 | - if (! class_exists($class_name)) { |
|
402 | - throw new EE_Error( |
|
403 | - sprintf( |
|
404 | - esc_html__( |
|
405 | - 'An attempt to use the "%1$s" payment method failed, so it was deactivated.%2$sWas the "%1$s" Plugin recently deactivated? It can be reactivated on the %3$sPlugins Admin Page%4$s', |
|
406 | - 'event_espresso' |
|
407 | - ), |
|
408 | - $class_name, |
|
409 | - '<br />', |
|
410 | - '<a href="' . admin_url('plugins.php') . '">', |
|
411 | - '</a>' |
|
412 | - ) |
|
413 | - ); |
|
414 | - } |
|
415 | - $r = new ReflectionClass($class_name); |
|
416 | - $this->_type_obj = $r->newInstanceArgs(array($this)); |
|
417 | - } else { |
|
418 | - throw new EE_Error( |
|
419 | - sprintf( |
|
420 | - esc_html__( |
|
421 | - 'A payment method of type "%1$s" does not exist. Only ones existing are: %2$s', |
|
422 | - 'event_espresso' |
|
423 | - ), |
|
424 | - $this->type(), |
|
425 | - implode(',', EE_Payment_Method_Manager::instance()->payment_method_type_names()) |
|
426 | - ) |
|
427 | - ); |
|
428 | - } |
|
429 | - } |
|
430 | - return $this->_type_obj; |
|
431 | - } |
|
432 | - |
|
433 | - |
|
434 | - /** |
|
435 | - * Returns a simple array of key-value pairs combining the payment method's fields (without the 'PMD_' prefix) |
|
436 | - * and the extra meta. Mostly used for passing off ot gateways. * |
|
437 | - * |
|
438 | - * @return array |
|
439 | - */ |
|
440 | - public function settings_array() |
|
441 | - { |
|
442 | - $fields = $this->model_field_array(); |
|
443 | - $extra_meta = $this->all_extra_meta_array(); |
|
444 | - // remove the model's prefix from the fields |
|
445 | - $combined_settings_array = array(); |
|
446 | - foreach ($fields as $key => $value) { |
|
447 | - if (strpos($key, 'PMD_') === 0) { |
|
448 | - $key_sans_model_prefix = str_replace('PMD_', '', $key); |
|
449 | - $combined_settings_array [ $key_sans_model_prefix ] = $value; |
|
450 | - } |
|
451 | - } |
|
452 | - $combined_settings_array = array_merge($extra_meta, $combined_settings_array); |
|
453 | - return $combined_settings_array; |
|
454 | - } |
|
455 | - |
|
456 | - |
|
457 | - /** |
|
458 | - * Gets the HTML for displaying the payment method on a page. |
|
459 | - * |
|
460 | - * @param string $url |
|
461 | - * @param string $css_class |
|
462 | - * @return string of HTML for displaying the button |
|
463 | - * @throws \EE_Error |
|
464 | - */ |
|
465 | - public function button_html($url = '', $css_class = '') |
|
466 | - { |
|
467 | - $payment_occurs = $this->type_obj()->payment_occurs(); |
|
468 | - return ' |
|
17 | + /** |
|
18 | + * Payment Method type object, which has all the info about this type of payment method, |
|
19 | + * including functions for processing payments, to get settings forms, etc. |
|
20 | + * |
|
21 | + * @var EE_PMT_Base |
|
22 | + */ |
|
23 | + protected $_type_obj; |
|
24 | + |
|
25 | + |
|
26 | + /** |
|
27 | + * @param array $props_n_values |
|
28 | + * @return EE_Payment_Method |
|
29 | + * @throws \EE_Error |
|
30 | + */ |
|
31 | + public static function new_instance($props_n_values = array()) |
|
32 | + { |
|
33 | + $has_object = parent::_check_for_object($props_n_values, __CLASS__); |
|
34 | + return $has_object ? $has_object : new self($props_n_values, false); |
|
35 | + } |
|
36 | + |
|
37 | + |
|
38 | + /** |
|
39 | + * @param array $props_n_values |
|
40 | + * @return EE_Payment_Method |
|
41 | + * @throws \EE_Error |
|
42 | + */ |
|
43 | + public static function new_instance_from_db($props_n_values = array()) |
|
44 | + { |
|
45 | + return new self($props_n_values, true); |
|
46 | + } |
|
47 | + |
|
48 | + |
|
49 | + |
|
50 | + /** |
|
51 | + * Checks if there is a payment method class of the given 'PMD_type', and if so returns the classname. |
|
52 | + * Otherwise returns a normal EE_Payment_Method |
|
53 | + * |
|
54 | + * @param array $props_n_values where 'PMD_type' is a gateway name like 'Paypal_Standard','Invoice',etc (basically |
|
55 | + * the classname minus 'EEPM_') |
|
56 | + * @return string |
|
57 | + */ |
|
58 | + // private static function _payment_method_type($props_n_values) |
|
59 | + // { |
|
60 | + // EE_Registry::instance()->load_lib('Payment_Method_Manager'); |
|
61 | + // $type_string = isset($props_n_values['PMD_type']) ? $props_n_values['PMD_type'] : null; |
|
62 | + // if (EE_Payment_Method_Manager::instance()->payment_method_type_exists($type_string)) { |
|
63 | + // return 'EEPM_' . $type_string; |
|
64 | + // } else { |
|
65 | + // return __CLASS__; |
|
66 | + // } |
|
67 | + // } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * Gets whether this payment method can be used anywhere at all (ie frontend cart, admin, etc) |
|
72 | + * |
|
73 | + * @return boolean |
|
74 | + */ |
|
75 | + public function active() |
|
76 | + { |
|
77 | + return array_intersect(array_keys(EEM_Payment_Method::instance()->scopes()), $this->scope()); |
|
78 | + } |
|
79 | + |
|
80 | + |
|
81 | + /** |
|
82 | + * Sets this PM as active by making it usable within the CART scope. Offline gateways |
|
83 | + * are also usable from the admin-scope as well. DOES NOT SAVE it |
|
84 | + * |
|
85 | + * @throws \EE_Error |
|
86 | + */ |
|
87 | + public function set_active() |
|
88 | + { |
|
89 | + $default_scopes = array(EEM_Payment_Method::scope_cart); |
|
90 | + if ( |
|
91 | + $this->type_obj() && |
|
92 | + $this->type_obj()->payment_occurs() === EE_PMT_Base::offline |
|
93 | + ) { |
|
94 | + $default_scopes[] = EEM_Payment_Method::scope_admin; |
|
95 | + } |
|
96 | + $this->set_scope($default_scopes); |
|
97 | + } |
|
98 | + |
|
99 | + |
|
100 | + /** |
|
101 | + * Makes this payment method apply to NO scopes at all. DOES NOT SAVE it. |
|
102 | + */ |
|
103 | + public function deactivate() |
|
104 | + { |
|
105 | + $this->set_scope(array()); |
|
106 | + } |
|
107 | + |
|
108 | + |
|
109 | + /** |
|
110 | + * Gets button_url |
|
111 | + * |
|
112 | + * @return string |
|
113 | + */ |
|
114 | + public function button_url() |
|
115 | + { |
|
116 | + return $this->get('PMD_button_url'); |
|
117 | + } |
|
118 | + |
|
119 | + |
|
120 | + /** |
|
121 | + * Sets button_url |
|
122 | + * |
|
123 | + * @param string $button_url |
|
124 | + */ |
|
125 | + public function set_button_url($button_url) |
|
126 | + { |
|
127 | + $this->set('PMD_button_url', $button_url); |
|
128 | + } |
|
129 | + |
|
130 | + |
|
131 | + /** |
|
132 | + * Gets debug_mode |
|
133 | + * |
|
134 | + * @return boolean |
|
135 | + */ |
|
136 | + public function debug_mode() |
|
137 | + { |
|
138 | + return (bool) $this->get('PMD_debug_mode'); |
|
139 | + } |
|
140 | + |
|
141 | + |
|
142 | + /** |
|
143 | + * Sets debug_mode |
|
144 | + * |
|
145 | + * @param boolean $debug_mode |
|
146 | + */ |
|
147 | + public function set_debug_mode($debug_mode) |
|
148 | + { |
|
149 | + $this->set('PMD_debug_mode', $debug_mode); |
|
150 | + } |
|
151 | + |
|
152 | + |
|
153 | + /** |
|
154 | + * Gets description |
|
155 | + * |
|
156 | + * @return string |
|
157 | + */ |
|
158 | + public function description() |
|
159 | + { |
|
160 | + return $this->get('PMD_desc'); |
|
161 | + } |
|
162 | + |
|
163 | + |
|
164 | + /** |
|
165 | + * Sets description |
|
166 | + * |
|
167 | + * @param string $description |
|
168 | + */ |
|
169 | + public function set_description($description) |
|
170 | + { |
|
171 | + $this->set('PMD_desc', $description); |
|
172 | + } |
|
173 | + |
|
174 | + |
|
175 | + /** |
|
176 | + * Gets name |
|
177 | + * |
|
178 | + * @return string |
|
179 | + */ |
|
180 | + public function name() |
|
181 | + { |
|
182 | + return $this->get('PMD_name'); |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + /** |
|
187 | + * Sets name |
|
188 | + * |
|
189 | + * @param string $name |
|
190 | + */ |
|
191 | + public function set_name($name) |
|
192 | + { |
|
193 | + $this->set('PMD_name', $name); |
|
194 | + } |
|
195 | + |
|
196 | + |
|
197 | + /** |
|
198 | + * Gets open_by_default |
|
199 | + * |
|
200 | + * @return boolean |
|
201 | + */ |
|
202 | + public function open_by_default() |
|
203 | + { |
|
204 | + return $this->get('PMD_open_by_default'); |
|
205 | + } |
|
206 | + |
|
207 | + |
|
208 | + /** |
|
209 | + * Sets open_by_default |
|
210 | + * |
|
211 | + * @param boolean $open_by_default |
|
212 | + */ |
|
213 | + public function set_open_by_default($open_by_default) |
|
214 | + { |
|
215 | + $this->set('PMD_open_by_default', $open_by_default); |
|
216 | + } |
|
217 | + |
|
218 | + |
|
219 | + /** |
|
220 | + * Gets order |
|
221 | + * |
|
222 | + * @return int |
|
223 | + */ |
|
224 | + public function order() |
|
225 | + { |
|
226 | + return $this->get('PMD_order'); |
|
227 | + } |
|
228 | + |
|
229 | + |
|
230 | + /** |
|
231 | + * Sets order |
|
232 | + * |
|
233 | + * @param int $order |
|
234 | + */ |
|
235 | + public function set_order($order) |
|
236 | + { |
|
237 | + $this->set('PMD_order', $order); |
|
238 | + } |
|
239 | + |
|
240 | + |
|
241 | + /** |
|
242 | + * Gets slug |
|
243 | + * |
|
244 | + * @return string |
|
245 | + */ |
|
246 | + public function slug() |
|
247 | + { |
|
248 | + return $this->get('PMD_slug'); |
|
249 | + } |
|
250 | + |
|
251 | + |
|
252 | + /** |
|
253 | + * Sets slug |
|
254 | + * |
|
255 | + * @param string $slug |
|
256 | + */ |
|
257 | + public function set_slug($slug) |
|
258 | + { |
|
259 | + $this->set('PMD_slug', $slug); |
|
260 | + } |
|
261 | + |
|
262 | + |
|
263 | + /** |
|
264 | + * Gets type |
|
265 | + * |
|
266 | + * @return string |
|
267 | + */ |
|
268 | + public function type() |
|
269 | + { |
|
270 | + return $this->get('PMD_type'); |
|
271 | + } |
|
272 | + |
|
273 | + |
|
274 | + /** |
|
275 | + * Sets type |
|
276 | + * |
|
277 | + * @param string $type |
|
278 | + */ |
|
279 | + public function set_type($type) |
|
280 | + { |
|
281 | + $this->set('PMD_type', $type); |
|
282 | + } |
|
283 | + |
|
284 | + |
|
285 | + /** |
|
286 | + * Gets wp_user |
|
287 | + * |
|
288 | + * @return int |
|
289 | + */ |
|
290 | + public function wp_user() |
|
291 | + { |
|
292 | + return $this->get('PMD_wp_user'); |
|
293 | + } |
|
294 | + |
|
295 | + |
|
296 | + /** |
|
297 | + * Sets wp_user |
|
298 | + * |
|
299 | + * @param int $wp_user_id |
|
300 | + */ |
|
301 | + public function set_wp_user($wp_user_id) |
|
302 | + { |
|
303 | + $this->set('PMD_wp_user', $wp_user_id); |
|
304 | + } |
|
305 | + |
|
306 | + /** |
|
307 | + * Overrides parent so when PMD_type is changed we refresh the _type_obj |
|
308 | + * |
|
309 | + * @param string $field_name |
|
310 | + * @param mixed $field_value |
|
311 | + * @param boolean $use_default |
|
312 | + */ |
|
313 | + public function set($field_name, $field_value, $use_default = false) |
|
314 | + { |
|
315 | + if ($field_name === 'PMD_type') { |
|
316 | + // the type has probably changed, so forget about its old type object |
|
317 | + $this->_type_obj = null; |
|
318 | + } |
|
319 | + parent::set($field_name, $field_value, $use_default); |
|
320 | + } |
|
321 | + |
|
322 | + |
|
323 | + /** |
|
324 | + * Gets admin_name |
|
325 | + * |
|
326 | + * @return string |
|
327 | + */ |
|
328 | + public function admin_name() |
|
329 | + { |
|
330 | + return $this->get('PMD_admin_name'); |
|
331 | + } |
|
332 | + |
|
333 | + |
|
334 | + /** |
|
335 | + * Sets admin_name |
|
336 | + * |
|
337 | + * @param string $admin_name |
|
338 | + */ |
|
339 | + public function set_admin_name($admin_name) |
|
340 | + { |
|
341 | + $this->set('PMD_admin_name', $admin_name); |
|
342 | + } |
|
343 | + |
|
344 | + |
|
345 | + /** |
|
346 | + * Gets admin_desc |
|
347 | + * |
|
348 | + * @return string |
|
349 | + */ |
|
350 | + public function admin_desc() |
|
351 | + { |
|
352 | + return $this->get('PMD_admin_desc'); |
|
353 | + } |
|
354 | + |
|
355 | + |
|
356 | + /** |
|
357 | + * Sets admin_desc |
|
358 | + * |
|
359 | + * @param string $admin_desc |
|
360 | + */ |
|
361 | + public function set_admin_desc($admin_desc) |
|
362 | + { |
|
363 | + $this->set('PMD_admin_desc', $admin_desc); |
|
364 | + } |
|
365 | + |
|
366 | + |
|
367 | + /** |
|
368 | + * Gets scope |
|
369 | + * |
|
370 | + * @return array |
|
371 | + */ |
|
372 | + public function scope() |
|
373 | + { |
|
374 | + return $this->get('PMD_scope'); |
|
375 | + } |
|
376 | + |
|
377 | + |
|
378 | + /** |
|
379 | + * Sets scope |
|
380 | + * |
|
381 | + * @param array $scope |
|
382 | + */ |
|
383 | + public function set_scope($scope) |
|
384 | + { |
|
385 | + $this->set('PMD_scope', $scope); |
|
386 | + } |
|
387 | + |
|
388 | + |
|
389 | + /** |
|
390 | + * Gets the payment method type for this payment method instance |
|
391 | + * |
|
392 | + * @return EE_PMT_Base |
|
393 | + * @throws EE_Error |
|
394 | + */ |
|
395 | + public function type_obj() |
|
396 | + { |
|
397 | + if (! $this->_type_obj) { |
|
398 | + EE_Registry::instance()->load_lib('Payment_Method_Manager'); |
|
399 | + if (EE_Payment_Method_Manager::instance()->payment_method_type_exists($this->type())) { |
|
400 | + $class_name = EE_Payment_Method_Manager::instance()->payment_method_class_from_type($this->type()); |
|
401 | + if (! class_exists($class_name)) { |
|
402 | + throw new EE_Error( |
|
403 | + sprintf( |
|
404 | + esc_html__( |
|
405 | + 'An attempt to use the "%1$s" payment method failed, so it was deactivated.%2$sWas the "%1$s" Plugin recently deactivated? It can be reactivated on the %3$sPlugins Admin Page%4$s', |
|
406 | + 'event_espresso' |
|
407 | + ), |
|
408 | + $class_name, |
|
409 | + '<br />', |
|
410 | + '<a href="' . admin_url('plugins.php') . '">', |
|
411 | + '</a>' |
|
412 | + ) |
|
413 | + ); |
|
414 | + } |
|
415 | + $r = new ReflectionClass($class_name); |
|
416 | + $this->_type_obj = $r->newInstanceArgs(array($this)); |
|
417 | + } else { |
|
418 | + throw new EE_Error( |
|
419 | + sprintf( |
|
420 | + esc_html__( |
|
421 | + 'A payment method of type "%1$s" does not exist. Only ones existing are: %2$s', |
|
422 | + 'event_espresso' |
|
423 | + ), |
|
424 | + $this->type(), |
|
425 | + implode(',', EE_Payment_Method_Manager::instance()->payment_method_type_names()) |
|
426 | + ) |
|
427 | + ); |
|
428 | + } |
|
429 | + } |
|
430 | + return $this->_type_obj; |
|
431 | + } |
|
432 | + |
|
433 | + |
|
434 | + /** |
|
435 | + * Returns a simple array of key-value pairs combining the payment method's fields (without the 'PMD_' prefix) |
|
436 | + * and the extra meta. Mostly used for passing off ot gateways. * |
|
437 | + * |
|
438 | + * @return array |
|
439 | + */ |
|
440 | + public function settings_array() |
|
441 | + { |
|
442 | + $fields = $this->model_field_array(); |
|
443 | + $extra_meta = $this->all_extra_meta_array(); |
|
444 | + // remove the model's prefix from the fields |
|
445 | + $combined_settings_array = array(); |
|
446 | + foreach ($fields as $key => $value) { |
|
447 | + if (strpos($key, 'PMD_') === 0) { |
|
448 | + $key_sans_model_prefix = str_replace('PMD_', '', $key); |
|
449 | + $combined_settings_array [ $key_sans_model_prefix ] = $value; |
|
450 | + } |
|
451 | + } |
|
452 | + $combined_settings_array = array_merge($extra_meta, $combined_settings_array); |
|
453 | + return $combined_settings_array; |
|
454 | + } |
|
455 | + |
|
456 | + |
|
457 | + /** |
|
458 | + * Gets the HTML for displaying the payment method on a page. |
|
459 | + * |
|
460 | + * @param string $url |
|
461 | + * @param string $css_class |
|
462 | + * @return string of HTML for displaying the button |
|
463 | + * @throws \EE_Error |
|
464 | + */ |
|
465 | + public function button_html($url = '', $css_class = '') |
|
466 | + { |
|
467 | + $payment_occurs = $this->type_obj()->payment_occurs(); |
|
468 | + return ' |
|
469 | 469 | <div id="' |
470 | - . $this->slug() |
|
471 | - . '-payment-option-dv" class="' |
|
472 | - . $payment_occurs . '-payment-gateway reg-page-payment-option-dv' . $css_class . '"> |
|
470 | + . $this->slug() |
|
471 | + . '-payment-option-dv" class="' |
|
472 | + . $payment_occurs . '-payment-gateway reg-page-payment-option-dv' . $css_class . '"> |
|
473 | 473 | <a id="payment-gateway-button-' . $this->slug() |
474 | - . '" class="reg-page-payment-option-lnk" rel="' |
|
475 | - . $this->slug() . '" href="' . $url . '" > |
|
474 | + . '" class="reg-page-payment-option-lnk" rel="' |
|
475 | + . $this->slug() . '" href="' . $url . '" > |
|
476 | 476 | <img src="' . $this->button_url() . '" alt="' . sprintf( |
477 | - esc_attr__('Pay using %s', 'event_espresso'), |
|
478 | - $this->get_pretty('PMD_name', 'form_input') |
|
479 | - ) . '" /> |
|
477 | + esc_attr__('Pay using %s', 'event_espresso'), |
|
478 | + $this->get_pretty('PMD_name', 'form_input') |
|
479 | + ) . '" /> |
|
480 | 480 | </a> |
481 | 481 | </div> |
482 | 482 | '; |
483 | - } |
|
484 | - |
|
485 | - |
|
486 | - /** |
|
487 | - * Gets all the currencies which are an option for this payment method |
|
488 | - * (as defined by the gateway and the currently active currencies) |
|
489 | - * |
|
490 | - * @return EE_Currency[] |
|
491 | - * @throws \EE_Error |
|
492 | - */ |
|
493 | - public function get_all_usable_currencies() |
|
494 | - { |
|
495 | - return EEM_Currency::instance()->get_all_currencies_usable_by($this->type_obj()); |
|
496 | - } |
|
497 | - |
|
498 | - |
|
499 | - /** |
|
500 | - * Reports whether or not this payment method can be used for this payment method |
|
501 | - * |
|
502 | - * @param string $currency_code currency ID (code) |
|
503 | - * @return boolean |
|
504 | - * @throws \EE_Error |
|
505 | - */ |
|
506 | - public function usable_for_currency($currency_code) |
|
507 | - { |
|
508 | - foreach ($this->get_all_usable_currencies() as $currency_obj) { |
|
509 | - if ($currency_obj->ID() === $currency_code) { |
|
510 | - return true; |
|
511 | - } |
|
512 | - } |
|
513 | - return false; |
|
514 | - } |
|
515 | - |
|
516 | - |
|
517 | - /** |
|
518 | - * Returns TRUE if this payment method's gateway is an instance of EE_Onsite_Gateway |
|
519 | - * |
|
520 | - * @return bool |
|
521 | - * @throws \EE_Error |
|
522 | - */ |
|
523 | - public function is_on_site() |
|
524 | - { |
|
525 | - return $this->type_obj()->payment_occurs() === EE_PMT_Base::onsite; |
|
526 | - } |
|
527 | - |
|
528 | - |
|
529 | - /** |
|
530 | - * Returns TRUE if this payment method's gateway is an instance of EE_Offsite_Gateway |
|
531 | - * |
|
532 | - * @return bool |
|
533 | - * @throws \EE_Error |
|
534 | - */ |
|
535 | - public function is_off_site() |
|
536 | - { |
|
537 | - return $this->type_obj()->payment_occurs() === EE_PMT_Base::offsite; |
|
538 | - } |
|
539 | - |
|
540 | - |
|
541 | - /** |
|
542 | - * Returns TRUE if this payment method does not utilize a gateway |
|
543 | - * |
|
544 | - * @return bool |
|
545 | - * @throws \EE_Error |
|
546 | - */ |
|
547 | - public function is_off_line() |
|
548 | - { |
|
549 | - return $this->type_obj()->payment_occurs() === EE_PMT_Base::offline; |
|
550 | - } |
|
551 | - |
|
552 | - /** |
|
553 | - * Overrides default __sleep so the object type is NOT cached. |
|
554 | - * This way we can rely on the normal EE_Payment_Method::type_obj() logic |
|
555 | - * to load the required classes, and don't need them at the time of unserialization |
|
556 | - * |
|
557 | - * @return array |
|
558 | - */ |
|
559 | - public function __sleep() |
|
560 | - { |
|
561 | - $properties = get_object_vars($this); |
|
562 | - unset($properties['_type_obj']); |
|
563 | - return array_keys($properties); |
|
564 | - } |
|
565 | - |
|
566 | - |
|
567 | - /** |
|
568 | - * Overrides parent to add some logging for when payment methods get deactivated |
|
569 | - * |
|
570 | - * @param array $set_cols_n_values |
|
571 | - * @return int @see EE_Base_Class::save() |
|
572 | - * @throws \EE_Error |
|
573 | - */ |
|
574 | - public function save($set_cols_n_values = array()) |
|
575 | - { |
|
576 | - $results = parent::save($set_cols_n_values); |
|
577 | - if ($this->get_original('PMD_scope') !== $this->get('PMD_scope')) { |
|
578 | - /** @var CurrentPage $current_page */ |
|
579 | - $current_page = LoaderFactory::getLoader()->getShared(CurrentPage::class); |
|
580 | - EE_Log::instance()->log( |
|
581 | - __FILE__, |
|
582 | - __FUNCTION__, |
|
583 | - sprintf( |
|
584 | - esc_html__('Set new scope on payment method %1$s to %2$s from %3$s on URL %4$s', 'event_espresso'), |
|
585 | - $this->name(), |
|
586 | - serialize($this->get_original('PMD_scope')), |
|
587 | - serialize($this->get('PMD_scope')), |
|
588 | - $current_page->getPermalink() |
|
589 | - ), |
|
590 | - 'payment_method_change' |
|
591 | - ); |
|
592 | - } |
|
593 | - return $results; |
|
594 | - } |
|
483 | + } |
|
484 | + |
|
485 | + |
|
486 | + /** |
|
487 | + * Gets all the currencies which are an option for this payment method |
|
488 | + * (as defined by the gateway and the currently active currencies) |
|
489 | + * |
|
490 | + * @return EE_Currency[] |
|
491 | + * @throws \EE_Error |
|
492 | + */ |
|
493 | + public function get_all_usable_currencies() |
|
494 | + { |
|
495 | + return EEM_Currency::instance()->get_all_currencies_usable_by($this->type_obj()); |
|
496 | + } |
|
497 | + |
|
498 | + |
|
499 | + /** |
|
500 | + * Reports whether or not this payment method can be used for this payment method |
|
501 | + * |
|
502 | + * @param string $currency_code currency ID (code) |
|
503 | + * @return boolean |
|
504 | + * @throws \EE_Error |
|
505 | + */ |
|
506 | + public function usable_for_currency($currency_code) |
|
507 | + { |
|
508 | + foreach ($this->get_all_usable_currencies() as $currency_obj) { |
|
509 | + if ($currency_obj->ID() === $currency_code) { |
|
510 | + return true; |
|
511 | + } |
|
512 | + } |
|
513 | + return false; |
|
514 | + } |
|
515 | + |
|
516 | + |
|
517 | + /** |
|
518 | + * Returns TRUE if this payment method's gateway is an instance of EE_Onsite_Gateway |
|
519 | + * |
|
520 | + * @return bool |
|
521 | + * @throws \EE_Error |
|
522 | + */ |
|
523 | + public function is_on_site() |
|
524 | + { |
|
525 | + return $this->type_obj()->payment_occurs() === EE_PMT_Base::onsite; |
|
526 | + } |
|
527 | + |
|
528 | + |
|
529 | + /** |
|
530 | + * Returns TRUE if this payment method's gateway is an instance of EE_Offsite_Gateway |
|
531 | + * |
|
532 | + * @return bool |
|
533 | + * @throws \EE_Error |
|
534 | + */ |
|
535 | + public function is_off_site() |
|
536 | + { |
|
537 | + return $this->type_obj()->payment_occurs() === EE_PMT_Base::offsite; |
|
538 | + } |
|
539 | + |
|
540 | + |
|
541 | + /** |
|
542 | + * Returns TRUE if this payment method does not utilize a gateway |
|
543 | + * |
|
544 | + * @return bool |
|
545 | + * @throws \EE_Error |
|
546 | + */ |
|
547 | + public function is_off_line() |
|
548 | + { |
|
549 | + return $this->type_obj()->payment_occurs() === EE_PMT_Base::offline; |
|
550 | + } |
|
551 | + |
|
552 | + /** |
|
553 | + * Overrides default __sleep so the object type is NOT cached. |
|
554 | + * This way we can rely on the normal EE_Payment_Method::type_obj() logic |
|
555 | + * to load the required classes, and don't need them at the time of unserialization |
|
556 | + * |
|
557 | + * @return array |
|
558 | + */ |
|
559 | + public function __sleep() |
|
560 | + { |
|
561 | + $properties = get_object_vars($this); |
|
562 | + unset($properties['_type_obj']); |
|
563 | + return array_keys($properties); |
|
564 | + } |
|
565 | + |
|
566 | + |
|
567 | + /** |
|
568 | + * Overrides parent to add some logging for when payment methods get deactivated |
|
569 | + * |
|
570 | + * @param array $set_cols_n_values |
|
571 | + * @return int @see EE_Base_Class::save() |
|
572 | + * @throws \EE_Error |
|
573 | + */ |
|
574 | + public function save($set_cols_n_values = array()) |
|
575 | + { |
|
576 | + $results = parent::save($set_cols_n_values); |
|
577 | + if ($this->get_original('PMD_scope') !== $this->get('PMD_scope')) { |
|
578 | + /** @var CurrentPage $current_page */ |
|
579 | + $current_page = LoaderFactory::getLoader()->getShared(CurrentPage::class); |
|
580 | + EE_Log::instance()->log( |
|
581 | + __FILE__, |
|
582 | + __FUNCTION__, |
|
583 | + sprintf( |
|
584 | + esc_html__('Set new scope on payment method %1$s to %2$s from %3$s on URL %4$s', 'event_espresso'), |
|
585 | + $this->name(), |
|
586 | + serialize($this->get_original('PMD_scope')), |
|
587 | + serialize($this->get('PMD_scope')), |
|
588 | + $current_page->getPermalink() |
|
589 | + ), |
|
590 | + 'payment_method_change' |
|
591 | + ); |
|
592 | + } |
|
593 | + return $results; |
|
594 | + } |
|
595 | 595 | } |
@@ -14,204 +14,204 @@ |
||
14 | 14 | class EE_Billing_Attendee_Info_Form extends EE_Billing_Info_Form |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * |
|
19 | - * @param EE_Payment_Method $payment_method |
|
20 | - * @param array $options_array @see EE_Form_Section_Proper::__construct() |
|
21 | - * @throws EE_Error |
|
22 | - * @throws ReflectionException |
|
23 | - */ |
|
24 | - public function __construct(EE_Payment_Method $payment_method, $options_array = []) |
|
25 | - { |
|
26 | - $options_array['subsections'] = array_merge( |
|
27 | - [ |
|
28 | - 'first_name' => new EE_Text_Input([ |
|
29 | - 'required' => true, |
|
30 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-fname', |
|
31 | - 'html_label_text' => esc_html__('First Name', 'event_espresso'), |
|
32 | - ]), |
|
33 | - 'last_name' => new EE_Text_Input([ |
|
34 | - 'required' => true, |
|
35 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-lname', |
|
36 | - 'html_label_text' => esc_html__('Last Name', 'event_espresso'), |
|
37 | - ]), |
|
38 | - 'email' => new EE_Email_Input([ |
|
39 | - 'required' => true, |
|
40 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-email', |
|
41 | - 'html_label_text' => esc_html__('Email', 'event_espresso'), |
|
42 | - ]), |
|
43 | - 'address' => new EE_Text_Input([ |
|
44 | - 'html_label_text' => esc_html__('Address', 'event_espresso'), |
|
45 | - 'required' => true, |
|
46 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-address', |
|
47 | - ]), |
|
48 | - 'address2' => new EE_Text_Input([ |
|
49 | - 'html_label_text' => esc_html__('Address 2', 'event_espresso'), |
|
50 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-address2', |
|
51 | - ]), |
|
52 | - 'city' => new EE_Text_Input([ |
|
53 | - 'required' => true, |
|
54 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-city', |
|
55 | - 'html_label_text' => esc_html__('City', 'event_espresso'), |
|
56 | - ]), |
|
57 | - 'state' => apply_filters( |
|
58 | - 'FHEE__EE_Billing_Attendee_Info_Form__state_field', |
|
59 | - new EE_State_Select_Input(null, [ |
|
60 | - 'required' => true, |
|
61 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-state', |
|
62 | - 'html_label_text' => esc_html__('State', 'event_espresso'), |
|
63 | - ]) |
|
64 | - ), |
|
65 | - 'country' => apply_filters( |
|
66 | - 'FHEE__EE_Billing_Attendee_Info_Form__country_field', |
|
67 | - new EE_Country_Select_Input(null, [ |
|
68 | - 'required' => true, |
|
69 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-country', |
|
70 | - 'html_label_text' => esc_html__('Country', 'event_espresso'), |
|
71 | - ]) |
|
72 | - ), |
|
73 | - 'zip' => new EE_Text_Input([ |
|
74 | - 'required' => true, |
|
75 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-zip', |
|
76 | - 'html_label_text' => esc_html__('Zip', 'event_espresso'), |
|
77 | - ]), |
|
78 | - 'phone' => new EE_Text_Input([ |
|
79 | - 'html_class' => 'ee-billing-qstn ee-billing-qstn-phone', |
|
80 | - 'html_label_text' => esc_html__('Phone', 'event_espresso'), |
|
81 | - ]), |
|
82 | - ], |
|
83 | - $options_array['subsections'] ?? [] |
|
84 | - ); |
|
17 | + /** |
|
18 | + * |
|
19 | + * @param EE_Payment_Method $payment_method |
|
20 | + * @param array $options_array @see EE_Form_Section_Proper::__construct() |
|
21 | + * @throws EE_Error |
|
22 | + * @throws ReflectionException |
|
23 | + */ |
|
24 | + public function __construct(EE_Payment_Method $payment_method, $options_array = []) |
|
25 | + { |
|
26 | + $options_array['subsections'] = array_merge( |
|
27 | + [ |
|
28 | + 'first_name' => new EE_Text_Input([ |
|
29 | + 'required' => true, |
|
30 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-fname', |
|
31 | + 'html_label_text' => esc_html__('First Name', 'event_espresso'), |
|
32 | + ]), |
|
33 | + 'last_name' => new EE_Text_Input([ |
|
34 | + 'required' => true, |
|
35 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-lname', |
|
36 | + 'html_label_text' => esc_html__('Last Name', 'event_espresso'), |
|
37 | + ]), |
|
38 | + 'email' => new EE_Email_Input([ |
|
39 | + 'required' => true, |
|
40 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-email', |
|
41 | + 'html_label_text' => esc_html__('Email', 'event_espresso'), |
|
42 | + ]), |
|
43 | + 'address' => new EE_Text_Input([ |
|
44 | + 'html_label_text' => esc_html__('Address', 'event_espresso'), |
|
45 | + 'required' => true, |
|
46 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-address', |
|
47 | + ]), |
|
48 | + 'address2' => new EE_Text_Input([ |
|
49 | + 'html_label_text' => esc_html__('Address 2', 'event_espresso'), |
|
50 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-address2', |
|
51 | + ]), |
|
52 | + 'city' => new EE_Text_Input([ |
|
53 | + 'required' => true, |
|
54 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-city', |
|
55 | + 'html_label_text' => esc_html__('City', 'event_espresso'), |
|
56 | + ]), |
|
57 | + 'state' => apply_filters( |
|
58 | + 'FHEE__EE_Billing_Attendee_Info_Form__state_field', |
|
59 | + new EE_State_Select_Input(null, [ |
|
60 | + 'required' => true, |
|
61 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-state', |
|
62 | + 'html_label_text' => esc_html__('State', 'event_espresso'), |
|
63 | + ]) |
|
64 | + ), |
|
65 | + 'country' => apply_filters( |
|
66 | + 'FHEE__EE_Billing_Attendee_Info_Form__country_field', |
|
67 | + new EE_Country_Select_Input(null, [ |
|
68 | + 'required' => true, |
|
69 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-country', |
|
70 | + 'html_label_text' => esc_html__('Country', 'event_espresso'), |
|
71 | + ]) |
|
72 | + ), |
|
73 | + 'zip' => new EE_Text_Input([ |
|
74 | + 'required' => true, |
|
75 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-zip', |
|
76 | + 'html_label_text' => esc_html__('Zip', 'event_espresso'), |
|
77 | + ]), |
|
78 | + 'phone' => new EE_Text_Input([ |
|
79 | + 'html_class' => 'ee-billing-qstn ee-billing-qstn-phone', |
|
80 | + 'html_label_text' => esc_html__('Phone', 'event_espresso'), |
|
81 | + ]), |
|
82 | + ], |
|
83 | + $options_array['subsections'] ?? [] |
|
84 | + ); |
|
85 | 85 | |
86 | - parent::__construct($payment_method, $options_array); |
|
87 | - } |
|
86 | + parent::__construct($payment_method, $options_array); |
|
87 | + } |
|
88 | 88 | |
89 | 89 | |
90 | - /** |
|
91 | - * Sets the defaults for the billing form according to the attendee's details |
|
92 | - * |
|
93 | - * @param EE_Attendee $attendee |
|
94 | - * @throws EE_Error |
|
95 | - * @throws ReflectionException |
|
96 | - */ |
|
97 | - public function populate_from_attendee(EE_Attendee $attendee) |
|
98 | - { |
|
99 | - /** @var $attendee EE_Attendee */ |
|
100 | - $attendee = EEM_Attendee::instance()->ensure_is_obj($attendee); |
|
101 | - $this->populate_defaults( |
|
102 | - apply_filters( |
|
103 | - 'FHEE__EE_Billing_Attendee_Info_Form__populate_from_attendee', |
|
104 | - [ |
|
105 | - 'first_name' => $attendee->fname(), |
|
106 | - 'last_name' => $attendee->lname(), |
|
107 | - 'email' => $attendee->email(), |
|
108 | - 'address' => $attendee->address(), |
|
109 | - 'address2' => $attendee->address2(), |
|
110 | - 'city' => $attendee->city(), |
|
111 | - 'state' => $this->getAttendeeStateValueForForm($attendee), |
|
112 | - 'country' => $attendee->country_ID(), |
|
113 | - 'zip' => $attendee->zip(), |
|
114 | - 'phone' => $attendee->phone(), |
|
115 | - ], |
|
116 | - $attendee, |
|
117 | - $this |
|
118 | - ) |
|
119 | - ); |
|
120 | - } |
|
90 | + /** |
|
91 | + * Sets the defaults for the billing form according to the attendee's details |
|
92 | + * |
|
93 | + * @param EE_Attendee $attendee |
|
94 | + * @throws EE_Error |
|
95 | + * @throws ReflectionException |
|
96 | + */ |
|
97 | + public function populate_from_attendee(EE_Attendee $attendee) |
|
98 | + { |
|
99 | + /** @var $attendee EE_Attendee */ |
|
100 | + $attendee = EEM_Attendee::instance()->ensure_is_obj($attendee); |
|
101 | + $this->populate_defaults( |
|
102 | + apply_filters( |
|
103 | + 'FHEE__EE_Billing_Attendee_Info_Form__populate_from_attendee', |
|
104 | + [ |
|
105 | + 'first_name' => $attendee->fname(), |
|
106 | + 'last_name' => $attendee->lname(), |
|
107 | + 'email' => $attendee->email(), |
|
108 | + 'address' => $attendee->address(), |
|
109 | + 'address2' => $attendee->address2(), |
|
110 | + 'city' => $attendee->city(), |
|
111 | + 'state' => $this->getAttendeeStateValueForForm($attendee), |
|
112 | + 'country' => $attendee->country_ID(), |
|
113 | + 'zip' => $attendee->zip(), |
|
114 | + 'phone' => $attendee->phone(), |
|
115 | + ], |
|
116 | + $attendee, |
|
117 | + $this |
|
118 | + ) |
|
119 | + ); |
|
120 | + } |
|
121 | 121 | |
122 | 122 | |
123 | - /** |
|
124 | - * Gets the default value to use for the billing form's state value. |
|
125 | - * |
|
126 | - * @param EE_Attendee $attendee |
|
127 | - * @return string |
|
128 | - * @throws EE_Error |
|
129 | - * @since 4.10.0.p |
|
130 | - */ |
|
131 | - protected function getAttendeeStateValueForForm(EE_Attendee $attendee): string |
|
132 | - { |
|
133 | - // If the state input was removed, just return a blank string. |
|
134 | - if (! $this->has_subsection('state')) { |
|
135 | - return ''; |
|
136 | - } |
|
137 | - $state_input = $this->get_input('state', false); |
|
138 | - if ($state_input instanceof EE_State_Select_Input) { |
|
139 | - $state_field_to_use = $state_input->valueFieldName(); |
|
140 | - } else { |
|
141 | - $state_field_to_use = 'STA_ID'; |
|
142 | - } |
|
143 | - switch ($state_field_to_use) { |
|
144 | - case 'STA_abbrev': |
|
145 | - $state_value = $attendee->state_abbrev(); |
|
146 | - break; |
|
147 | - case 'STA_name': |
|
148 | - $state_value = $attendee->state_name(); |
|
149 | - break; |
|
150 | - default: |
|
151 | - $state_value = $attendee->state_ID(); |
|
152 | - } |
|
153 | - return $state_value; |
|
154 | - } |
|
123 | + /** |
|
124 | + * Gets the default value to use for the billing form's state value. |
|
125 | + * |
|
126 | + * @param EE_Attendee $attendee |
|
127 | + * @return string |
|
128 | + * @throws EE_Error |
|
129 | + * @since 4.10.0.p |
|
130 | + */ |
|
131 | + protected function getAttendeeStateValueForForm(EE_Attendee $attendee): string |
|
132 | + { |
|
133 | + // If the state input was removed, just return a blank string. |
|
134 | + if (! $this->has_subsection('state')) { |
|
135 | + return ''; |
|
136 | + } |
|
137 | + $state_input = $this->get_input('state', false); |
|
138 | + if ($state_input instanceof EE_State_Select_Input) { |
|
139 | + $state_field_to_use = $state_input->valueFieldName(); |
|
140 | + } else { |
|
141 | + $state_field_to_use = 'STA_ID'; |
|
142 | + } |
|
143 | + switch ($state_field_to_use) { |
|
144 | + case 'STA_abbrev': |
|
145 | + $state_value = $attendee->state_abbrev(); |
|
146 | + break; |
|
147 | + case 'STA_name': |
|
148 | + $state_value = $attendee->state_name(); |
|
149 | + break; |
|
150 | + default: |
|
151 | + $state_value = $attendee->state_ID(); |
|
152 | + } |
|
153 | + return $state_value; |
|
154 | + } |
|
155 | 155 | |
156 | 156 | |
157 | - /** |
|
158 | - * copy_billing_form_data_to_attendee |
|
159 | - * copies info from the billing form to the attendee's details |
|
160 | - * |
|
161 | - * @param EE_Attendee $attendee the attendee object to copy details to |
|
162 | - * @return EE_Attendee |
|
163 | - * @throws EE_Error |
|
164 | - */ |
|
165 | - public function copy_billing_form_data_to_attendee(EE_Attendee $attendee): EE_Attendee |
|
166 | - { |
|
167 | - // grab billing form data |
|
168 | - $data = $this->valid_data(); |
|
157 | + /** |
|
158 | + * copy_billing_form_data_to_attendee |
|
159 | + * copies info from the billing form to the attendee's details |
|
160 | + * |
|
161 | + * @param EE_Attendee $attendee the attendee object to copy details to |
|
162 | + * @return EE_Attendee |
|
163 | + * @throws EE_Error |
|
164 | + */ |
|
165 | + public function copy_billing_form_data_to_attendee(EE_Attendee $attendee): EE_Attendee |
|
166 | + { |
|
167 | + // grab billing form data |
|
168 | + $data = $this->valid_data(); |
|
169 | 169 | |
170 | - $fields_and_setters = [ |
|
171 | - 'first_name' => 'set_fname', |
|
172 | - 'last_name' => 'set_lname', |
|
173 | - 'email' => 'set_email', |
|
174 | - 'address' => 'set_address', |
|
175 | - 'address2' => 'set_address2', |
|
176 | - 'city' => 'set_city', |
|
177 | - 'state' => 'set_state', |
|
178 | - 'country' => 'set_country', |
|
179 | - 'zip' => 'set_zip', |
|
180 | - 'phone' => 'set_phone', |
|
181 | - ]; |
|
182 | - foreach ($fields_and_setters as $field => $setter) { |
|
183 | - if (! empty($data[$field]) && method_exists($attendee, $setter)) { |
|
184 | - $attendee->{$setter}($data[$field]); |
|
185 | - } |
|
186 | - } |
|
187 | - return $attendee; |
|
188 | - } |
|
170 | + $fields_and_setters = [ |
|
171 | + 'first_name' => 'set_fname', |
|
172 | + 'last_name' => 'set_lname', |
|
173 | + 'email' => 'set_email', |
|
174 | + 'address' => 'set_address', |
|
175 | + 'address2' => 'set_address2', |
|
176 | + 'city' => 'set_city', |
|
177 | + 'state' => 'set_state', |
|
178 | + 'country' => 'set_country', |
|
179 | + 'zip' => 'set_zip', |
|
180 | + 'phone' => 'set_phone', |
|
181 | + ]; |
|
182 | + foreach ($fields_and_setters as $field => $setter) { |
|
183 | + if (! empty($data[$field]) && method_exists($attendee, $setter)) { |
|
184 | + $attendee->{$setter}($data[$field]); |
|
185 | + } |
|
186 | + } |
|
187 | + return $attendee; |
|
188 | + } |
|
189 | 189 | |
190 | 190 | |
191 | - /** |
|
192 | - * create_attendee_from_billing_form_data |
|
193 | - * uses info from the billing form to create a new attendee |
|
194 | - * |
|
195 | - * @return EE_Attendee |
|
196 | - * @throws EE_Error |
|
197 | - */ |
|
198 | - public function create_attendee_from_billing_form_data(): EE_Attendee |
|
199 | - { |
|
200 | - // grab billing form data |
|
201 | - $data = $this->valid_data(); |
|
202 | - return EE_Attendee::new_instance([ |
|
203 | - 'ATT_fname' => ! empty($data['first_name']) ? $data['first_name'] : '', |
|
204 | - 'ATT_lname' => ! empty($data['last_name']) ? $data['last_name'] : '', |
|
205 | - 'ATT_email' => ! empty($data['email']) ? $data['email'] : '', |
|
206 | - 'ATT_address' => ! empty($data['address']) ? $data['address'] : '', |
|
207 | - 'ATT_address2' => ! empty($data['address2']) ? $data['address2'] : '', |
|
208 | - 'ATT_city' => ! empty($data['city']) ? $data['city'] : '', |
|
209 | - 'STA_ID' => ! empty($data['state']) ? $data['state'] : '', |
|
210 | - 'CNT_ISO' => ! empty($data['country']) ? $data['country'] : '', |
|
211 | - 'ATT_zip' => ! empty($data['zip']) ? $data['zip'] : '', |
|
212 | - 'ATT_phone' => ! empty($data['phone']) ? $data['phone'] : '', |
|
213 | - ]); |
|
214 | - } |
|
191 | + /** |
|
192 | + * create_attendee_from_billing_form_data |
|
193 | + * uses info from the billing form to create a new attendee |
|
194 | + * |
|
195 | + * @return EE_Attendee |
|
196 | + * @throws EE_Error |
|
197 | + */ |
|
198 | + public function create_attendee_from_billing_form_data(): EE_Attendee |
|
199 | + { |
|
200 | + // grab billing form data |
|
201 | + $data = $this->valid_data(); |
|
202 | + return EE_Attendee::new_instance([ |
|
203 | + 'ATT_fname' => ! empty($data['first_name']) ? $data['first_name'] : '', |
|
204 | + 'ATT_lname' => ! empty($data['last_name']) ? $data['last_name'] : '', |
|
205 | + 'ATT_email' => ! empty($data['email']) ? $data['email'] : '', |
|
206 | + 'ATT_address' => ! empty($data['address']) ? $data['address'] : '', |
|
207 | + 'ATT_address2' => ! empty($data['address2']) ? $data['address2'] : '', |
|
208 | + 'ATT_city' => ! empty($data['city']) ? $data['city'] : '', |
|
209 | + 'STA_ID' => ! empty($data['state']) ? $data['state'] : '', |
|
210 | + 'CNT_ISO' => ! empty($data['country']) ? $data['country'] : '', |
|
211 | + 'ATT_zip' => ! empty($data['zip']) ? $data['zip'] : '', |
|
212 | + 'ATT_phone' => ! empty($data['phone']) ? $data['phone'] : '', |
|
213 | + ]); |
|
214 | + } |
|
215 | 215 | } |
216 | 216 | |
217 | 217 | // End of file EE_Billing_Attendee_Info_Form.form.php |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | protected function getAttendeeStateValueForForm(EE_Attendee $attendee): string |
132 | 132 | { |
133 | 133 | // If the state input was removed, just return a blank string. |
134 | - if (! $this->has_subsection('state')) { |
|
134 | + if ( ! $this->has_subsection('state')) { |
|
135 | 135 | return ''; |
136 | 136 | } |
137 | 137 | $state_input = $this->get_input('state', false); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | 'phone' => 'set_phone', |
181 | 181 | ]; |
182 | 182 | foreach ($fields_and_setters as $field => $setter) { |
183 | - if (! empty($data[$field]) && method_exists($attendee, $setter)) { |
|
183 | + if ( ! empty($data[$field]) && method_exists($attendee, $setter)) { |
|
184 | 184 | $attendee->{$setter}($data[$field]); |
185 | 185 | } |
186 | 186 | } |
@@ -15,75 +15,75 @@ |
||
15 | 15 | class EE_Billing_Info_Form extends EE_Form_Section_Proper |
16 | 16 | { |
17 | 17 | |
18 | - /** |
|
19 | - * The payment method this billing form is for |
|
20 | - * @var EE_Payment_Method |
|
21 | - */ |
|
22 | - protected $_pm_instance; |
|
23 | - |
|
24 | - |
|
25 | - /** |
|
26 | - * |
|
27 | - * @param EE_Payment_Method $payment_method |
|
28 | - * @param array $options_array @see EE_Form_Section_Proper::__construct() |
|
29 | - * @throws EE_Error |
|
30 | - */ |
|
31 | - public function __construct(EE_Payment_Method $payment_method, $options_array = array()) |
|
32 | - { |
|
33 | - $this->_pm_instance = $payment_method; |
|
34 | - $this->_layout_strategy = new EE_Div_Per_Section_Layout(); |
|
35 | - parent::__construct($options_array); |
|
36 | - } |
|
37 | - |
|
38 | - |
|
39 | - |
|
40 | - /** |
|
41 | - * Sets the payment method for this billing form |
|
42 | - * @param EE_Payment_Method $payment_method |
|
43 | - * @return void |
|
44 | - */ |
|
45 | - public function set_payment_method(EE_Payment_Method $payment_method) |
|
46 | - { |
|
47 | - $this->_pm_instance = $payment_method; |
|
48 | - } |
|
49 | - |
|
50 | - |
|
51 | - |
|
52 | - /** |
|
53 | - * Returns the instance of the payment method this billing form is for |
|
54 | - * @return EE_Payment_Method |
|
55 | - */ |
|
56 | - public function payment_method(): EE_Payment_Method |
|
57 | - { |
|
58 | - return $this->_pm_instance; |
|
59 | - } |
|
60 | - |
|
61 | - |
|
62 | - |
|
63 | - /** |
|
64 | - * payment_fields_autofilled_notice_html |
|
65 | - * |
|
66 | - * @return EE_Form_Section_HTML |
|
67 | - */ |
|
68 | - public function payment_fields_autofilled_notice_html(): EE_Form_Section_HTML |
|
69 | - { |
|
70 | - return new EE_Form_Section_HTML( |
|
71 | - EEH_HTML::p( |
|
72 | - apply_filters('FHEE__EE_Billing_Info_Form__payment_fields_autofilled_notice_html_text', esc_html__('Payment fields have been autofilled because you are in debug mode', 'event_espresso')), |
|
73 | - '', |
|
74 | - 'important-notice' |
|
75 | - ) |
|
76 | - ); |
|
77 | - } |
|
78 | - |
|
79 | - |
|
80 | - |
|
81 | - /** |
|
82 | - * @return string |
|
83 | - */ |
|
84 | - public function html_class(): string |
|
85 | - { |
|
86 | - return ! empty($this->_html_class) ? $this->_html_class . ' ee-billing-form' : 'ee-billing-form'; |
|
87 | - } |
|
18 | + /** |
|
19 | + * The payment method this billing form is for |
|
20 | + * @var EE_Payment_Method |
|
21 | + */ |
|
22 | + protected $_pm_instance; |
|
23 | + |
|
24 | + |
|
25 | + /** |
|
26 | + * |
|
27 | + * @param EE_Payment_Method $payment_method |
|
28 | + * @param array $options_array @see EE_Form_Section_Proper::__construct() |
|
29 | + * @throws EE_Error |
|
30 | + */ |
|
31 | + public function __construct(EE_Payment_Method $payment_method, $options_array = array()) |
|
32 | + { |
|
33 | + $this->_pm_instance = $payment_method; |
|
34 | + $this->_layout_strategy = new EE_Div_Per_Section_Layout(); |
|
35 | + parent::__construct($options_array); |
|
36 | + } |
|
37 | + |
|
38 | + |
|
39 | + |
|
40 | + /** |
|
41 | + * Sets the payment method for this billing form |
|
42 | + * @param EE_Payment_Method $payment_method |
|
43 | + * @return void |
|
44 | + */ |
|
45 | + public function set_payment_method(EE_Payment_Method $payment_method) |
|
46 | + { |
|
47 | + $this->_pm_instance = $payment_method; |
|
48 | + } |
|
49 | + |
|
50 | + |
|
51 | + |
|
52 | + /** |
|
53 | + * Returns the instance of the payment method this billing form is for |
|
54 | + * @return EE_Payment_Method |
|
55 | + */ |
|
56 | + public function payment_method(): EE_Payment_Method |
|
57 | + { |
|
58 | + return $this->_pm_instance; |
|
59 | + } |
|
60 | + |
|
61 | + |
|
62 | + |
|
63 | + /** |
|
64 | + * payment_fields_autofilled_notice_html |
|
65 | + * |
|
66 | + * @return EE_Form_Section_HTML |
|
67 | + */ |
|
68 | + public function payment_fields_autofilled_notice_html(): EE_Form_Section_HTML |
|
69 | + { |
|
70 | + return new EE_Form_Section_HTML( |
|
71 | + EEH_HTML::p( |
|
72 | + apply_filters('FHEE__EE_Billing_Info_Form__payment_fields_autofilled_notice_html_text', esc_html__('Payment fields have been autofilled because you are in debug mode', 'event_espresso')), |
|
73 | + '', |
|
74 | + 'important-notice' |
|
75 | + ) |
|
76 | + ); |
|
77 | + } |
|
78 | + |
|
79 | + |
|
80 | + |
|
81 | + /** |
|
82 | + * @return string |
|
83 | + */ |
|
84 | + public function html_class(): string |
|
85 | + { |
|
86 | + return ! empty($this->_html_class) ? $this->_html_class . ' ee-billing-form' : 'ee-billing-form'; |
|
87 | + } |
|
88 | 88 | } |
89 | 89 | // End of file EE_Billing_Info_Form.form.php |
@@ -83,7 +83,7 @@ |
||
83 | 83 | */ |
84 | 84 | public function html_class(): string |
85 | 85 | { |
86 | - return ! empty($this->_html_class) ? $this->_html_class . ' ee-billing-form' : 'ee-billing-form'; |
|
86 | + return ! empty($this->_html_class) ? $this->_html_class.' ee-billing-form' : 'ee-billing-form'; |
|
87 | 87 | } |
88 | 88 | } |
89 | 89 | // End of file EE_Billing_Info_Form.form.php |