@@ -13,64 +13,64 @@ discard block |
||
13 | 13 | */ |
14 | 14 | class EE_DMS_Core_4_11_0 extends EE_Data_Migration_Script_Base |
15 | 15 | { |
16 | - /** |
|
17 | - * |
|
18 | - * @param EE_DMS_Core_4_10_0 $dms_4_10 |
|
19 | - * @param TableManager|null $table_manager |
|
20 | - * @param TableAnalysis|null $table_analysis |
|
21 | - */ |
|
22 | - public function __construct( |
|
23 | - EE_DMS_Core_4_10_0 $dms_4_10, |
|
24 | - TableManager $table_manager = null, |
|
25 | - TableAnalysis $table_analysis = null |
|
26 | - ) { |
|
27 | - $this->previous_dms = $dms_4_10; |
|
28 | - $this->_pretty_name = esc_html__("Data Update to Event Espresso 4.11.0", "event_espresso"); |
|
29 | - $this->_priority = 10; |
|
30 | - $this->_migration_stages = [ |
|
31 | - |
|
32 | - ]; |
|
33 | - parent::__construct($table_manager, $table_analysis); |
|
34 | - } |
|
35 | - |
|
36 | - |
|
37 | - /** |
|
38 | - * Whether to migrate or not. |
|
39 | - * |
|
40 | - * @param array $version_array |
|
41 | - * @return bool |
|
42 | - */ |
|
43 | - public function can_migrate_from_version($version_array) |
|
44 | - { |
|
45 | - $version_string = $version_array['Core']; |
|
46 | - return $version_string |
|
47 | - && version_compare($version_string, '4.11.0.decaf', '<') |
|
48 | - && version_compare($version_string, '4.10.0.decaf', '>='); |
|
49 | - |
|
50 | - } |
|
51 | - |
|
52 | - |
|
53 | - /** |
|
54 | - * @return bool |
|
55 | - * @throws EE_Error |
|
56 | - * @throws ReflectionException |
|
57 | - */ |
|
58 | - public function schema_changes_before_migration() |
|
59 | - { |
|
60 | - require_once EE_HELPERS . 'EEH_Activation.helper.php'; |
|
61 | - |
|
62 | - $table_name = 'esp_answer'; |
|
63 | - $sql = " ANS_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
16 | + /** |
|
17 | + * |
|
18 | + * @param EE_DMS_Core_4_10_0 $dms_4_10 |
|
19 | + * @param TableManager|null $table_manager |
|
20 | + * @param TableAnalysis|null $table_analysis |
|
21 | + */ |
|
22 | + public function __construct( |
|
23 | + EE_DMS_Core_4_10_0 $dms_4_10, |
|
24 | + TableManager $table_manager = null, |
|
25 | + TableAnalysis $table_analysis = null |
|
26 | + ) { |
|
27 | + $this->previous_dms = $dms_4_10; |
|
28 | + $this->_pretty_name = esc_html__("Data Update to Event Espresso 4.11.0", "event_espresso"); |
|
29 | + $this->_priority = 10; |
|
30 | + $this->_migration_stages = [ |
|
31 | + |
|
32 | + ]; |
|
33 | + parent::__construct($table_manager, $table_analysis); |
|
34 | + } |
|
35 | + |
|
36 | + |
|
37 | + /** |
|
38 | + * Whether to migrate or not. |
|
39 | + * |
|
40 | + * @param array $version_array |
|
41 | + * @return bool |
|
42 | + */ |
|
43 | + public function can_migrate_from_version($version_array) |
|
44 | + { |
|
45 | + $version_string = $version_array['Core']; |
|
46 | + return $version_string |
|
47 | + && version_compare($version_string, '4.11.0.decaf', '<') |
|
48 | + && version_compare($version_string, '4.10.0.decaf', '>='); |
|
49 | + |
|
50 | + } |
|
51 | + |
|
52 | + |
|
53 | + /** |
|
54 | + * @return bool |
|
55 | + * @throws EE_Error |
|
56 | + * @throws ReflectionException |
|
57 | + */ |
|
58 | + public function schema_changes_before_migration() |
|
59 | + { |
|
60 | + require_once EE_HELPERS . 'EEH_Activation.helper.php'; |
|
61 | + |
|
62 | + $table_name = 'esp_answer'; |
|
63 | + $sql = " ANS_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
64 | 64 | REG_ID int(10) unsigned NOT NULL, |
65 | 65 | QST_ID int(10) unsigned NOT NULL, |
66 | 66 | ANS_value text NOT NULL, |
67 | 67 | PRIMARY KEY (ANS_ID), |
68 | 68 | KEY REG_ID (REG_ID), |
69 | 69 | KEY QST_ID (QST_ID)"; |
70 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
70 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
71 | 71 | |
72 | - $table_name = 'esp_attendee_meta'; |
|
73 | - $sql = "ATTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
72 | + $table_name = 'esp_attendee_meta'; |
|
73 | + $sql = "ATTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
74 | 74 | ATT_ID bigint(20) unsigned NOT NULL, |
75 | 75 | ATT_fname varchar(45) NOT NULL, |
76 | 76 | ATT_lname varchar(45) NOT NULL, |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | KEY ATT_email (ATT_email(191)), |
88 | 88 | KEY ATT_lname (ATT_lname), |
89 | 89 | KEY ATT_fname (ATT_fname)"; |
90 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
90 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
91 | 91 | |
92 | - $table_name = 'esp_checkin'; |
|
93 | - $sql = "CHK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
92 | + $table_name = 'esp_checkin'; |
|
93 | + $sql = "CHK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
94 | 94 | REG_ID int(10) unsigned NOT NULL, |
95 | 95 | DTT_ID int(10) unsigned NOT NULL, |
96 | 96 | CHK_in tinyint(1) unsigned NOT NULL DEFAULT 1, |
@@ -98,10 +98,10 @@ discard block |
||
98 | 98 | PRIMARY KEY (CHK_ID), |
99 | 99 | KEY REG_ID (REG_ID), |
100 | 100 | KEY DTT_ID (DTT_ID)"; |
101 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
101 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
102 | 102 | |
103 | - $table_name = 'esp_country'; |
|
104 | - $sql = "CNT_ISO varchar(2) NOT NULL, |
|
103 | + $table_name = 'esp_country'; |
|
104 | + $sql = "CNT_ISO varchar(2) NOT NULL, |
|
105 | 105 | CNT_ISO3 varchar(3) NOT NULL, |
106 | 106 | RGN_ID tinyint(3) unsigned DEFAULT NULL, |
107 | 107 | CNT_name varchar(45) NOT NULL, |
@@ -117,32 +117,32 @@ discard block |
||
117 | 117 | CNT_is_EU tinyint(1) DEFAULT '0', |
118 | 118 | CNT_active tinyint(1) DEFAULT '0', |
119 | 119 | PRIMARY KEY (CNT_ISO)"; |
120 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
120 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
121 | 121 | |
122 | - $table_name = 'esp_currency'; |
|
123 | - $sql = "CUR_code varchar(6) NOT NULL, |
|
122 | + $table_name = 'esp_currency'; |
|
123 | + $sql = "CUR_code varchar(6) NOT NULL, |
|
124 | 124 | CUR_single varchar(45) DEFAULT 'dollar', |
125 | 125 | CUR_plural varchar(45) DEFAULT 'dollars', |
126 | 126 | CUR_sign varchar(45) DEFAULT '$', |
127 | 127 | CUR_dec_plc varchar(1) NOT NULL DEFAULT '2', |
128 | 128 | CUR_active tinyint(1) DEFAULT '0', |
129 | 129 | PRIMARY KEY (CUR_code)"; |
130 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
131 | - |
|
132 | - // note: although this table is no longer in use, |
|
133 | - // it hasn't been removed because then queries to the model will have errors. |
|
134 | - // but you should expect this table and its corresponding model to be removed in |
|
135 | - // the next few months |
|
136 | - $table_name = 'esp_currency_payment_method'; |
|
137 | - $sql = "CPM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
130 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
131 | + |
|
132 | + // note: although this table is no longer in use, |
|
133 | + // it hasn't been removed because then queries to the model will have errors. |
|
134 | + // but you should expect this table and its corresponding model to be removed in |
|
135 | + // the next few months |
|
136 | + $table_name = 'esp_currency_payment_method'; |
|
137 | + $sql = "CPM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
138 | 138 | CUR_code varchar(6) NOT NULL, |
139 | 139 | PMD_ID int(11) NOT NULL, |
140 | 140 | PRIMARY KEY (CPM_ID), |
141 | 141 | KEY PMD_ID (PMD_ID)"; |
142 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
142 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
143 | 143 | |
144 | - $table_name = 'esp_datetime'; |
|
145 | - $sql = "DTT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
144 | + $table_name = 'esp_datetime'; |
|
145 | + $sql = "DTT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
146 | 146 | EVT_ID bigint(20) unsigned NOT NULL, |
147 | 147 | DTT_name varchar(255) NOT NULL DEFAULT '', |
148 | 148 | DTT_description text NOT NULL, |
@@ -159,28 +159,28 @@ discard block |
||
159 | 159 | KEY DTT_EVT_start (DTT_EVT_start), |
160 | 160 | KEY EVT_ID (EVT_ID), |
161 | 161 | KEY DTT_is_primary (DTT_is_primary)"; |
162 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
162 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
163 | 163 | |
164 | - $table_name = "esp_datetime_ticket"; |
|
165 | - $sql = "DTK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
164 | + $table_name = "esp_datetime_ticket"; |
|
165 | + $sql = "DTK_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
166 | 166 | DTT_ID int(10) unsigned NOT NULL, |
167 | 167 | TKT_ID int(10) unsigned NOT NULL, |
168 | 168 | PRIMARY KEY (DTK_ID), |
169 | 169 | KEY DTT_ID (DTT_ID), |
170 | 170 | KEY TKT_ID (TKT_ID)"; |
171 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
171 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
172 | 172 | |
173 | - $table_name = 'esp_event_message_template'; |
|
174 | - $sql = "EMT_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
173 | + $table_name = 'esp_event_message_template'; |
|
174 | + $sql = "EMT_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
175 | 175 | EVT_ID bigint(20) unsigned NOT NULL DEFAULT 0, |
176 | 176 | GRP_ID int(10) unsigned NOT NULL DEFAULT 0, |
177 | 177 | PRIMARY KEY (EMT_ID), |
178 | 178 | KEY EVT_ID (EVT_ID), |
179 | 179 | KEY GRP_ID (GRP_ID)"; |
180 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
180 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
181 | 181 | |
182 | - $table_name = 'esp_event_meta'; |
|
183 | - $sql = "EVTM_ID int(10) NOT NULL AUTO_INCREMENT, |
|
182 | + $table_name = 'esp_event_meta'; |
|
183 | + $sql = "EVTM_ID int(10) NOT NULL AUTO_INCREMENT, |
|
184 | 184 | EVT_ID bigint(20) unsigned NOT NULL, |
185 | 185 | EVT_display_desc tinyint(1) unsigned NOT NULL DEFAULT 1, |
186 | 186 | EVT_display_ticket_selector tinyint(1) unsigned NOT NULL DEFAULT 1, |
@@ -195,10 +195,10 @@ discard block |
||
195 | 195 | EVT_donations tinyint(1) NULL, |
196 | 196 | PRIMARY KEY (EVTM_ID), |
197 | 197 | KEY EVT_ID (EVT_ID)"; |
198 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
198 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
199 | 199 | |
200 | - $table_name = 'esp_event_question_group'; |
|
201 | - $sql = "EQG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
200 | + $table_name = 'esp_event_question_group'; |
|
201 | + $sql = "EQG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
202 | 202 | EVT_ID bigint(20) unsigned NOT NULL, |
203 | 203 | QSG_ID int(10) unsigned NOT NULL, |
204 | 204 | EQG_primary tinyint(1) unsigned NOT NULL DEFAULT 0, |
@@ -206,28 +206,28 @@ discard block |
||
206 | 206 | PRIMARY KEY (EQG_ID), |
207 | 207 | KEY EVT_ID (EVT_ID), |
208 | 208 | KEY QSG_ID (QSG_ID)"; |
209 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
209 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
210 | 210 | |
211 | - $table_name = 'esp_event_venue'; |
|
212 | - $sql = "EVV_ID int(11) NOT NULL AUTO_INCREMENT, |
|
211 | + $table_name = 'esp_event_venue'; |
|
212 | + $sql = "EVV_ID int(11) NOT NULL AUTO_INCREMENT, |
|
213 | 213 | EVT_ID bigint(20) unsigned NOT NULL, |
214 | 214 | VNU_ID bigint(20) unsigned NOT NULL, |
215 | 215 | EVV_primary tinyint(1) unsigned NOT NULL DEFAULT 0, |
216 | 216 | PRIMARY KEY (EVV_ID)"; |
217 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
217 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
218 | 218 | |
219 | - $table_name = 'esp_extra_meta'; |
|
220 | - $sql = "EXM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
219 | + $table_name = 'esp_extra_meta'; |
|
220 | + $sql = "EXM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
221 | 221 | OBJ_ID int(11) DEFAULT NULL, |
222 | 222 | EXM_type varchar(45) DEFAULT NULL, |
223 | 223 | EXM_key varchar(45) DEFAULT NULL, |
224 | 224 | EXM_value text, |
225 | 225 | PRIMARY KEY (EXM_ID), |
226 | 226 | KEY EXM_type (EXM_type,OBJ_ID,EXM_key)"; |
227 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
227 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
228 | 228 | |
229 | - $table_name = 'esp_extra_join'; |
|
230 | - $sql = "EXJ_ID int(11) NOT NULL AUTO_INCREMENT, |
|
229 | + $table_name = 'esp_extra_join'; |
|
230 | + $sql = "EXJ_ID int(11) NOT NULL AUTO_INCREMENT, |
|
231 | 231 | EXJ_first_model_id varchar(6) NOT NULL, |
232 | 232 | EXJ_first_model_name varchar(20) NOT NULL, |
233 | 233 | EXJ_second_model_id varchar(6) NOT NULL, |
@@ -235,11 +235,11 @@ discard block |
||
235 | 235 | PRIMARY KEY (EXJ_ID), |
236 | 236 | KEY first_model (EXJ_first_model_name,EXJ_first_model_id), |
237 | 237 | KEY second_model (EXJ_second_model_name,EXJ_second_model_id)"; |
238 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
238 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
239 | 239 | |
240 | - $now_in_mysql = current_time('mysql', true); |
|
241 | - $table_name = 'esp_line_item'; |
|
242 | - $sql = "LIN_ID int(11) NOT NULL AUTO_INCREMENT, |
|
240 | + $now_in_mysql = current_time('mysql', true); |
|
241 | + $table_name = 'esp_line_item'; |
|
242 | + $sql = "LIN_ID int(11) NOT NULL AUTO_INCREMENT, |
|
243 | 243 | LIN_code varchar(245) NOT NULL DEFAULT '', |
244 | 244 | TXN_ID int(11) DEFAULT NULL, |
245 | 245 | LIN_name varchar(245) NOT NULL DEFAULT '', |
@@ -260,10 +260,10 @@ discard block |
||
260 | 260 | KEY txn_type_timestamp (TXN_ID,LIN_type,LIN_timestamp), |
261 | 261 | KEY txn_obj_id_obj_type (TXN_ID,OBJ_ID,OBJ_type), |
262 | 262 | KEY obj_id_obj_type (OBJ_ID,OBJ_type)"; |
263 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
263 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
264 | 264 | |
265 | - $table_name = 'esp_log'; |
|
266 | - $sql = "LOG_ID int(11) NOT NULL AUTO_INCREMENT, |
|
265 | + $table_name = 'esp_log'; |
|
266 | + $sql = "LOG_ID int(11) NOT NULL AUTO_INCREMENT, |
|
267 | 267 | LOG_time datetime DEFAULT NULL, |
268 | 268 | OBJ_ID varchar(45) DEFAULT NULL, |
269 | 269 | OBJ_type varchar(45) DEFAULT NULL, |
@@ -274,10 +274,10 @@ discard block |
||
274 | 274 | KEY LOG_time (LOG_time), |
275 | 275 | KEY OBJ (OBJ_type,OBJ_ID), |
276 | 276 | KEY LOG_type (LOG_type)"; |
277 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
277 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
278 | 278 | |
279 | - $table_name = 'esp_message'; |
|
280 | - $sql = "MSG_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
279 | + $table_name = 'esp_message'; |
|
280 | + $sql = "MSG_ID bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
|
281 | 281 | GRP_ID int(10) unsigned NULL, |
282 | 282 | MSG_token varchar(255) NULL, |
283 | 283 | TXN_ID int(10) unsigned NULL, |
@@ -309,20 +309,20 @@ discard block |
||
309 | 309 | KEY STS_ID (STS_ID), |
310 | 310 | KEY MSG_created (MSG_created), |
311 | 311 | KEY MSG_modified (MSG_modified)"; |
312 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
312 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
313 | 313 | |
314 | - $table_name = 'esp_message_template'; |
|
315 | - $sql = "MTP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
314 | + $table_name = 'esp_message_template'; |
|
315 | + $sql = "MTP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
316 | 316 | GRP_ID int(10) unsigned NOT NULL, |
317 | 317 | MTP_context varchar(50) NOT NULL, |
318 | 318 | MTP_template_field varchar(30) NOT NULL, |
319 | 319 | MTP_content text NOT NULL, |
320 | 320 | PRIMARY KEY (MTP_ID), |
321 | 321 | KEY GRP_ID (GRP_ID)"; |
322 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
322 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
323 | 323 | |
324 | - $table_name = 'esp_message_template_group'; |
|
325 | - $sql = "GRP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
324 | + $table_name = 'esp_message_template_group'; |
|
325 | + $sql = "GRP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
326 | 326 | MTP_user_id int(10) NOT NULL DEFAULT '1', |
327 | 327 | MTP_name varchar(245) NOT NULL DEFAULT '', |
328 | 328 | MTP_description varchar(245) NOT NULL DEFAULT '', |
@@ -334,10 +334,10 @@ discard block |
||
334 | 334 | MTP_is_active tinyint(1) NOT NULL DEFAULT '1', |
335 | 335 | PRIMARY KEY (GRP_ID), |
336 | 336 | KEY MTP_user_id (MTP_user_id)"; |
337 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
337 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
338 | 338 | |
339 | - $table_name = 'esp_payment'; |
|
340 | - $sql = "PAY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
339 | + $table_name = 'esp_payment'; |
|
340 | + $sql = "PAY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
341 | 341 | TXN_ID int(10) unsigned DEFAULT NULL, |
342 | 342 | STS_ID varchar(3) DEFAULT NULL, |
343 | 343 | PAY_timestamp datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
@@ -354,10 +354,10 @@ discard block |
||
354 | 354 | PRIMARY KEY (PAY_ID), |
355 | 355 | KEY PAY_timestamp (PAY_timestamp), |
356 | 356 | KEY TXN_ID (TXN_ID)"; |
357 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
357 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
358 | 358 | |
359 | - $table_name = 'esp_payment_method'; |
|
360 | - $sql = "PMD_ID int(11) NOT NULL AUTO_INCREMENT, |
|
359 | + $table_name = 'esp_payment_method'; |
|
360 | + $sql = "PMD_ID int(11) NOT NULL AUTO_INCREMENT, |
|
361 | 361 | PMD_type varchar(124) DEFAULT NULL, |
362 | 362 | PMD_name varchar(255) DEFAULT NULL, |
363 | 363 | PMD_desc text, |
@@ -373,10 +373,10 @@ discard block |
||
373 | 373 | PRIMARY KEY (PMD_ID), |
374 | 374 | UNIQUE KEY PMD_slug_UNIQUE (PMD_slug), |
375 | 375 | KEY PMD_type (PMD_type)"; |
376 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
376 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
377 | 377 | |
378 | - $table_name = "esp_price"; |
|
379 | - $sql = "PRC_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
378 | + $table_name = "esp_price"; |
|
379 | + $sql = "PRC_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
380 | 380 | PRT_ID tinyint(3) unsigned NOT NULL, |
381 | 381 | PRC_amount decimal(12,3) NOT NULL DEFAULT '0.00', |
382 | 382 | PRC_name varchar(245) NOT NULL, |
@@ -389,10 +389,10 @@ discard block |
||
389 | 389 | PRC_parent int(10) unsigned DEFAULT 0, |
390 | 390 | PRIMARY KEY (PRC_ID), |
391 | 391 | KEY PRT_ID (PRT_ID)"; |
392 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
392 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
393 | 393 | |
394 | - $table_name = "esp_price_type"; |
|
395 | - $sql = "PRT_ID tinyint(3) unsigned NOT NULL AUTO_INCREMENT, |
|
394 | + $table_name = "esp_price_type"; |
|
395 | + $sql = "PRT_ID tinyint(3) unsigned NOT NULL AUTO_INCREMENT, |
|
396 | 396 | PRT_name varchar(45) NOT NULL, |
397 | 397 | PBT_ID tinyint(3) unsigned NOT NULL DEFAULT '1', |
398 | 398 | PRT_is_percent tinyint(1) NOT NULL DEFAULT '0', |
@@ -401,27 +401,27 @@ discard block |
||
401 | 401 | PRT_deleted tinyint(1) NOT NULL DEFAULT '0', |
402 | 402 | UNIQUE KEY PRT_name_UNIQUE (PRT_name), |
403 | 403 | PRIMARY KEY (PRT_ID)"; |
404 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
404 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
405 | 405 | |
406 | - $table_name = "esp_ticket_price"; |
|
407 | - $sql = "TKP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
406 | + $table_name = "esp_ticket_price"; |
|
407 | + $sql = "TKP_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
408 | 408 | TKT_ID int(10) unsigned NOT NULL, |
409 | 409 | PRC_ID int(10) unsigned NOT NULL, |
410 | 410 | PRIMARY KEY (TKP_ID), |
411 | 411 | KEY TKT_ID (TKT_ID), |
412 | 412 | KEY PRC_ID (PRC_ID)"; |
413 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
413 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
414 | 414 | |
415 | - $table_name = "esp_ticket_template"; |
|
416 | - $sql = "TTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
415 | + $table_name = "esp_ticket_template"; |
|
416 | + $sql = "TTM_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
417 | 417 | TTM_name varchar(45) NOT NULL, |
418 | 418 | TTM_description text, |
419 | 419 | TTM_file varchar(45), |
420 | 420 | PRIMARY KEY (TTM_ID)"; |
421 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
421 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
422 | 422 | |
423 | - $table_name = 'esp_question'; |
|
424 | - $sql = 'QST_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
423 | + $table_name = 'esp_question'; |
|
424 | + $sql = 'QST_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
425 | 425 | QST_display_text text NOT NULL, |
426 | 426 | QST_admin_label varchar(255) NOT NULL, |
427 | 427 | QST_system varchar(25) DEFAULT NULL, |
@@ -435,10 +435,10 @@ discard block |
||
435 | 435 | QST_deleted tinyint(2) unsigned NOT NULL DEFAULT 0, |
436 | 436 | PRIMARY KEY (QST_ID), |
437 | 437 | KEY QST_order (QST_order)'; |
438 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
438 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
439 | 439 | |
440 | - $table_name = 'esp_question_group'; |
|
441 | - $sql = 'QSG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
440 | + $table_name = 'esp_question_group'; |
|
441 | + $sql = 'QSG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
442 | 442 | QSG_name varchar(255) NOT NULL, |
443 | 443 | QSG_identifier varchar(100) NOT NULL, |
444 | 444 | QSG_desc text NULL, |
@@ -451,20 +451,20 @@ discard block |
||
451 | 451 | PRIMARY KEY (QSG_ID), |
452 | 452 | UNIQUE KEY QSG_identifier_UNIQUE (QSG_identifier), |
453 | 453 | KEY QSG_order (QSG_order)'; |
454 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
454 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
455 | 455 | |
456 | - $table_name = 'esp_question_group_question'; |
|
457 | - $sql = "QGQ_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
456 | + $table_name = 'esp_question_group_question'; |
|
457 | + $sql = "QGQ_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
458 | 458 | QSG_ID int(10) unsigned NOT NULL, |
459 | 459 | QST_ID int(10) unsigned NOT NULL, |
460 | 460 | QGQ_order int(10) unsigned NOT NULL DEFAULT 0, |
461 | 461 | PRIMARY KEY (QGQ_ID), |
462 | 462 | KEY QST_ID (QST_ID), |
463 | 463 | KEY QSG_ID_order (QSG_ID,QGQ_order)"; |
464 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
464 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
465 | 465 | |
466 | - $table_name = 'esp_question_option'; |
|
467 | - $sql = "QSO_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
466 | + $table_name = 'esp_question_option'; |
|
467 | + $sql = "QSO_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
468 | 468 | QSO_value varchar(255) NOT NULL, |
469 | 469 | QSO_desc text NOT NULL, |
470 | 470 | QST_ID int(10) unsigned NOT NULL, |
@@ -474,10 +474,10 @@ discard block |
||
474 | 474 | PRIMARY KEY (QSO_ID), |
475 | 475 | KEY QST_ID (QST_ID), |
476 | 476 | KEY QSO_order (QSO_order)"; |
477 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
477 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
478 | 478 | |
479 | - $table_name = 'esp_registration'; |
|
480 | - $sql = "REG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
479 | + $table_name = 'esp_registration'; |
|
480 | + $sql = "REG_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
481 | 481 | EVT_ID bigint(20) unsigned NOT NULL, |
482 | 482 | ATT_ID bigint(20) unsigned NOT NULL, |
483 | 483 | TXN_ID int(10) unsigned NOT NULL, |
@@ -501,20 +501,20 @@ discard block |
||
501 | 501 | KEY TKT_ID (TKT_ID), |
502 | 502 | KEY EVT_ID (EVT_ID), |
503 | 503 | KEY STS_ID (STS_ID)"; |
504 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
504 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
505 | 505 | |
506 | - $table_name = 'esp_registration_payment'; |
|
507 | - $sql = "RPY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
506 | + $table_name = 'esp_registration_payment'; |
|
507 | + $sql = "RPY_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
508 | 508 | REG_ID int(10) unsigned NOT NULL, |
509 | 509 | PAY_ID int(10) unsigned NULL, |
510 | 510 | RPY_amount decimal(12,3) NOT NULL DEFAULT '0.00', |
511 | 511 | PRIMARY KEY (RPY_ID), |
512 | 512 | KEY REG_ID (REG_ID), |
513 | 513 | KEY PAY_ID (PAY_ID)"; |
514 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
514 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB '); |
|
515 | 515 | |
516 | - $table_name = 'esp_state'; |
|
517 | - $sql = "STA_ID smallint(5) unsigned NOT NULL AUTO_INCREMENT, |
|
516 | + $table_name = 'esp_state'; |
|
517 | + $sql = "STA_ID smallint(5) unsigned NOT NULL AUTO_INCREMENT, |
|
518 | 518 | CNT_ISO varchar(2) NOT NULL, |
519 | 519 | STA_abbrev varchar(24) NOT NULL, |
520 | 520 | STA_name varchar(100) NOT NULL, |
@@ -522,10 +522,10 @@ discard block |
||
522 | 522 | PRIMARY KEY (STA_ID), |
523 | 523 | KEY STA_abbrev (STA_abbrev), |
524 | 524 | KEY CNT_ISO (CNT_ISO)"; |
525 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
525 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
526 | 526 | |
527 | - $table_name = 'esp_status'; |
|
528 | - $sql = "STS_ID varchar(3) NOT NULL, |
|
527 | + $table_name = 'esp_status'; |
|
528 | + $sql = "STS_ID varchar(3) NOT NULL, |
|
529 | 529 | STS_code varchar(45) NOT NULL, |
530 | 530 | STS_type varchar(45) NOT NULL, |
531 | 531 | STS_can_edit tinyint(1) NOT NULL DEFAULT 0, |
@@ -533,10 +533,10 @@ discard block |
||
533 | 533 | STS_open tinyint(1) NOT NULL DEFAULT 1, |
534 | 534 | UNIQUE KEY STS_ID_UNIQUE (STS_ID), |
535 | 535 | KEY STS_type (STS_type)"; |
536 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
536 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
537 | 537 | |
538 | - $table_name = "esp_ticket"; |
|
539 | - $sql = "TKT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
538 | + $table_name = "esp_ticket"; |
|
539 | + $sql = "TKT_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
540 | 540 | TTM_ID int(10) unsigned NOT NULL, |
541 | 541 | TKT_name varchar(245) NOT NULL DEFAULT '', |
542 | 542 | TKT_description text NOT NULL, |
@@ -560,10 +560,10 @@ discard block |
||
560 | 560 | TKT_deleted tinyint(1) NOT NULL DEFAULT '0', |
561 | 561 | PRIMARY KEY (TKT_ID), |
562 | 562 | KEY TKT_start_date (TKT_start_date)"; |
563 | - $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
563 | + $this->_table_is_changed_in_this_version($table_name, $sql, 'ENGINE=InnoDB'); |
|
564 | 564 | |
565 | - $table_name = 'esp_transaction'; |
|
566 | - $sql = "TXN_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
565 | + $table_name = 'esp_transaction'; |
|
566 | + $sql = "TXN_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
|
567 | 567 | TXN_timestamp datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
568 | 568 | TXN_total decimal(12,3) DEFAULT '0.00', |
569 | 569 | TXN_paid decimal(12,3) NOT NULL DEFAULT '0.00', |
@@ -575,10 +575,10 @@ discard block |
||
575 | 575 | PRIMARY KEY (TXN_ID), |
576 | 576 | KEY TXN_timestamp (TXN_timestamp), |
577 | 577 | KEY STS_ID (STS_ID)"; |
578 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
578 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
579 | 579 | |
580 | - $table_name = 'esp_venue_meta'; |
|
581 | - $sql = "VNUM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
580 | + $table_name = 'esp_venue_meta'; |
|
581 | + $sql = "VNUM_ID int(11) NOT NULL AUTO_INCREMENT, |
|
582 | 582 | VNU_ID bigint(20) unsigned NOT NULL DEFAULT 0, |
583 | 583 | VNU_address varchar(255) DEFAULT NULL, |
584 | 584 | VNU_address2 varchar(255) DEFAULT NULL, |
@@ -597,36 +597,36 @@ discard block |
||
597 | 597 | KEY VNU_ID (VNU_ID), |
598 | 598 | KEY STA_ID (STA_ID), |
599 | 599 | KEY CNT_ISO (CNT_ISO)"; |
600 | - $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
601 | - |
|
602 | - $this->insert_default_data(); |
|
603 | - return true; |
|
604 | - } |
|
605 | - |
|
606 | - |
|
607 | - /** |
|
608 | - * Inserts default data on new installs |
|
609 | - * |
|
610 | - * @throws EE_Error |
|
611 | - * @throws ReflectionException |
|
612 | - * @since 4.10.0.p |
|
613 | - */ |
|
614 | - public function insert_default_data() |
|
615 | - { |
|
616 | - $this->previous_dms->insert_default_data(); |
|
617 | - } |
|
618 | - |
|
619 | - |
|
620 | - /** |
|
621 | - * @return boolean |
|
622 | - */ |
|
623 | - public function schema_changes_after_migration() |
|
624 | - { |
|
625 | - return true; |
|
626 | - } |
|
627 | - |
|
628 | - |
|
629 | - public function migration_page_hooks() |
|
630 | - { |
|
631 | - } |
|
600 | + $this->_table_has_not_changed_since_previous($table_name, $sql, 'ENGINE=InnoDB'); |
|
601 | + |
|
602 | + $this->insert_default_data(); |
|
603 | + return true; |
|
604 | + } |
|
605 | + |
|
606 | + |
|
607 | + /** |
|
608 | + * Inserts default data on new installs |
|
609 | + * |
|
610 | + * @throws EE_Error |
|
611 | + * @throws ReflectionException |
|
612 | + * @since 4.10.0.p |
|
613 | + */ |
|
614 | + public function insert_default_data() |
|
615 | + { |
|
616 | + $this->previous_dms->insert_default_data(); |
|
617 | + } |
|
618 | + |
|
619 | + |
|
620 | + /** |
|
621 | + * @return boolean |
|
622 | + */ |
|
623 | + public function schema_changes_after_migration() |
|
624 | + { |
|
625 | + return true; |
|
626 | + } |
|
627 | + |
|
628 | + |
|
629 | + public function migration_page_hooks() |
|
630 | + { |
|
631 | + } |
|
632 | 632 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function schema_changes_before_migration() |
59 | 59 | { |
60 | - require_once EE_HELPERS . 'EEH_Activation.helper.php'; |
|
60 | + require_once EE_HELPERS.'EEH_Activation.helper.php'; |
|
61 | 61 | |
62 | 62 | $table_name = 'esp_answer'; |
63 | 63 | $sql = " ANS_ID int(10) unsigned NOT NULL AUTO_INCREMENT, |
@@ -21,1003 +21,1003 @@ |
||
21 | 21 | class EE_Dependency_Map |
22 | 22 | { |
23 | 23 | |
24 | - /** |
|
25 | - * This means that the requested class dependency is not present in the dependency map |
|
26 | - */ |
|
27 | - const not_registered = 0; |
|
28 | - |
|
29 | - /** |
|
30 | - * This instructs class loaders to ALWAYS return a newly instantiated object for the requested class. |
|
31 | - */ |
|
32 | - const load_new_object = 1; |
|
33 | - |
|
34 | - /** |
|
35 | - * This instructs class loaders to return a previously instantiated and cached object for the requested class. |
|
36 | - * IF a previously instantiated object does not exist, a new one will be created and added to the cache. |
|
37 | - */ |
|
38 | - const load_from_cache = 2; |
|
39 | - |
|
40 | - /** |
|
41 | - * When registering a dependency, |
|
42 | - * this indicates to keep any existing dependencies that already exist, |
|
43 | - * and simply discard any new dependencies declared in the incoming data |
|
44 | - */ |
|
45 | - const KEEP_EXISTING_DEPENDENCIES = 0; |
|
46 | - |
|
47 | - /** |
|
48 | - * When registering a dependency, |
|
49 | - * this indicates to overwrite any existing dependencies that already exist using the incoming data |
|
50 | - */ |
|
51 | - const OVERWRITE_DEPENDENCIES = 1; |
|
52 | - |
|
53 | - /** |
|
54 | - * @type EE_Dependency_Map $_instance |
|
55 | - */ |
|
56 | - protected static $_instance; |
|
57 | - |
|
58 | - /** |
|
59 | - * @var ClassInterfaceCache $class_cache |
|
60 | - */ |
|
61 | - private $class_cache; |
|
62 | - |
|
63 | - /** |
|
64 | - * @type RequestInterface $request |
|
65 | - */ |
|
66 | - protected $request; |
|
67 | - |
|
68 | - /** |
|
69 | - * @type LegacyRequestInterface $legacy_request |
|
70 | - */ |
|
71 | - protected $legacy_request; |
|
72 | - |
|
73 | - /** |
|
74 | - * @type ResponseInterface $response |
|
75 | - */ |
|
76 | - protected $response; |
|
77 | - |
|
78 | - /** |
|
79 | - * @type LoaderInterface $loader |
|
80 | - */ |
|
81 | - protected $loader; |
|
82 | - |
|
83 | - /** |
|
84 | - * @type array $_dependency_map |
|
85 | - */ |
|
86 | - protected $_dependency_map = []; |
|
87 | - |
|
88 | - /** |
|
89 | - * @type array $_class_loaders |
|
90 | - */ |
|
91 | - protected $_class_loaders = []; |
|
92 | - |
|
93 | - |
|
94 | - /** |
|
95 | - * EE_Dependency_Map constructor. |
|
96 | - * |
|
97 | - * @param ClassInterfaceCache $class_cache |
|
98 | - */ |
|
99 | - protected function __construct(ClassInterfaceCache $class_cache) |
|
100 | - { |
|
101 | - $this->class_cache = $class_cache; |
|
102 | - do_action('EE_Dependency_Map____construct', $this); |
|
103 | - } |
|
104 | - |
|
105 | - |
|
106 | - /** |
|
107 | - * @return void |
|
108 | - * @throws InvalidAliasException |
|
109 | - */ |
|
110 | - public function initialize() |
|
111 | - { |
|
112 | - $this->_register_core_dependencies(); |
|
113 | - $this->_register_core_class_loaders(); |
|
114 | - $this->_register_core_aliases(); |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - /** |
|
119 | - * @singleton method used to instantiate class object |
|
120 | - * @param ClassInterfaceCache|null $class_cache |
|
121 | - * @return EE_Dependency_Map |
|
122 | - */ |
|
123 | - public static function instance(ClassInterfaceCache $class_cache = null) |
|
124 | - { |
|
125 | - // check if class object is instantiated, and instantiated properly |
|
126 | - if (! EE_Dependency_Map::$_instance instanceof EE_Dependency_Map |
|
127 | - && $class_cache instanceof ClassInterfaceCache |
|
128 | - ) { |
|
129 | - EE_Dependency_Map::$_instance = new EE_Dependency_Map($class_cache); |
|
130 | - } |
|
131 | - return EE_Dependency_Map::$_instance; |
|
132 | - } |
|
133 | - |
|
134 | - |
|
135 | - /** |
|
136 | - * @param RequestInterface $request |
|
137 | - */ |
|
138 | - public function setRequest(RequestInterface $request) |
|
139 | - { |
|
140 | - $this->request = $request; |
|
141 | - } |
|
142 | - |
|
143 | - |
|
144 | - /** |
|
145 | - * @param LegacyRequestInterface $legacy_request |
|
146 | - */ |
|
147 | - public function setLegacyRequest(LegacyRequestInterface $legacy_request) |
|
148 | - { |
|
149 | - $this->legacy_request = $legacy_request; |
|
150 | - } |
|
151 | - |
|
152 | - |
|
153 | - /** |
|
154 | - * @param ResponseInterface $response |
|
155 | - */ |
|
156 | - public function setResponse(ResponseInterface $response) |
|
157 | - { |
|
158 | - $this->response = $response; |
|
159 | - } |
|
160 | - |
|
161 | - |
|
162 | - /** |
|
163 | - * @param LoaderInterface $loader |
|
164 | - */ |
|
165 | - public function setLoader(LoaderInterface $loader) |
|
166 | - { |
|
167 | - $this->loader = $loader; |
|
168 | - } |
|
169 | - |
|
170 | - |
|
171 | - /** |
|
172 | - * @param string $class |
|
173 | - * @param array $dependencies |
|
174 | - * @param int $overwrite |
|
175 | - * @return bool |
|
176 | - */ |
|
177 | - public static function register_dependencies( |
|
178 | - $class, |
|
179 | - array $dependencies, |
|
180 | - $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
181 | - ) { |
|
182 | - return EE_Dependency_Map::$_instance->registerDependencies($class, $dependencies, $overwrite); |
|
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - /** |
|
187 | - * Assigns an array of class names and corresponding load sources (new or cached) |
|
188 | - * to the class specified by the first parameter. |
|
189 | - * IMPORTANT !!! |
|
190 | - * The order of elements in the incoming $dependencies array MUST match |
|
191 | - * the order of the constructor parameters for the class in question. |
|
192 | - * This is especially important when overriding any existing dependencies that are registered. |
|
193 | - * the third parameter controls whether any duplicate dependencies are overwritten or not. |
|
194 | - * |
|
195 | - * @param string $class |
|
196 | - * @param array $dependencies |
|
197 | - * @param int $overwrite |
|
198 | - * @return bool |
|
199 | - */ |
|
200 | - public function registerDependencies( |
|
201 | - $class, |
|
202 | - array $dependencies, |
|
203 | - $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
204 | - ) { |
|
205 | - $class = trim($class, '\\'); |
|
206 | - $registered = false; |
|
207 | - if (empty(EE_Dependency_Map::$_instance->_dependency_map[ $class ])) { |
|
208 | - EE_Dependency_Map::$_instance->_dependency_map[ $class ] = []; |
|
209 | - } |
|
210 | - // we need to make sure that any aliases used when registering a dependency |
|
211 | - // get resolved to the correct class name |
|
212 | - foreach ($dependencies as $dependency => $load_source) { |
|
213 | - $alias = EE_Dependency_Map::$_instance->getFqnForAlias($dependency); |
|
214 | - if ($overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES |
|
215 | - || ! isset(EE_Dependency_Map::$_instance->_dependency_map[ $class ][ $alias ]) |
|
216 | - ) { |
|
217 | - unset($dependencies[ $dependency ]); |
|
218 | - $dependencies[ $alias ] = $load_source; |
|
219 | - $registered = true; |
|
220 | - } |
|
221 | - } |
|
222 | - // now add our two lists of dependencies together. |
|
223 | - // using Union (+=) favours the arrays in precedence from left to right, |
|
224 | - // so $dependencies is NOT overwritten because it is listed first |
|
225 | - // ie: with A = B + C, entries in B take precedence over duplicate entries in C |
|
226 | - // Union is way faster than array_merge() but should be used with caution... |
|
227 | - // especially with numerically indexed arrays |
|
228 | - $dependencies += EE_Dependency_Map::$_instance->_dependency_map[ $class ]; |
|
229 | - // now we need to ensure that the resulting dependencies |
|
230 | - // array only has the entries that are required for the class |
|
231 | - // so first count how many dependencies were originally registered for the class |
|
232 | - $dependency_count = count(EE_Dependency_Map::$_instance->_dependency_map[ $class ]); |
|
233 | - // if that count is non-zero (meaning dependencies were already registered) |
|
234 | - EE_Dependency_Map::$_instance->_dependency_map[ $class ] = $dependency_count |
|
235 | - // then truncate the final array to match that count |
|
236 | - ? array_slice($dependencies, 0, $dependency_count) |
|
237 | - // otherwise just take the incoming array because nothing previously existed |
|
238 | - : $dependencies; |
|
239 | - return $registered; |
|
240 | - } |
|
241 | - |
|
242 | - |
|
243 | - /** |
|
244 | - * @param string $class_name |
|
245 | - * @param string $loader |
|
246 | - * @return bool |
|
247 | - * @throws DomainException |
|
248 | - */ |
|
249 | - public static function register_class_loader($class_name, $loader = 'load_core') |
|
250 | - { |
|
251 | - return EE_Dependency_Map::$_instance->registerClassLoader($class_name, $loader); |
|
252 | - } |
|
253 | - |
|
254 | - |
|
255 | - /** |
|
256 | - * @param string $class_name |
|
257 | - * @param string $loader |
|
258 | - * @return bool |
|
259 | - * @throws DomainException |
|
260 | - */ |
|
261 | - public function registerClassLoader($class_name, $loader = 'load_core') |
|
262 | - { |
|
263 | - if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) { |
|
264 | - throw new DomainException( |
|
265 | - esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso') |
|
266 | - ); |
|
267 | - } |
|
268 | - // check that loader is callable or method starts with "load_" and exists in EE_Registry |
|
269 | - if (! is_callable($loader) |
|
270 | - && ( |
|
271 | - strpos($loader, 'load_') !== 0 |
|
272 | - || ! method_exists('EE_Registry', $loader) |
|
273 | - ) |
|
274 | - ) { |
|
275 | - throw new DomainException( |
|
276 | - sprintf( |
|
277 | - esc_html__( |
|
278 | - '"%1$s" is not a valid loader method on EE_Registry.', |
|
279 | - 'event_espresso' |
|
280 | - ), |
|
281 | - $loader |
|
282 | - ) |
|
283 | - ); |
|
284 | - } |
|
285 | - $class_name = EE_Dependency_Map::$_instance->getFqnForAlias($class_name); |
|
286 | - if (! isset(EE_Dependency_Map::$_instance->_class_loaders[ $class_name ])) { |
|
287 | - EE_Dependency_Map::$_instance->_class_loaders[ $class_name ] = $loader; |
|
288 | - return true; |
|
289 | - } |
|
290 | - return false; |
|
291 | - } |
|
292 | - |
|
293 | - |
|
294 | - /** |
|
295 | - * @return array |
|
296 | - */ |
|
297 | - public function dependency_map() |
|
298 | - { |
|
299 | - return $this->_dependency_map; |
|
300 | - } |
|
301 | - |
|
302 | - |
|
303 | - /** |
|
304 | - * returns TRUE if dependency map contains a listing for the provided class name |
|
305 | - * |
|
306 | - * @param string $class_name |
|
307 | - * @return boolean |
|
308 | - */ |
|
309 | - public function has($class_name = '') |
|
310 | - { |
|
311 | - // all legacy models have the same dependencies |
|
312 | - if (strpos($class_name, 'EEM_') === 0) { |
|
313 | - $class_name = 'LEGACY_MODELS'; |
|
314 | - } |
|
315 | - return isset($this->_dependency_map[ $class_name ]); |
|
316 | - } |
|
317 | - |
|
318 | - |
|
319 | - /** |
|
320 | - * returns TRUE if dependency map contains a listing for the provided class name AND dependency |
|
321 | - * |
|
322 | - * @param string $class_name |
|
323 | - * @param string $dependency |
|
324 | - * @return bool |
|
325 | - */ |
|
326 | - public function has_dependency_for_class($class_name = '', $dependency = '') |
|
327 | - { |
|
328 | - // all legacy models have the same dependencies |
|
329 | - if (strpos($class_name, 'EEM_') === 0) { |
|
330 | - $class_name = 'LEGACY_MODELS'; |
|
331 | - } |
|
332 | - $dependency = $this->getFqnForAlias($dependency, $class_name); |
|
333 | - return isset($this->_dependency_map[ $class_name ][ $dependency ]); |
|
334 | - } |
|
335 | - |
|
336 | - |
|
337 | - /** |
|
338 | - * returns loading strategy for whether a previously cached dependency should be loaded or a new instance returned |
|
339 | - * |
|
340 | - * @param string $class_name |
|
341 | - * @param string $dependency |
|
342 | - * @return int |
|
343 | - */ |
|
344 | - public function loading_strategy_for_class_dependency($class_name = '', $dependency = '') |
|
345 | - { |
|
346 | - // all legacy models have the same dependencies |
|
347 | - if (strpos($class_name, 'EEM_') === 0) { |
|
348 | - $class_name = 'LEGACY_MODELS'; |
|
349 | - } |
|
350 | - $dependency = $this->getFqnForAlias($dependency); |
|
351 | - return $this->has_dependency_for_class($class_name, $dependency) |
|
352 | - ? $this->_dependency_map[ $class_name ][ $dependency ] |
|
353 | - : EE_Dependency_Map::not_registered; |
|
354 | - } |
|
355 | - |
|
356 | - |
|
357 | - /** |
|
358 | - * @param string $class_name |
|
359 | - * @return string | Closure |
|
360 | - */ |
|
361 | - public function class_loader($class_name) |
|
362 | - { |
|
363 | - // all legacy models use load_model() |
|
364 | - if (strpos($class_name, 'EEM_') === 0) { |
|
365 | - return 'load_model'; |
|
366 | - } |
|
367 | - // EE_CPT_*_Strategy classes like EE_CPT_Event_Strategy, EE_CPT_Venue_Strategy, etc |
|
368 | - // perform strpos() first to avoid loading regex every time we load a class |
|
369 | - if (strpos($class_name, 'EE_CPT_') === 0 |
|
370 | - && preg_match('/^EE_CPT_([a-zA-Z]+)_Strategy$/', $class_name) |
|
371 | - ) { |
|
372 | - return 'load_core'; |
|
373 | - } |
|
374 | - $class_name = $this->getFqnForAlias($class_name); |
|
375 | - return isset($this->_class_loaders[ $class_name ]) ? $this->_class_loaders[ $class_name ] : ''; |
|
376 | - } |
|
377 | - |
|
378 | - |
|
379 | - /** |
|
380 | - * @return array |
|
381 | - */ |
|
382 | - public function class_loaders() |
|
383 | - { |
|
384 | - return $this->_class_loaders; |
|
385 | - } |
|
386 | - |
|
387 | - |
|
388 | - /** |
|
389 | - * adds an alias for a classname |
|
390 | - * |
|
391 | - * @param string $fqcn the class name that should be used (concrete class to replace interface) |
|
392 | - * @param string $alias the class name that would be type hinted for (abstract parent or interface) |
|
393 | - * @param string $for_class the class that has the dependency (is type hinting for the interface) |
|
394 | - * @throws InvalidAliasException |
|
395 | - */ |
|
396 | - public function add_alias($fqcn, $alias, $for_class = '') |
|
397 | - { |
|
398 | - $this->class_cache->addAlias($fqcn, $alias, $for_class); |
|
399 | - } |
|
400 | - |
|
401 | - |
|
402 | - /** |
|
403 | - * Returns TRUE if the provided fully qualified name IS an alias |
|
404 | - * WHY? |
|
405 | - * Because if a class is type hinting for a concretion, |
|
406 | - * then why would we need to find another class to supply it? |
|
407 | - * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
408 | - * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
409 | - * Don't go looking for some substitute. |
|
410 | - * Whereas if a class is type hinting for an interface... |
|
411 | - * then we need to find an actual class to use. |
|
412 | - * So the interface IS the alias for some other FQN, |
|
413 | - * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
414 | - * represents some other class. |
|
415 | - * |
|
416 | - * @param string $fqn |
|
417 | - * @param string $for_class |
|
418 | - * @return bool |
|
419 | - */ |
|
420 | - public function isAlias($fqn = '', $for_class = '') |
|
421 | - { |
|
422 | - return $this->class_cache->isAlias($fqn, $for_class); |
|
423 | - } |
|
424 | - |
|
425 | - |
|
426 | - /** |
|
427 | - * Returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
428 | - * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
429 | - * for example: |
|
430 | - * if the following two entries were added to the _aliases array: |
|
431 | - * array( |
|
432 | - * 'interface_alias' => 'some\namespace\interface' |
|
433 | - * 'some\namespace\interface' => 'some\namespace\classname' |
|
434 | - * ) |
|
435 | - * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
436 | - * to load an instance of 'some\namespace\classname' |
|
437 | - * |
|
438 | - * @param string $alias |
|
439 | - * @param string $for_class |
|
440 | - * @return string |
|
441 | - */ |
|
442 | - public function getFqnForAlias($alias = '', $for_class = '') |
|
443 | - { |
|
444 | - return (string) $this->class_cache->getFqnForAlias($alias, $for_class); |
|
445 | - } |
|
446 | - |
|
447 | - |
|
448 | - /** |
|
449 | - * Registers the core dependencies and whether a previously instantiated object should be loaded from the cache, |
|
450 | - * if one exists, or whether a new object should be generated every time the requested class is loaded. |
|
451 | - * This is done by using the following class constants: |
|
452 | - * EE_Dependency_Map::load_from_cache - loads previously instantiated object |
|
453 | - * EE_Dependency_Map::load_new_object - generates a new object every time |
|
454 | - */ |
|
455 | - protected function _register_core_dependencies() |
|
456 | - { |
|
457 | - $this->_dependency_map = [ |
|
458 | - 'EE_Request_Handler' => [ |
|
459 | - 'EE_Request' => EE_Dependency_Map::load_from_cache, |
|
460 | - ], |
|
461 | - 'EE_System' => [ |
|
462 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
463 | - 'EE_Maintenance_Mode' => EE_Dependency_Map::load_from_cache, |
|
464 | - 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
465 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
466 | - 'EventEspresso\core\services\routing\Router' => EE_Dependency_Map::load_from_cache, |
|
467 | - ], |
|
468 | - 'EE_Admin' => [ |
|
469 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
470 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
471 | - ], |
|
472 | - 'EE_Cart' => [ |
|
473 | - 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
474 | - ], |
|
475 | - 'EE_Messenger_Collection_Loader' => [ |
|
476 | - 'EE_Messenger_Collection' => EE_Dependency_Map::load_new_object, |
|
477 | - ], |
|
478 | - 'EE_Message_Type_Collection_Loader' => [ |
|
479 | - 'EE_Message_Type_Collection' => EE_Dependency_Map::load_new_object, |
|
480 | - ], |
|
481 | - 'EE_Message_Resource_Manager' => [ |
|
482 | - 'EE_Messenger_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
483 | - 'EE_Message_Type_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
484 | - 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
485 | - ], |
|
486 | - 'EE_Message_Factory' => [ |
|
487 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
488 | - ], |
|
489 | - 'EE_messages' => [ |
|
490 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
491 | - ], |
|
492 | - 'EE_Messages_Generator' => [ |
|
493 | - 'EE_Messages_Queue' => EE_Dependency_Map::load_new_object, |
|
494 | - 'EE_Messages_Data_Handler_Collection' => EE_Dependency_Map::load_new_object, |
|
495 | - 'EE_Message_Template_Group_Collection' => EE_Dependency_Map::load_new_object, |
|
496 | - 'EEH_Parse_Shortcodes' => EE_Dependency_Map::load_from_cache, |
|
497 | - ], |
|
498 | - 'EE_Messages_Processor' => [ |
|
499 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
500 | - ], |
|
501 | - 'EE_Messages_Queue' => [ |
|
502 | - 'EE_Message_Repository' => EE_Dependency_Map::load_new_object, |
|
503 | - ], |
|
504 | - 'EE_Messages_Template_Defaults' => [ |
|
505 | - 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
506 | - 'EEM_Message_Template' => EE_Dependency_Map::load_from_cache, |
|
507 | - ], |
|
508 | - 'EE_Message_To_Generate_From_Request' => [ |
|
509 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
510 | - 'EE_Request_Handler' => EE_Dependency_Map::load_from_cache, |
|
511 | - ], |
|
512 | - 'EventEspresso\core\services\commands\CommandBus' => [ |
|
513 | - 'EventEspresso\core\services\commands\CommandHandlerManager' => EE_Dependency_Map::load_from_cache, |
|
514 | - ], |
|
515 | - 'EventEspresso\services\commands\CommandHandler' => [ |
|
516 | - 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
517 | - 'CommandBusInterface' => EE_Dependency_Map::load_from_cache, |
|
518 | - ], |
|
519 | - 'EventEspresso\core\services\commands\CommandHandlerManager' => [ |
|
520 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
521 | - ], |
|
522 | - 'EventEspresso\core\services\commands\CompositeCommandHandler' => [ |
|
523 | - 'EventEspresso\core\services\commands\CommandBus' => EE_Dependency_Map::load_from_cache, |
|
524 | - 'EventEspresso\core\services\commands\CommandFactory' => EE_Dependency_Map::load_from_cache, |
|
525 | - ], |
|
526 | - 'EventEspresso\core\services\commands\CommandFactory' => [ |
|
527 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
528 | - ], |
|
529 | - 'EventEspresso\core\services\commands\middleware\CapChecker' => [ |
|
530 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
531 | - ], |
|
532 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => [ |
|
533 | - 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
534 | - ], |
|
535 | - 'EventEspresso\core\domain\services\capabilities\RegistrationsCapChecker' => [ |
|
536 | - 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
537 | - ], |
|
538 | - 'EventEspresso\core\services\commands\registration\CreateRegistrationCommandHandler' => [ |
|
539 | - 'EventEspresso\core\domain\services\registration\CreateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
540 | - ], |
|
541 | - 'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommandHandler' => [ |
|
542 | - 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
543 | - ], |
|
544 | - 'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommandHandler' => [ |
|
545 | - 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
546 | - ], |
|
547 | - 'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler' => [ |
|
548 | - 'EventEspresso\core\domain\services\registration\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
549 | - ], |
|
550 | - 'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler' => [ |
|
551 | - 'EventEspresso\core\domain\services\registration\UpdateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
552 | - ], |
|
553 | - 'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommandHandler' => [ |
|
554 | - 'EventEspresso\core\domain\services\ticket\CreateTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
555 | - ], |
|
556 | - 'EventEspresso\core\services\commands\ticket\CancelTicketLineItemCommandHandler' => [ |
|
557 | - 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
558 | - ], |
|
559 | - 'EventEspresso\core\domain\services\registration\CancelRegistrationService' => [ |
|
560 | - 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
561 | - ], |
|
562 | - 'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler' => [ |
|
563 | - 'EEM_Attendee' => EE_Dependency_Map::load_from_cache, |
|
564 | - ], |
|
565 | - 'EventEspresso\core\services\database\TableManager' => [ |
|
566 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
567 | - ], |
|
568 | - 'EE_Data_Migration_Class_Base' => [ |
|
569 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
570 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
571 | - ], |
|
572 | - 'EE_DMS_Core_4_1_0' => [ |
|
573 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
574 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
575 | - ], |
|
576 | - 'EE_DMS_Core_4_2_0' => [ |
|
577 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
578 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
579 | - ], |
|
580 | - 'EE_DMS_Core_4_3_0' => [ |
|
581 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
582 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
583 | - ], |
|
584 | - 'EE_DMS_Core_4_4_0' => [ |
|
585 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
586 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
587 | - ], |
|
588 | - 'EE_DMS_Core_4_5_0' => [ |
|
589 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
590 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
591 | - ], |
|
592 | - 'EE_DMS_Core_4_6_0' => [ |
|
593 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
594 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
595 | - ], |
|
596 | - 'EE_DMS_Core_4_7_0' => [ |
|
597 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
598 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
599 | - ], |
|
600 | - 'EE_DMS_Core_4_8_0' => [ |
|
601 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
602 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
603 | - ], |
|
604 | - 'EE_DMS_Core_4_9_0' => [ |
|
605 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
606 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
607 | - ], |
|
608 | - 'EE_DMS_Core_4_10_0' => [ |
|
609 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
610 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
611 | - 'EE_DMS_Core_4_9_0' => EE_Dependency_Map::load_from_cache, |
|
612 | - ], |
|
613 | - 'EE_DMS_Core_4_11_0' => [ |
|
614 | - 'EE_DMS_Core_4_10_0' => EE_Dependency_Map::load_from_cache, |
|
615 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
616 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
617 | - ], |
|
618 | - 'EventEspresso\core\services\assets\Registry' => [ |
|
619 | - 'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_new_object, |
|
620 | - 'EventEspresso\core\services\assets\AssetManifest' => EE_Dependency_Map::load_from_cache, |
|
621 | - ], |
|
622 | - 'EventEspresso\core\services\cache\BasicCacheManager' => [ |
|
623 | - 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
624 | - ], |
|
625 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => [ |
|
626 | - 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
627 | - ], |
|
628 | - 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => [ |
|
629 | - 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
630 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
631 | - ], |
|
632 | - 'EventEspresso\core\domain\values\EmailAddress' => [ |
|
633 | - null, |
|
634 | - 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => EE_Dependency_Map::load_from_cache, |
|
635 | - ], |
|
636 | - 'EventEspresso\core\services\orm\ModelFieldFactory' => [ |
|
637 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
638 | - ], |
|
639 | - 'LEGACY_MODELS' => [ |
|
640 | - null, |
|
641 | - 'EventEspresso\core\services\database\ModelFieldFactory' => EE_Dependency_Map::load_from_cache, |
|
642 | - ], |
|
643 | - 'EE_Module_Request_Router' => [ |
|
644 | - 'EE_Request' => EE_Dependency_Map::load_from_cache, |
|
645 | - ], |
|
646 | - 'EE_Registration_Processor' => [ |
|
647 | - 'EE_Request' => EE_Dependency_Map::load_from_cache, |
|
648 | - ], |
|
649 | - 'EventEspresso\core\services\notifications\PersistentAdminNoticeManager' => [ |
|
650 | - null, |
|
651 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
652 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
653 | - ], |
|
654 | - 'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha' => [ |
|
655 | - 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
656 | - 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
657 | - ], |
|
658 | - 'EventEspresso\modules\ticket_selector\ProcessTicketSelector' => [ |
|
659 | - 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
660 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
661 | - 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
662 | - 'EEM_Ticket' => EE_Dependency_Map::load_from_cache, |
|
663 | - 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => EE_Dependency_Map::load_from_cache, |
|
664 | - ], |
|
665 | - 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => [ |
|
666 | - 'EEM_Datetime' => EE_Dependency_Map::load_from_cache, |
|
667 | - ], |
|
668 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => [ |
|
669 | - 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
670 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
671 | - ], |
|
672 | - 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomPostTypes' => [ |
|
673 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
674 | - ], |
|
675 | - 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomTaxonomies' => [ |
|
676 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
677 | - ], |
|
678 | - 'EE_CPT_Strategy' => [ |
|
679 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
680 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
681 | - ], |
|
682 | - 'EventEspresso\core\services\loaders\ObjectIdentifier' => [ |
|
683 | - 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
684 | - ], |
|
685 | - 'EventEspresso\core\CPTs\CptQueryModifier' => [ |
|
686 | - null, |
|
687 | - null, |
|
688 | - null, |
|
689 | - 'EE_Request_Handler' => EE_Dependency_Map::load_from_cache, |
|
690 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
691 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
692 | - ], |
|
693 | - 'EventEspresso\core\services\dependencies\DependencyResolver' => [ |
|
694 | - 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
695 | - 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
696 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
697 | - ], |
|
698 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => [ |
|
699 | - 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
700 | - 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
701 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
702 | - ], |
|
703 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => [ |
|
704 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => EE_Dependency_Map::load_from_cache, |
|
705 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
706 | - ], |
|
707 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationManager' => [ |
|
708 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationCollection' => EE_Dependency_Map::load_from_cache, |
|
709 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => EE_Dependency_Map::load_from_cache, |
|
710 | - ], |
|
711 | - 'EE_URL_Validation_Strategy' => [ |
|
712 | - null, |
|
713 | - null, |
|
714 | - 'EventEspresso\core\services\validators\URLValidator' => EE_Dependency_Map::load_from_cache, |
|
715 | - ], |
|
716 | - 'EventEspresso\core\services\request\files\FilesDataHandler' => [ |
|
717 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
718 | - ], |
|
719 | - 'EventEspressoBatchRequest\BatchRequestProcessor' => [ |
|
720 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
721 | - ], |
|
722 | - 'EventEspresso\core\domain\services\converters\RestApiSpoofer' => [ |
|
723 | - 'WP_REST_Server' => EE_Dependency_Map::load_from_cache, |
|
724 | - 'EED_Core_Rest_Api' => EE_Dependency_Map::load_from_cache, |
|
725 | - 'EventEspresso\core\libraries\rest_api\controllers\model\Read' => EE_Dependency_Map::load_from_cache, |
|
726 | - null, |
|
727 | - ], |
|
728 | - 'EventEspresso\core\services\routing\RouteHandler' => [ |
|
729 | - 'EventEspresso\core\services\json\JsonDataNodeHandler' => EE_Dependency_Map::load_from_cache, |
|
730 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
731 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
732 | - 'EventEspresso\core\services\routing\RouteCollection' => EE_Dependency_Map::load_from_cache, |
|
733 | - ], |
|
734 | - 'EventEspresso\core\services\json\JsonDataNodeHandler' => [ |
|
735 | - 'EventEspresso\core\services\json\JsonDataNodeValidator' => EE_Dependency_Map::load_from_cache, |
|
736 | - ], |
|
737 | - 'EventEspresso\core\services\routing\Router' => [ |
|
738 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
739 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
740 | - 'EventEspresso\core\services\routing\RouteHandler' => EE_Dependency_Map::load_from_cache, |
|
741 | - ], |
|
742 | - 'EventEspresso\core\services\assets\AssetManifest' => [ |
|
743 | - 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
744 | - ], |
|
745 | - 'EventEspresso\core\services\assets\AssetManifestFactory' => [ |
|
746 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
747 | - ], |
|
748 | - 'EventEspresso\core\services\assets\BaristaFactory' => [ |
|
749 | - 'EventEspresso\core\services\assets\AssetManifestFactory' => EE_Dependency_Map::load_from_cache, |
|
750 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
751 | - ], |
|
752 | - 'EventEspresso\core\domain\services\capabilities\FeatureFlags' => [ |
|
753 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
754 | - ], |
|
755 | - ]; |
|
756 | - } |
|
757 | - |
|
758 | - |
|
759 | - /** |
|
760 | - * Registers how core classes are loaded. |
|
761 | - * This can either be done by simply providing the name of one of the EE_Registry loader methods such as: |
|
762 | - * 'EE_Request_Handler' => 'load_core' |
|
763 | - * 'EE_Messages_Queue' => 'load_lib' |
|
764 | - * 'EEH_Debug_Tools' => 'load_helper' |
|
765 | - * or, if greater control is required, by providing a custom closure. For example: |
|
766 | - * 'Some_Class' => function () { |
|
767 | - * return new Some_Class(); |
|
768 | - * }, |
|
769 | - * This is required for instantiating dependencies |
|
770 | - * where an interface has been type hinted in a class constructor. For example: |
|
771 | - * 'Required_Interface' => function () { |
|
772 | - * return new A_Class_That_Implements_Required_Interface(); |
|
773 | - * }, |
|
774 | - */ |
|
775 | - protected function _register_core_class_loaders() |
|
776 | - { |
|
777 | - $this->_class_loaders = [ |
|
778 | - // load_core |
|
779 | - 'EE_Dependency_Map' => function () { |
|
780 | - return $this; |
|
781 | - }, |
|
782 | - 'EE_Capabilities' => 'load_core', |
|
783 | - 'EE_Encryption' => 'load_core', |
|
784 | - 'EE_Front_Controller' => 'load_core', |
|
785 | - 'EE_Module_Request_Router' => 'load_core', |
|
786 | - 'EE_Registry' => 'load_core', |
|
787 | - 'EE_Request' => function () { |
|
788 | - return $this->legacy_request; |
|
789 | - }, |
|
790 | - 'EventEspresso\core\services\request\Request' => function () { |
|
791 | - return $this->request; |
|
792 | - }, |
|
793 | - 'EventEspresso\core\services\request\Response' => function () { |
|
794 | - return $this->response; |
|
795 | - }, |
|
796 | - 'EE_Base' => 'load_core', |
|
797 | - 'EE_Request_Handler' => 'load_core', |
|
798 | - 'EE_Session' => 'load_core', |
|
799 | - 'EE_Cron_Tasks' => 'load_core', |
|
800 | - 'EE_System' => 'load_core', |
|
801 | - 'EE_Maintenance_Mode' => 'load_core', |
|
802 | - 'EE_Register_CPTs' => 'load_core', |
|
803 | - 'EE_Admin' => 'load_core', |
|
804 | - 'EE_CPT_Strategy' => 'load_core', |
|
805 | - // load_class |
|
806 | - 'EE_Registration_Processor' => 'load_class', |
|
807 | - // load_lib |
|
808 | - 'EE_Message_Resource_Manager' => 'load_lib', |
|
809 | - 'EE_Message_Type_Collection' => 'load_lib', |
|
810 | - 'EE_Message_Type_Collection_Loader' => 'load_lib', |
|
811 | - 'EE_Messenger_Collection' => 'load_lib', |
|
812 | - 'EE_Messenger_Collection_Loader' => 'load_lib', |
|
813 | - 'EE_Messages_Processor' => 'load_lib', |
|
814 | - 'EE_Message_Repository' => 'load_lib', |
|
815 | - 'EE_Messages_Queue' => 'load_lib', |
|
816 | - 'EE_Messages_Data_Handler_Collection' => 'load_lib', |
|
817 | - 'EE_Message_Template_Group_Collection' => 'load_lib', |
|
818 | - 'EE_Payment_Method_Manager' => 'load_lib', |
|
819 | - 'EE_DMS_Core_4_1_0' => 'load_dms', |
|
820 | - 'EE_DMS_Core_4_2_0' => 'load_dms', |
|
821 | - 'EE_DMS_Core_4_3_0' => 'load_dms', |
|
822 | - 'EE_DMS_Core_4_5_0' => 'load_dms', |
|
823 | - 'EE_DMS_Core_4_6_0' => 'load_dms', |
|
824 | - 'EE_DMS_Core_4_7_0' => 'load_dms', |
|
825 | - 'EE_DMS_Core_4_8_0' => 'load_dms', |
|
826 | - 'EE_DMS_Core_4_9_0' => 'load_dms', |
|
827 | - 'EE_DMS_Core_4_10_0' => 'load_dms', |
|
828 | - 'EE_Messages_Generator' => static function () { |
|
829 | - return EE_Registry::instance()->load_lib( |
|
830 | - 'Messages_Generator', |
|
831 | - [], |
|
832 | - false, |
|
833 | - false |
|
834 | - ); |
|
835 | - }, |
|
836 | - 'EE_Messages_Template_Defaults' => static function ($arguments = []) { |
|
837 | - return EE_Registry::instance()->load_lib( |
|
838 | - 'Messages_Template_Defaults', |
|
839 | - $arguments, |
|
840 | - false, |
|
841 | - false |
|
842 | - ); |
|
843 | - }, |
|
844 | - // load_helper |
|
845 | - 'EEH_Parse_Shortcodes' => static function () { |
|
846 | - if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) { |
|
847 | - return new EEH_Parse_Shortcodes(); |
|
848 | - } |
|
849 | - return null; |
|
850 | - }, |
|
851 | - 'EE_Template_Config' => static function () { |
|
852 | - return EE_Config::instance()->template_settings; |
|
853 | - }, |
|
854 | - 'EE_Currency_Config' => static function () { |
|
855 | - return EE_Config::instance()->currency; |
|
856 | - }, |
|
857 | - 'EE_Registration_Config' => static function () { |
|
858 | - return EE_Config::instance()->registration; |
|
859 | - }, |
|
860 | - 'EE_Core_Config' => static function () { |
|
861 | - return EE_Config::instance()->core; |
|
862 | - }, |
|
863 | - 'EventEspresso\core\services\loaders\Loader' => static function () { |
|
864 | - return LoaderFactory::getLoader(); |
|
865 | - }, |
|
866 | - 'EE_Network_Config' => static function () { |
|
867 | - return EE_Network_Config::instance(); |
|
868 | - }, |
|
869 | - 'EE_Config' => static function () { |
|
870 | - return EE_Config::instance(); |
|
871 | - }, |
|
872 | - 'EventEspresso\core\domain\Domain' => static function () { |
|
873 | - return DomainFactory::getEventEspressoCoreDomain(); |
|
874 | - }, |
|
875 | - 'EE_Admin_Config' => static function () { |
|
876 | - return EE_Config::instance()->admin; |
|
877 | - }, |
|
878 | - 'EE_Organization_Config' => static function () { |
|
879 | - return EE_Config::instance()->organization; |
|
880 | - }, |
|
881 | - 'EE_Network_Core_Config' => static function () { |
|
882 | - return EE_Network_Config::instance()->core; |
|
883 | - }, |
|
884 | - 'EE_Environment_Config' => static function () { |
|
885 | - return EE_Config::instance()->environment; |
|
886 | - }, |
|
887 | - 'EED_Core_Rest_Api' => static function () { |
|
888 | - return EED_Core_Rest_Api::instance(); |
|
889 | - }, |
|
890 | - 'WP_REST_Server' => static function () { |
|
891 | - return rest_get_server(); |
|
892 | - }, |
|
893 | - ]; |
|
894 | - } |
|
895 | - |
|
896 | - |
|
897 | - /** |
|
898 | - * can be used for supplying alternate names for classes, |
|
899 | - * or for connecting interface names to instantiable classes |
|
900 | - * |
|
901 | - * @throws InvalidAliasException |
|
902 | - */ |
|
903 | - protected function _register_core_aliases() |
|
904 | - { |
|
905 | - $aliases = [ |
|
906 | - 'CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBusInterface', |
|
907 | - 'EventEspresso\core\services\commands\CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBus', |
|
908 | - 'CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManagerInterface', |
|
909 | - 'EventEspresso\core\services\commands\CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManager', |
|
910 | - 'CapChecker' => 'EventEspresso\core\services\commands\middleware\CapChecker', |
|
911 | - 'AddActionHook' => 'EventEspresso\core\services\commands\middleware\AddActionHook', |
|
912 | - 'CapabilitiesChecker' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
913 | - 'CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface', |
|
914 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
915 | - 'CreateRegistrationService' => 'EventEspresso\core\domain\services\registration\CreateRegistrationService', |
|
916 | - 'CreateRegistrationCommandHandler' => 'EventEspresso\core\services\commands\registration\CreateRegistrationCommand', |
|
917 | - 'CopyRegistrationDetailsCommandHandler' => 'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommand', |
|
918 | - 'CopyRegistrationPaymentsCommandHandler' => 'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommand', |
|
919 | - 'CancelRegistrationAndTicketLineItemCommandHandler' => 'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler', |
|
920 | - 'UpdateRegistrationAndTransactionAfterChangeCommandHandler' => 'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler', |
|
921 | - 'CreateTicketLineItemCommandHandler' => 'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommand', |
|
922 | - 'CreateTransactionCommandHandler' => 'EventEspresso\core\services\commands\transaction\CreateTransactionCommandHandler', |
|
923 | - 'CreateAttendeeCommandHandler' => 'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler', |
|
924 | - 'TableManager' => 'EventEspresso\core\services\database\TableManager', |
|
925 | - 'TableAnalysis' => 'EventEspresso\core\services\database\TableAnalysis', |
|
926 | - 'EspressoShortcode' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
927 | - 'ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\ShortcodeInterface', |
|
928 | - 'EventEspresso\core\services\shortcodes\ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
929 | - 'EventEspresso\core\services\cache\CacheStorageInterface' => 'EventEspresso\core\services\cache\TransientCacheStorage', |
|
930 | - 'LoaderInterface' => 'EventEspresso\core\services\loaders\LoaderInterface', |
|
931 | - 'EventEspresso\core\services\loaders\LoaderInterface' => 'EventEspresso\core\services\loaders\Loader', |
|
932 | - 'CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactoryInterface', |
|
933 | - 'EventEspresso\core\services\commands\CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactory', |
|
934 | - 'EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface', |
|
935 | - 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidationService', |
|
936 | - 'NoticeConverterInterface' => 'EventEspresso\core\services\notices\NoticeConverterInterface', |
|
937 | - 'EventEspresso\core\services\notices\NoticeConverterInterface' => 'EventEspresso\core\services\notices\ConvertNoticesToEeErrors', |
|
938 | - 'NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainerInterface', |
|
939 | - 'EventEspresso\core\services\notices\NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainer', |
|
940 | - 'EventEspresso\core\services\request\RequestInterface' => 'EventEspresso\core\services\request\Request', |
|
941 | - 'EventEspresso\core\services\request\ResponseInterface' => 'EventEspresso\core\services\request\Response', |
|
942 | - 'EventEspresso\core\domain\DomainInterface' => 'EventEspresso\core\domain\Domain', |
|
943 | - 'Registration_Processor' => 'EE_Registration_Processor', |
|
944 | - 'EventEspresso\core\services\assets\AssetManifestInterface' => 'EventEspresso\core\services\assets\AssetManifest', |
|
945 | - ]; |
|
946 | - foreach ($aliases as $alias => $fqn) { |
|
947 | - if (is_array($fqn)) { |
|
948 | - foreach ($fqn as $class => $for_class) { |
|
949 | - $this->class_cache->addAlias($class, $alias, $for_class); |
|
950 | - } |
|
951 | - continue; |
|
952 | - } |
|
953 | - $this->class_cache->addAlias($fqn, $alias); |
|
954 | - } |
|
955 | - if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) { |
|
956 | - $this->class_cache->addAlias( |
|
957 | - 'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices', |
|
958 | - 'EventEspresso\core\services\notices\NoticeConverterInterface' |
|
959 | - ); |
|
960 | - } |
|
961 | - } |
|
962 | - |
|
963 | - |
|
964 | - /** |
|
965 | - * This is used to reset the internal map and class_loaders to their original default state at the beginning of the |
|
966 | - * request Primarily used by unit tests. |
|
967 | - */ |
|
968 | - public function reset() |
|
969 | - { |
|
970 | - $this->_register_core_class_loaders(); |
|
971 | - $this->_register_core_dependencies(); |
|
972 | - } |
|
973 | - |
|
974 | - |
|
975 | - /** |
|
976 | - * PLZ NOTE: a better name for this method would be is_alias() |
|
977 | - * because it returns TRUE if the provided fully qualified name IS an alias |
|
978 | - * WHY? |
|
979 | - * Because if a class is type hinting for a concretion, |
|
980 | - * then why would we need to find another class to supply it? |
|
981 | - * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
982 | - * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
983 | - * Don't go looking for some substitute. |
|
984 | - * Whereas if a class is type hinting for an interface... |
|
985 | - * then we need to find an actual class to use. |
|
986 | - * So the interface IS the alias for some other FQN, |
|
987 | - * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
988 | - * represents some other class. |
|
989 | - * |
|
990 | - * @param string $fqn |
|
991 | - * @param string $for_class |
|
992 | - * @return bool |
|
993 | - * @deprecated 4.9.62.p |
|
994 | - */ |
|
995 | - public function has_alias($fqn = '', $for_class = '') |
|
996 | - { |
|
997 | - return $this->isAlias($fqn, $for_class); |
|
998 | - } |
|
999 | - |
|
1000 | - |
|
1001 | - /** |
|
1002 | - * PLZ NOTE: a better name for this method would be get_fqn_for_alias() |
|
1003 | - * because it returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
1004 | - * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
1005 | - * for example: |
|
1006 | - * if the following two entries were added to the _aliases array: |
|
1007 | - * array( |
|
1008 | - * 'interface_alias' => 'some\namespace\interface' |
|
1009 | - * 'some\namespace\interface' => 'some\namespace\classname' |
|
1010 | - * ) |
|
1011 | - * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
1012 | - * to load an instance of 'some\namespace\classname' |
|
1013 | - * |
|
1014 | - * @param string $alias |
|
1015 | - * @param string $for_class |
|
1016 | - * @return string |
|
1017 | - * @deprecated 4.9.62.p |
|
1018 | - */ |
|
1019 | - public function get_alias($alias = '', $for_class = '') |
|
1020 | - { |
|
1021 | - return $this->getFqnForAlias($alias, $for_class); |
|
1022 | - } |
|
24 | + /** |
|
25 | + * This means that the requested class dependency is not present in the dependency map |
|
26 | + */ |
|
27 | + const not_registered = 0; |
|
28 | + |
|
29 | + /** |
|
30 | + * This instructs class loaders to ALWAYS return a newly instantiated object for the requested class. |
|
31 | + */ |
|
32 | + const load_new_object = 1; |
|
33 | + |
|
34 | + /** |
|
35 | + * This instructs class loaders to return a previously instantiated and cached object for the requested class. |
|
36 | + * IF a previously instantiated object does not exist, a new one will be created and added to the cache. |
|
37 | + */ |
|
38 | + const load_from_cache = 2; |
|
39 | + |
|
40 | + /** |
|
41 | + * When registering a dependency, |
|
42 | + * this indicates to keep any existing dependencies that already exist, |
|
43 | + * and simply discard any new dependencies declared in the incoming data |
|
44 | + */ |
|
45 | + const KEEP_EXISTING_DEPENDENCIES = 0; |
|
46 | + |
|
47 | + /** |
|
48 | + * When registering a dependency, |
|
49 | + * this indicates to overwrite any existing dependencies that already exist using the incoming data |
|
50 | + */ |
|
51 | + const OVERWRITE_DEPENDENCIES = 1; |
|
52 | + |
|
53 | + /** |
|
54 | + * @type EE_Dependency_Map $_instance |
|
55 | + */ |
|
56 | + protected static $_instance; |
|
57 | + |
|
58 | + /** |
|
59 | + * @var ClassInterfaceCache $class_cache |
|
60 | + */ |
|
61 | + private $class_cache; |
|
62 | + |
|
63 | + /** |
|
64 | + * @type RequestInterface $request |
|
65 | + */ |
|
66 | + protected $request; |
|
67 | + |
|
68 | + /** |
|
69 | + * @type LegacyRequestInterface $legacy_request |
|
70 | + */ |
|
71 | + protected $legacy_request; |
|
72 | + |
|
73 | + /** |
|
74 | + * @type ResponseInterface $response |
|
75 | + */ |
|
76 | + protected $response; |
|
77 | + |
|
78 | + /** |
|
79 | + * @type LoaderInterface $loader |
|
80 | + */ |
|
81 | + protected $loader; |
|
82 | + |
|
83 | + /** |
|
84 | + * @type array $_dependency_map |
|
85 | + */ |
|
86 | + protected $_dependency_map = []; |
|
87 | + |
|
88 | + /** |
|
89 | + * @type array $_class_loaders |
|
90 | + */ |
|
91 | + protected $_class_loaders = []; |
|
92 | + |
|
93 | + |
|
94 | + /** |
|
95 | + * EE_Dependency_Map constructor. |
|
96 | + * |
|
97 | + * @param ClassInterfaceCache $class_cache |
|
98 | + */ |
|
99 | + protected function __construct(ClassInterfaceCache $class_cache) |
|
100 | + { |
|
101 | + $this->class_cache = $class_cache; |
|
102 | + do_action('EE_Dependency_Map____construct', $this); |
|
103 | + } |
|
104 | + |
|
105 | + |
|
106 | + /** |
|
107 | + * @return void |
|
108 | + * @throws InvalidAliasException |
|
109 | + */ |
|
110 | + public function initialize() |
|
111 | + { |
|
112 | + $this->_register_core_dependencies(); |
|
113 | + $this->_register_core_class_loaders(); |
|
114 | + $this->_register_core_aliases(); |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + /** |
|
119 | + * @singleton method used to instantiate class object |
|
120 | + * @param ClassInterfaceCache|null $class_cache |
|
121 | + * @return EE_Dependency_Map |
|
122 | + */ |
|
123 | + public static function instance(ClassInterfaceCache $class_cache = null) |
|
124 | + { |
|
125 | + // check if class object is instantiated, and instantiated properly |
|
126 | + if (! EE_Dependency_Map::$_instance instanceof EE_Dependency_Map |
|
127 | + && $class_cache instanceof ClassInterfaceCache |
|
128 | + ) { |
|
129 | + EE_Dependency_Map::$_instance = new EE_Dependency_Map($class_cache); |
|
130 | + } |
|
131 | + return EE_Dependency_Map::$_instance; |
|
132 | + } |
|
133 | + |
|
134 | + |
|
135 | + /** |
|
136 | + * @param RequestInterface $request |
|
137 | + */ |
|
138 | + public function setRequest(RequestInterface $request) |
|
139 | + { |
|
140 | + $this->request = $request; |
|
141 | + } |
|
142 | + |
|
143 | + |
|
144 | + /** |
|
145 | + * @param LegacyRequestInterface $legacy_request |
|
146 | + */ |
|
147 | + public function setLegacyRequest(LegacyRequestInterface $legacy_request) |
|
148 | + { |
|
149 | + $this->legacy_request = $legacy_request; |
|
150 | + } |
|
151 | + |
|
152 | + |
|
153 | + /** |
|
154 | + * @param ResponseInterface $response |
|
155 | + */ |
|
156 | + public function setResponse(ResponseInterface $response) |
|
157 | + { |
|
158 | + $this->response = $response; |
|
159 | + } |
|
160 | + |
|
161 | + |
|
162 | + /** |
|
163 | + * @param LoaderInterface $loader |
|
164 | + */ |
|
165 | + public function setLoader(LoaderInterface $loader) |
|
166 | + { |
|
167 | + $this->loader = $loader; |
|
168 | + } |
|
169 | + |
|
170 | + |
|
171 | + /** |
|
172 | + * @param string $class |
|
173 | + * @param array $dependencies |
|
174 | + * @param int $overwrite |
|
175 | + * @return bool |
|
176 | + */ |
|
177 | + public static function register_dependencies( |
|
178 | + $class, |
|
179 | + array $dependencies, |
|
180 | + $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
181 | + ) { |
|
182 | + return EE_Dependency_Map::$_instance->registerDependencies($class, $dependencies, $overwrite); |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + /** |
|
187 | + * Assigns an array of class names and corresponding load sources (new or cached) |
|
188 | + * to the class specified by the first parameter. |
|
189 | + * IMPORTANT !!! |
|
190 | + * The order of elements in the incoming $dependencies array MUST match |
|
191 | + * the order of the constructor parameters for the class in question. |
|
192 | + * This is especially important when overriding any existing dependencies that are registered. |
|
193 | + * the third parameter controls whether any duplicate dependencies are overwritten or not. |
|
194 | + * |
|
195 | + * @param string $class |
|
196 | + * @param array $dependencies |
|
197 | + * @param int $overwrite |
|
198 | + * @return bool |
|
199 | + */ |
|
200 | + public function registerDependencies( |
|
201 | + $class, |
|
202 | + array $dependencies, |
|
203 | + $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
204 | + ) { |
|
205 | + $class = trim($class, '\\'); |
|
206 | + $registered = false; |
|
207 | + if (empty(EE_Dependency_Map::$_instance->_dependency_map[ $class ])) { |
|
208 | + EE_Dependency_Map::$_instance->_dependency_map[ $class ] = []; |
|
209 | + } |
|
210 | + // we need to make sure that any aliases used when registering a dependency |
|
211 | + // get resolved to the correct class name |
|
212 | + foreach ($dependencies as $dependency => $load_source) { |
|
213 | + $alias = EE_Dependency_Map::$_instance->getFqnForAlias($dependency); |
|
214 | + if ($overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES |
|
215 | + || ! isset(EE_Dependency_Map::$_instance->_dependency_map[ $class ][ $alias ]) |
|
216 | + ) { |
|
217 | + unset($dependencies[ $dependency ]); |
|
218 | + $dependencies[ $alias ] = $load_source; |
|
219 | + $registered = true; |
|
220 | + } |
|
221 | + } |
|
222 | + // now add our two lists of dependencies together. |
|
223 | + // using Union (+=) favours the arrays in precedence from left to right, |
|
224 | + // so $dependencies is NOT overwritten because it is listed first |
|
225 | + // ie: with A = B + C, entries in B take precedence over duplicate entries in C |
|
226 | + // Union is way faster than array_merge() but should be used with caution... |
|
227 | + // especially with numerically indexed arrays |
|
228 | + $dependencies += EE_Dependency_Map::$_instance->_dependency_map[ $class ]; |
|
229 | + // now we need to ensure that the resulting dependencies |
|
230 | + // array only has the entries that are required for the class |
|
231 | + // so first count how many dependencies were originally registered for the class |
|
232 | + $dependency_count = count(EE_Dependency_Map::$_instance->_dependency_map[ $class ]); |
|
233 | + // if that count is non-zero (meaning dependencies were already registered) |
|
234 | + EE_Dependency_Map::$_instance->_dependency_map[ $class ] = $dependency_count |
|
235 | + // then truncate the final array to match that count |
|
236 | + ? array_slice($dependencies, 0, $dependency_count) |
|
237 | + // otherwise just take the incoming array because nothing previously existed |
|
238 | + : $dependencies; |
|
239 | + return $registered; |
|
240 | + } |
|
241 | + |
|
242 | + |
|
243 | + /** |
|
244 | + * @param string $class_name |
|
245 | + * @param string $loader |
|
246 | + * @return bool |
|
247 | + * @throws DomainException |
|
248 | + */ |
|
249 | + public static function register_class_loader($class_name, $loader = 'load_core') |
|
250 | + { |
|
251 | + return EE_Dependency_Map::$_instance->registerClassLoader($class_name, $loader); |
|
252 | + } |
|
253 | + |
|
254 | + |
|
255 | + /** |
|
256 | + * @param string $class_name |
|
257 | + * @param string $loader |
|
258 | + * @return bool |
|
259 | + * @throws DomainException |
|
260 | + */ |
|
261 | + public function registerClassLoader($class_name, $loader = 'load_core') |
|
262 | + { |
|
263 | + if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) { |
|
264 | + throw new DomainException( |
|
265 | + esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso') |
|
266 | + ); |
|
267 | + } |
|
268 | + // check that loader is callable or method starts with "load_" and exists in EE_Registry |
|
269 | + if (! is_callable($loader) |
|
270 | + && ( |
|
271 | + strpos($loader, 'load_') !== 0 |
|
272 | + || ! method_exists('EE_Registry', $loader) |
|
273 | + ) |
|
274 | + ) { |
|
275 | + throw new DomainException( |
|
276 | + sprintf( |
|
277 | + esc_html__( |
|
278 | + '"%1$s" is not a valid loader method on EE_Registry.', |
|
279 | + 'event_espresso' |
|
280 | + ), |
|
281 | + $loader |
|
282 | + ) |
|
283 | + ); |
|
284 | + } |
|
285 | + $class_name = EE_Dependency_Map::$_instance->getFqnForAlias($class_name); |
|
286 | + if (! isset(EE_Dependency_Map::$_instance->_class_loaders[ $class_name ])) { |
|
287 | + EE_Dependency_Map::$_instance->_class_loaders[ $class_name ] = $loader; |
|
288 | + return true; |
|
289 | + } |
|
290 | + return false; |
|
291 | + } |
|
292 | + |
|
293 | + |
|
294 | + /** |
|
295 | + * @return array |
|
296 | + */ |
|
297 | + public function dependency_map() |
|
298 | + { |
|
299 | + return $this->_dependency_map; |
|
300 | + } |
|
301 | + |
|
302 | + |
|
303 | + /** |
|
304 | + * returns TRUE if dependency map contains a listing for the provided class name |
|
305 | + * |
|
306 | + * @param string $class_name |
|
307 | + * @return boolean |
|
308 | + */ |
|
309 | + public function has($class_name = '') |
|
310 | + { |
|
311 | + // all legacy models have the same dependencies |
|
312 | + if (strpos($class_name, 'EEM_') === 0) { |
|
313 | + $class_name = 'LEGACY_MODELS'; |
|
314 | + } |
|
315 | + return isset($this->_dependency_map[ $class_name ]); |
|
316 | + } |
|
317 | + |
|
318 | + |
|
319 | + /** |
|
320 | + * returns TRUE if dependency map contains a listing for the provided class name AND dependency |
|
321 | + * |
|
322 | + * @param string $class_name |
|
323 | + * @param string $dependency |
|
324 | + * @return bool |
|
325 | + */ |
|
326 | + public function has_dependency_for_class($class_name = '', $dependency = '') |
|
327 | + { |
|
328 | + // all legacy models have the same dependencies |
|
329 | + if (strpos($class_name, 'EEM_') === 0) { |
|
330 | + $class_name = 'LEGACY_MODELS'; |
|
331 | + } |
|
332 | + $dependency = $this->getFqnForAlias($dependency, $class_name); |
|
333 | + return isset($this->_dependency_map[ $class_name ][ $dependency ]); |
|
334 | + } |
|
335 | + |
|
336 | + |
|
337 | + /** |
|
338 | + * returns loading strategy for whether a previously cached dependency should be loaded or a new instance returned |
|
339 | + * |
|
340 | + * @param string $class_name |
|
341 | + * @param string $dependency |
|
342 | + * @return int |
|
343 | + */ |
|
344 | + public function loading_strategy_for_class_dependency($class_name = '', $dependency = '') |
|
345 | + { |
|
346 | + // all legacy models have the same dependencies |
|
347 | + if (strpos($class_name, 'EEM_') === 0) { |
|
348 | + $class_name = 'LEGACY_MODELS'; |
|
349 | + } |
|
350 | + $dependency = $this->getFqnForAlias($dependency); |
|
351 | + return $this->has_dependency_for_class($class_name, $dependency) |
|
352 | + ? $this->_dependency_map[ $class_name ][ $dependency ] |
|
353 | + : EE_Dependency_Map::not_registered; |
|
354 | + } |
|
355 | + |
|
356 | + |
|
357 | + /** |
|
358 | + * @param string $class_name |
|
359 | + * @return string | Closure |
|
360 | + */ |
|
361 | + public function class_loader($class_name) |
|
362 | + { |
|
363 | + // all legacy models use load_model() |
|
364 | + if (strpos($class_name, 'EEM_') === 0) { |
|
365 | + return 'load_model'; |
|
366 | + } |
|
367 | + // EE_CPT_*_Strategy classes like EE_CPT_Event_Strategy, EE_CPT_Venue_Strategy, etc |
|
368 | + // perform strpos() first to avoid loading regex every time we load a class |
|
369 | + if (strpos($class_name, 'EE_CPT_') === 0 |
|
370 | + && preg_match('/^EE_CPT_([a-zA-Z]+)_Strategy$/', $class_name) |
|
371 | + ) { |
|
372 | + return 'load_core'; |
|
373 | + } |
|
374 | + $class_name = $this->getFqnForAlias($class_name); |
|
375 | + return isset($this->_class_loaders[ $class_name ]) ? $this->_class_loaders[ $class_name ] : ''; |
|
376 | + } |
|
377 | + |
|
378 | + |
|
379 | + /** |
|
380 | + * @return array |
|
381 | + */ |
|
382 | + public function class_loaders() |
|
383 | + { |
|
384 | + return $this->_class_loaders; |
|
385 | + } |
|
386 | + |
|
387 | + |
|
388 | + /** |
|
389 | + * adds an alias for a classname |
|
390 | + * |
|
391 | + * @param string $fqcn the class name that should be used (concrete class to replace interface) |
|
392 | + * @param string $alias the class name that would be type hinted for (abstract parent or interface) |
|
393 | + * @param string $for_class the class that has the dependency (is type hinting for the interface) |
|
394 | + * @throws InvalidAliasException |
|
395 | + */ |
|
396 | + public function add_alias($fqcn, $alias, $for_class = '') |
|
397 | + { |
|
398 | + $this->class_cache->addAlias($fqcn, $alias, $for_class); |
|
399 | + } |
|
400 | + |
|
401 | + |
|
402 | + /** |
|
403 | + * Returns TRUE if the provided fully qualified name IS an alias |
|
404 | + * WHY? |
|
405 | + * Because if a class is type hinting for a concretion, |
|
406 | + * then why would we need to find another class to supply it? |
|
407 | + * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
408 | + * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
409 | + * Don't go looking for some substitute. |
|
410 | + * Whereas if a class is type hinting for an interface... |
|
411 | + * then we need to find an actual class to use. |
|
412 | + * So the interface IS the alias for some other FQN, |
|
413 | + * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
414 | + * represents some other class. |
|
415 | + * |
|
416 | + * @param string $fqn |
|
417 | + * @param string $for_class |
|
418 | + * @return bool |
|
419 | + */ |
|
420 | + public function isAlias($fqn = '', $for_class = '') |
|
421 | + { |
|
422 | + return $this->class_cache->isAlias($fqn, $for_class); |
|
423 | + } |
|
424 | + |
|
425 | + |
|
426 | + /** |
|
427 | + * Returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
428 | + * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
429 | + * for example: |
|
430 | + * if the following two entries were added to the _aliases array: |
|
431 | + * array( |
|
432 | + * 'interface_alias' => 'some\namespace\interface' |
|
433 | + * 'some\namespace\interface' => 'some\namespace\classname' |
|
434 | + * ) |
|
435 | + * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
436 | + * to load an instance of 'some\namespace\classname' |
|
437 | + * |
|
438 | + * @param string $alias |
|
439 | + * @param string $for_class |
|
440 | + * @return string |
|
441 | + */ |
|
442 | + public function getFqnForAlias($alias = '', $for_class = '') |
|
443 | + { |
|
444 | + return (string) $this->class_cache->getFqnForAlias($alias, $for_class); |
|
445 | + } |
|
446 | + |
|
447 | + |
|
448 | + /** |
|
449 | + * Registers the core dependencies and whether a previously instantiated object should be loaded from the cache, |
|
450 | + * if one exists, or whether a new object should be generated every time the requested class is loaded. |
|
451 | + * This is done by using the following class constants: |
|
452 | + * EE_Dependency_Map::load_from_cache - loads previously instantiated object |
|
453 | + * EE_Dependency_Map::load_new_object - generates a new object every time |
|
454 | + */ |
|
455 | + protected function _register_core_dependencies() |
|
456 | + { |
|
457 | + $this->_dependency_map = [ |
|
458 | + 'EE_Request_Handler' => [ |
|
459 | + 'EE_Request' => EE_Dependency_Map::load_from_cache, |
|
460 | + ], |
|
461 | + 'EE_System' => [ |
|
462 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
463 | + 'EE_Maintenance_Mode' => EE_Dependency_Map::load_from_cache, |
|
464 | + 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
465 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
466 | + 'EventEspresso\core\services\routing\Router' => EE_Dependency_Map::load_from_cache, |
|
467 | + ], |
|
468 | + 'EE_Admin' => [ |
|
469 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
470 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
471 | + ], |
|
472 | + 'EE_Cart' => [ |
|
473 | + 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
474 | + ], |
|
475 | + 'EE_Messenger_Collection_Loader' => [ |
|
476 | + 'EE_Messenger_Collection' => EE_Dependency_Map::load_new_object, |
|
477 | + ], |
|
478 | + 'EE_Message_Type_Collection_Loader' => [ |
|
479 | + 'EE_Message_Type_Collection' => EE_Dependency_Map::load_new_object, |
|
480 | + ], |
|
481 | + 'EE_Message_Resource_Manager' => [ |
|
482 | + 'EE_Messenger_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
483 | + 'EE_Message_Type_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
484 | + 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
485 | + ], |
|
486 | + 'EE_Message_Factory' => [ |
|
487 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
488 | + ], |
|
489 | + 'EE_messages' => [ |
|
490 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
491 | + ], |
|
492 | + 'EE_Messages_Generator' => [ |
|
493 | + 'EE_Messages_Queue' => EE_Dependency_Map::load_new_object, |
|
494 | + 'EE_Messages_Data_Handler_Collection' => EE_Dependency_Map::load_new_object, |
|
495 | + 'EE_Message_Template_Group_Collection' => EE_Dependency_Map::load_new_object, |
|
496 | + 'EEH_Parse_Shortcodes' => EE_Dependency_Map::load_from_cache, |
|
497 | + ], |
|
498 | + 'EE_Messages_Processor' => [ |
|
499 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
500 | + ], |
|
501 | + 'EE_Messages_Queue' => [ |
|
502 | + 'EE_Message_Repository' => EE_Dependency_Map::load_new_object, |
|
503 | + ], |
|
504 | + 'EE_Messages_Template_Defaults' => [ |
|
505 | + 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
506 | + 'EEM_Message_Template' => EE_Dependency_Map::load_from_cache, |
|
507 | + ], |
|
508 | + 'EE_Message_To_Generate_From_Request' => [ |
|
509 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
510 | + 'EE_Request_Handler' => EE_Dependency_Map::load_from_cache, |
|
511 | + ], |
|
512 | + 'EventEspresso\core\services\commands\CommandBus' => [ |
|
513 | + 'EventEspresso\core\services\commands\CommandHandlerManager' => EE_Dependency_Map::load_from_cache, |
|
514 | + ], |
|
515 | + 'EventEspresso\services\commands\CommandHandler' => [ |
|
516 | + 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
517 | + 'CommandBusInterface' => EE_Dependency_Map::load_from_cache, |
|
518 | + ], |
|
519 | + 'EventEspresso\core\services\commands\CommandHandlerManager' => [ |
|
520 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
521 | + ], |
|
522 | + 'EventEspresso\core\services\commands\CompositeCommandHandler' => [ |
|
523 | + 'EventEspresso\core\services\commands\CommandBus' => EE_Dependency_Map::load_from_cache, |
|
524 | + 'EventEspresso\core\services\commands\CommandFactory' => EE_Dependency_Map::load_from_cache, |
|
525 | + ], |
|
526 | + 'EventEspresso\core\services\commands\CommandFactory' => [ |
|
527 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
528 | + ], |
|
529 | + 'EventEspresso\core\services\commands\middleware\CapChecker' => [ |
|
530 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
531 | + ], |
|
532 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => [ |
|
533 | + 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
534 | + ], |
|
535 | + 'EventEspresso\core\domain\services\capabilities\RegistrationsCapChecker' => [ |
|
536 | + 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
537 | + ], |
|
538 | + 'EventEspresso\core\services\commands\registration\CreateRegistrationCommandHandler' => [ |
|
539 | + 'EventEspresso\core\domain\services\registration\CreateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
540 | + ], |
|
541 | + 'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommandHandler' => [ |
|
542 | + 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
543 | + ], |
|
544 | + 'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommandHandler' => [ |
|
545 | + 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
546 | + ], |
|
547 | + 'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler' => [ |
|
548 | + 'EventEspresso\core\domain\services\registration\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
549 | + ], |
|
550 | + 'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler' => [ |
|
551 | + 'EventEspresso\core\domain\services\registration\UpdateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
552 | + ], |
|
553 | + 'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommandHandler' => [ |
|
554 | + 'EventEspresso\core\domain\services\ticket\CreateTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
555 | + ], |
|
556 | + 'EventEspresso\core\services\commands\ticket\CancelTicketLineItemCommandHandler' => [ |
|
557 | + 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
558 | + ], |
|
559 | + 'EventEspresso\core\domain\services\registration\CancelRegistrationService' => [ |
|
560 | + 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
561 | + ], |
|
562 | + 'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler' => [ |
|
563 | + 'EEM_Attendee' => EE_Dependency_Map::load_from_cache, |
|
564 | + ], |
|
565 | + 'EventEspresso\core\services\database\TableManager' => [ |
|
566 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
567 | + ], |
|
568 | + 'EE_Data_Migration_Class_Base' => [ |
|
569 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
570 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
571 | + ], |
|
572 | + 'EE_DMS_Core_4_1_0' => [ |
|
573 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
574 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
575 | + ], |
|
576 | + 'EE_DMS_Core_4_2_0' => [ |
|
577 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
578 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
579 | + ], |
|
580 | + 'EE_DMS_Core_4_3_0' => [ |
|
581 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
582 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
583 | + ], |
|
584 | + 'EE_DMS_Core_4_4_0' => [ |
|
585 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
586 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
587 | + ], |
|
588 | + 'EE_DMS_Core_4_5_0' => [ |
|
589 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
590 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
591 | + ], |
|
592 | + 'EE_DMS_Core_4_6_0' => [ |
|
593 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
594 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
595 | + ], |
|
596 | + 'EE_DMS_Core_4_7_0' => [ |
|
597 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
598 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
599 | + ], |
|
600 | + 'EE_DMS_Core_4_8_0' => [ |
|
601 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
602 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
603 | + ], |
|
604 | + 'EE_DMS_Core_4_9_0' => [ |
|
605 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
606 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
607 | + ], |
|
608 | + 'EE_DMS_Core_4_10_0' => [ |
|
609 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
610 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
611 | + 'EE_DMS_Core_4_9_0' => EE_Dependency_Map::load_from_cache, |
|
612 | + ], |
|
613 | + 'EE_DMS_Core_4_11_0' => [ |
|
614 | + 'EE_DMS_Core_4_10_0' => EE_Dependency_Map::load_from_cache, |
|
615 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
616 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
617 | + ], |
|
618 | + 'EventEspresso\core\services\assets\Registry' => [ |
|
619 | + 'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_new_object, |
|
620 | + 'EventEspresso\core\services\assets\AssetManifest' => EE_Dependency_Map::load_from_cache, |
|
621 | + ], |
|
622 | + 'EventEspresso\core\services\cache\BasicCacheManager' => [ |
|
623 | + 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
624 | + ], |
|
625 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => [ |
|
626 | + 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
627 | + ], |
|
628 | + 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => [ |
|
629 | + 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
630 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
631 | + ], |
|
632 | + 'EventEspresso\core\domain\values\EmailAddress' => [ |
|
633 | + null, |
|
634 | + 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => EE_Dependency_Map::load_from_cache, |
|
635 | + ], |
|
636 | + 'EventEspresso\core\services\orm\ModelFieldFactory' => [ |
|
637 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
638 | + ], |
|
639 | + 'LEGACY_MODELS' => [ |
|
640 | + null, |
|
641 | + 'EventEspresso\core\services\database\ModelFieldFactory' => EE_Dependency_Map::load_from_cache, |
|
642 | + ], |
|
643 | + 'EE_Module_Request_Router' => [ |
|
644 | + 'EE_Request' => EE_Dependency_Map::load_from_cache, |
|
645 | + ], |
|
646 | + 'EE_Registration_Processor' => [ |
|
647 | + 'EE_Request' => EE_Dependency_Map::load_from_cache, |
|
648 | + ], |
|
649 | + 'EventEspresso\core\services\notifications\PersistentAdminNoticeManager' => [ |
|
650 | + null, |
|
651 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
652 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
653 | + ], |
|
654 | + 'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha' => [ |
|
655 | + 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
656 | + 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
657 | + ], |
|
658 | + 'EventEspresso\modules\ticket_selector\ProcessTicketSelector' => [ |
|
659 | + 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
660 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
661 | + 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
662 | + 'EEM_Ticket' => EE_Dependency_Map::load_from_cache, |
|
663 | + 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => EE_Dependency_Map::load_from_cache, |
|
664 | + ], |
|
665 | + 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => [ |
|
666 | + 'EEM_Datetime' => EE_Dependency_Map::load_from_cache, |
|
667 | + ], |
|
668 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => [ |
|
669 | + 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
670 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
671 | + ], |
|
672 | + 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomPostTypes' => [ |
|
673 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
674 | + ], |
|
675 | + 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomTaxonomies' => [ |
|
676 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
677 | + ], |
|
678 | + 'EE_CPT_Strategy' => [ |
|
679 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
680 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
681 | + ], |
|
682 | + 'EventEspresso\core\services\loaders\ObjectIdentifier' => [ |
|
683 | + 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
684 | + ], |
|
685 | + 'EventEspresso\core\CPTs\CptQueryModifier' => [ |
|
686 | + null, |
|
687 | + null, |
|
688 | + null, |
|
689 | + 'EE_Request_Handler' => EE_Dependency_Map::load_from_cache, |
|
690 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
691 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
692 | + ], |
|
693 | + 'EventEspresso\core\services\dependencies\DependencyResolver' => [ |
|
694 | + 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
695 | + 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
696 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
697 | + ], |
|
698 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => [ |
|
699 | + 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
700 | + 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
701 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
702 | + ], |
|
703 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => [ |
|
704 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => EE_Dependency_Map::load_from_cache, |
|
705 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
706 | + ], |
|
707 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationManager' => [ |
|
708 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationCollection' => EE_Dependency_Map::load_from_cache, |
|
709 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => EE_Dependency_Map::load_from_cache, |
|
710 | + ], |
|
711 | + 'EE_URL_Validation_Strategy' => [ |
|
712 | + null, |
|
713 | + null, |
|
714 | + 'EventEspresso\core\services\validators\URLValidator' => EE_Dependency_Map::load_from_cache, |
|
715 | + ], |
|
716 | + 'EventEspresso\core\services\request\files\FilesDataHandler' => [ |
|
717 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
718 | + ], |
|
719 | + 'EventEspressoBatchRequest\BatchRequestProcessor' => [ |
|
720 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
721 | + ], |
|
722 | + 'EventEspresso\core\domain\services\converters\RestApiSpoofer' => [ |
|
723 | + 'WP_REST_Server' => EE_Dependency_Map::load_from_cache, |
|
724 | + 'EED_Core_Rest_Api' => EE_Dependency_Map::load_from_cache, |
|
725 | + 'EventEspresso\core\libraries\rest_api\controllers\model\Read' => EE_Dependency_Map::load_from_cache, |
|
726 | + null, |
|
727 | + ], |
|
728 | + 'EventEspresso\core\services\routing\RouteHandler' => [ |
|
729 | + 'EventEspresso\core\services\json\JsonDataNodeHandler' => EE_Dependency_Map::load_from_cache, |
|
730 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
731 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
732 | + 'EventEspresso\core\services\routing\RouteCollection' => EE_Dependency_Map::load_from_cache, |
|
733 | + ], |
|
734 | + 'EventEspresso\core\services\json\JsonDataNodeHandler' => [ |
|
735 | + 'EventEspresso\core\services\json\JsonDataNodeValidator' => EE_Dependency_Map::load_from_cache, |
|
736 | + ], |
|
737 | + 'EventEspresso\core\services\routing\Router' => [ |
|
738 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
739 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
740 | + 'EventEspresso\core\services\routing\RouteHandler' => EE_Dependency_Map::load_from_cache, |
|
741 | + ], |
|
742 | + 'EventEspresso\core\services\assets\AssetManifest' => [ |
|
743 | + 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
744 | + ], |
|
745 | + 'EventEspresso\core\services\assets\AssetManifestFactory' => [ |
|
746 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
747 | + ], |
|
748 | + 'EventEspresso\core\services\assets\BaristaFactory' => [ |
|
749 | + 'EventEspresso\core\services\assets\AssetManifestFactory' => EE_Dependency_Map::load_from_cache, |
|
750 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
751 | + ], |
|
752 | + 'EventEspresso\core\domain\services\capabilities\FeatureFlags' => [ |
|
753 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
754 | + ], |
|
755 | + ]; |
|
756 | + } |
|
757 | + |
|
758 | + |
|
759 | + /** |
|
760 | + * Registers how core classes are loaded. |
|
761 | + * This can either be done by simply providing the name of one of the EE_Registry loader methods such as: |
|
762 | + * 'EE_Request_Handler' => 'load_core' |
|
763 | + * 'EE_Messages_Queue' => 'load_lib' |
|
764 | + * 'EEH_Debug_Tools' => 'load_helper' |
|
765 | + * or, if greater control is required, by providing a custom closure. For example: |
|
766 | + * 'Some_Class' => function () { |
|
767 | + * return new Some_Class(); |
|
768 | + * }, |
|
769 | + * This is required for instantiating dependencies |
|
770 | + * where an interface has been type hinted in a class constructor. For example: |
|
771 | + * 'Required_Interface' => function () { |
|
772 | + * return new A_Class_That_Implements_Required_Interface(); |
|
773 | + * }, |
|
774 | + */ |
|
775 | + protected function _register_core_class_loaders() |
|
776 | + { |
|
777 | + $this->_class_loaders = [ |
|
778 | + // load_core |
|
779 | + 'EE_Dependency_Map' => function () { |
|
780 | + return $this; |
|
781 | + }, |
|
782 | + 'EE_Capabilities' => 'load_core', |
|
783 | + 'EE_Encryption' => 'load_core', |
|
784 | + 'EE_Front_Controller' => 'load_core', |
|
785 | + 'EE_Module_Request_Router' => 'load_core', |
|
786 | + 'EE_Registry' => 'load_core', |
|
787 | + 'EE_Request' => function () { |
|
788 | + return $this->legacy_request; |
|
789 | + }, |
|
790 | + 'EventEspresso\core\services\request\Request' => function () { |
|
791 | + return $this->request; |
|
792 | + }, |
|
793 | + 'EventEspresso\core\services\request\Response' => function () { |
|
794 | + return $this->response; |
|
795 | + }, |
|
796 | + 'EE_Base' => 'load_core', |
|
797 | + 'EE_Request_Handler' => 'load_core', |
|
798 | + 'EE_Session' => 'load_core', |
|
799 | + 'EE_Cron_Tasks' => 'load_core', |
|
800 | + 'EE_System' => 'load_core', |
|
801 | + 'EE_Maintenance_Mode' => 'load_core', |
|
802 | + 'EE_Register_CPTs' => 'load_core', |
|
803 | + 'EE_Admin' => 'load_core', |
|
804 | + 'EE_CPT_Strategy' => 'load_core', |
|
805 | + // load_class |
|
806 | + 'EE_Registration_Processor' => 'load_class', |
|
807 | + // load_lib |
|
808 | + 'EE_Message_Resource_Manager' => 'load_lib', |
|
809 | + 'EE_Message_Type_Collection' => 'load_lib', |
|
810 | + 'EE_Message_Type_Collection_Loader' => 'load_lib', |
|
811 | + 'EE_Messenger_Collection' => 'load_lib', |
|
812 | + 'EE_Messenger_Collection_Loader' => 'load_lib', |
|
813 | + 'EE_Messages_Processor' => 'load_lib', |
|
814 | + 'EE_Message_Repository' => 'load_lib', |
|
815 | + 'EE_Messages_Queue' => 'load_lib', |
|
816 | + 'EE_Messages_Data_Handler_Collection' => 'load_lib', |
|
817 | + 'EE_Message_Template_Group_Collection' => 'load_lib', |
|
818 | + 'EE_Payment_Method_Manager' => 'load_lib', |
|
819 | + 'EE_DMS_Core_4_1_0' => 'load_dms', |
|
820 | + 'EE_DMS_Core_4_2_0' => 'load_dms', |
|
821 | + 'EE_DMS_Core_4_3_0' => 'load_dms', |
|
822 | + 'EE_DMS_Core_4_5_0' => 'load_dms', |
|
823 | + 'EE_DMS_Core_4_6_0' => 'load_dms', |
|
824 | + 'EE_DMS_Core_4_7_0' => 'load_dms', |
|
825 | + 'EE_DMS_Core_4_8_0' => 'load_dms', |
|
826 | + 'EE_DMS_Core_4_9_0' => 'load_dms', |
|
827 | + 'EE_DMS_Core_4_10_0' => 'load_dms', |
|
828 | + 'EE_Messages_Generator' => static function () { |
|
829 | + return EE_Registry::instance()->load_lib( |
|
830 | + 'Messages_Generator', |
|
831 | + [], |
|
832 | + false, |
|
833 | + false |
|
834 | + ); |
|
835 | + }, |
|
836 | + 'EE_Messages_Template_Defaults' => static function ($arguments = []) { |
|
837 | + return EE_Registry::instance()->load_lib( |
|
838 | + 'Messages_Template_Defaults', |
|
839 | + $arguments, |
|
840 | + false, |
|
841 | + false |
|
842 | + ); |
|
843 | + }, |
|
844 | + // load_helper |
|
845 | + 'EEH_Parse_Shortcodes' => static function () { |
|
846 | + if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) { |
|
847 | + return new EEH_Parse_Shortcodes(); |
|
848 | + } |
|
849 | + return null; |
|
850 | + }, |
|
851 | + 'EE_Template_Config' => static function () { |
|
852 | + return EE_Config::instance()->template_settings; |
|
853 | + }, |
|
854 | + 'EE_Currency_Config' => static function () { |
|
855 | + return EE_Config::instance()->currency; |
|
856 | + }, |
|
857 | + 'EE_Registration_Config' => static function () { |
|
858 | + return EE_Config::instance()->registration; |
|
859 | + }, |
|
860 | + 'EE_Core_Config' => static function () { |
|
861 | + return EE_Config::instance()->core; |
|
862 | + }, |
|
863 | + 'EventEspresso\core\services\loaders\Loader' => static function () { |
|
864 | + return LoaderFactory::getLoader(); |
|
865 | + }, |
|
866 | + 'EE_Network_Config' => static function () { |
|
867 | + return EE_Network_Config::instance(); |
|
868 | + }, |
|
869 | + 'EE_Config' => static function () { |
|
870 | + return EE_Config::instance(); |
|
871 | + }, |
|
872 | + 'EventEspresso\core\domain\Domain' => static function () { |
|
873 | + return DomainFactory::getEventEspressoCoreDomain(); |
|
874 | + }, |
|
875 | + 'EE_Admin_Config' => static function () { |
|
876 | + return EE_Config::instance()->admin; |
|
877 | + }, |
|
878 | + 'EE_Organization_Config' => static function () { |
|
879 | + return EE_Config::instance()->organization; |
|
880 | + }, |
|
881 | + 'EE_Network_Core_Config' => static function () { |
|
882 | + return EE_Network_Config::instance()->core; |
|
883 | + }, |
|
884 | + 'EE_Environment_Config' => static function () { |
|
885 | + return EE_Config::instance()->environment; |
|
886 | + }, |
|
887 | + 'EED_Core_Rest_Api' => static function () { |
|
888 | + return EED_Core_Rest_Api::instance(); |
|
889 | + }, |
|
890 | + 'WP_REST_Server' => static function () { |
|
891 | + return rest_get_server(); |
|
892 | + }, |
|
893 | + ]; |
|
894 | + } |
|
895 | + |
|
896 | + |
|
897 | + /** |
|
898 | + * can be used for supplying alternate names for classes, |
|
899 | + * or for connecting interface names to instantiable classes |
|
900 | + * |
|
901 | + * @throws InvalidAliasException |
|
902 | + */ |
|
903 | + protected function _register_core_aliases() |
|
904 | + { |
|
905 | + $aliases = [ |
|
906 | + 'CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBusInterface', |
|
907 | + 'EventEspresso\core\services\commands\CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBus', |
|
908 | + 'CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManagerInterface', |
|
909 | + 'EventEspresso\core\services\commands\CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManager', |
|
910 | + 'CapChecker' => 'EventEspresso\core\services\commands\middleware\CapChecker', |
|
911 | + 'AddActionHook' => 'EventEspresso\core\services\commands\middleware\AddActionHook', |
|
912 | + 'CapabilitiesChecker' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
913 | + 'CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface', |
|
914 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
915 | + 'CreateRegistrationService' => 'EventEspresso\core\domain\services\registration\CreateRegistrationService', |
|
916 | + 'CreateRegistrationCommandHandler' => 'EventEspresso\core\services\commands\registration\CreateRegistrationCommand', |
|
917 | + 'CopyRegistrationDetailsCommandHandler' => 'EventEspresso\core\services\commands\registration\CopyRegistrationDetailsCommand', |
|
918 | + 'CopyRegistrationPaymentsCommandHandler' => 'EventEspresso\core\services\commands\registration\CopyRegistrationPaymentsCommand', |
|
919 | + 'CancelRegistrationAndTicketLineItemCommandHandler' => 'EventEspresso\core\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler', |
|
920 | + 'UpdateRegistrationAndTransactionAfterChangeCommandHandler' => 'EventEspresso\core\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler', |
|
921 | + 'CreateTicketLineItemCommandHandler' => 'EventEspresso\core\services\commands\ticket\CreateTicketLineItemCommand', |
|
922 | + 'CreateTransactionCommandHandler' => 'EventEspresso\core\services\commands\transaction\CreateTransactionCommandHandler', |
|
923 | + 'CreateAttendeeCommandHandler' => 'EventEspresso\core\services\commands\attendee\CreateAttendeeCommandHandler', |
|
924 | + 'TableManager' => 'EventEspresso\core\services\database\TableManager', |
|
925 | + 'TableAnalysis' => 'EventEspresso\core\services\database\TableAnalysis', |
|
926 | + 'EspressoShortcode' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
927 | + 'ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\ShortcodeInterface', |
|
928 | + 'EventEspresso\core\services\shortcodes\ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
929 | + 'EventEspresso\core\services\cache\CacheStorageInterface' => 'EventEspresso\core\services\cache\TransientCacheStorage', |
|
930 | + 'LoaderInterface' => 'EventEspresso\core\services\loaders\LoaderInterface', |
|
931 | + 'EventEspresso\core\services\loaders\LoaderInterface' => 'EventEspresso\core\services\loaders\Loader', |
|
932 | + 'CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactoryInterface', |
|
933 | + 'EventEspresso\core\services\commands\CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactory', |
|
934 | + 'EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface', |
|
935 | + 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidationService', |
|
936 | + 'NoticeConverterInterface' => 'EventEspresso\core\services\notices\NoticeConverterInterface', |
|
937 | + 'EventEspresso\core\services\notices\NoticeConverterInterface' => 'EventEspresso\core\services\notices\ConvertNoticesToEeErrors', |
|
938 | + 'NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainerInterface', |
|
939 | + 'EventEspresso\core\services\notices\NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainer', |
|
940 | + 'EventEspresso\core\services\request\RequestInterface' => 'EventEspresso\core\services\request\Request', |
|
941 | + 'EventEspresso\core\services\request\ResponseInterface' => 'EventEspresso\core\services\request\Response', |
|
942 | + 'EventEspresso\core\domain\DomainInterface' => 'EventEspresso\core\domain\Domain', |
|
943 | + 'Registration_Processor' => 'EE_Registration_Processor', |
|
944 | + 'EventEspresso\core\services\assets\AssetManifestInterface' => 'EventEspresso\core\services\assets\AssetManifest', |
|
945 | + ]; |
|
946 | + foreach ($aliases as $alias => $fqn) { |
|
947 | + if (is_array($fqn)) { |
|
948 | + foreach ($fqn as $class => $for_class) { |
|
949 | + $this->class_cache->addAlias($class, $alias, $for_class); |
|
950 | + } |
|
951 | + continue; |
|
952 | + } |
|
953 | + $this->class_cache->addAlias($fqn, $alias); |
|
954 | + } |
|
955 | + if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) { |
|
956 | + $this->class_cache->addAlias( |
|
957 | + 'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices', |
|
958 | + 'EventEspresso\core\services\notices\NoticeConverterInterface' |
|
959 | + ); |
|
960 | + } |
|
961 | + } |
|
962 | + |
|
963 | + |
|
964 | + /** |
|
965 | + * This is used to reset the internal map and class_loaders to their original default state at the beginning of the |
|
966 | + * request Primarily used by unit tests. |
|
967 | + */ |
|
968 | + public function reset() |
|
969 | + { |
|
970 | + $this->_register_core_class_loaders(); |
|
971 | + $this->_register_core_dependencies(); |
|
972 | + } |
|
973 | + |
|
974 | + |
|
975 | + /** |
|
976 | + * PLZ NOTE: a better name for this method would be is_alias() |
|
977 | + * because it returns TRUE if the provided fully qualified name IS an alias |
|
978 | + * WHY? |
|
979 | + * Because if a class is type hinting for a concretion, |
|
980 | + * then why would we need to find another class to supply it? |
|
981 | + * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
982 | + * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
983 | + * Don't go looking for some substitute. |
|
984 | + * Whereas if a class is type hinting for an interface... |
|
985 | + * then we need to find an actual class to use. |
|
986 | + * So the interface IS the alias for some other FQN, |
|
987 | + * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
988 | + * represents some other class. |
|
989 | + * |
|
990 | + * @param string $fqn |
|
991 | + * @param string $for_class |
|
992 | + * @return bool |
|
993 | + * @deprecated 4.9.62.p |
|
994 | + */ |
|
995 | + public function has_alias($fqn = '', $for_class = '') |
|
996 | + { |
|
997 | + return $this->isAlias($fqn, $for_class); |
|
998 | + } |
|
999 | + |
|
1000 | + |
|
1001 | + /** |
|
1002 | + * PLZ NOTE: a better name for this method would be get_fqn_for_alias() |
|
1003 | + * because it returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
1004 | + * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
1005 | + * for example: |
|
1006 | + * if the following two entries were added to the _aliases array: |
|
1007 | + * array( |
|
1008 | + * 'interface_alias' => 'some\namespace\interface' |
|
1009 | + * 'some\namespace\interface' => 'some\namespace\classname' |
|
1010 | + * ) |
|
1011 | + * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
1012 | + * to load an instance of 'some\namespace\classname' |
|
1013 | + * |
|
1014 | + * @param string $alias |
|
1015 | + * @param string $for_class |
|
1016 | + * @return string |
|
1017 | + * @deprecated 4.9.62.p |
|
1018 | + */ |
|
1019 | + public function get_alias($alias = '', $for_class = '') |
|
1020 | + { |
|
1021 | + return $this->getFqnForAlias($alias, $for_class); |
|
1022 | + } |
|
1023 | 1023 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public static function instance(ClassInterfaceCache $class_cache = null) |
124 | 124 | { |
125 | 125 | // check if class object is instantiated, and instantiated properly |
126 | - if (! EE_Dependency_Map::$_instance instanceof EE_Dependency_Map |
|
126 | + if ( ! EE_Dependency_Map::$_instance instanceof EE_Dependency_Map |
|
127 | 127 | && $class_cache instanceof ClassInterfaceCache |
128 | 128 | ) { |
129 | 129 | EE_Dependency_Map::$_instance = new EE_Dependency_Map($class_cache); |
@@ -204,18 +204,18 @@ discard block |
||
204 | 204 | ) { |
205 | 205 | $class = trim($class, '\\'); |
206 | 206 | $registered = false; |
207 | - if (empty(EE_Dependency_Map::$_instance->_dependency_map[ $class ])) { |
|
208 | - EE_Dependency_Map::$_instance->_dependency_map[ $class ] = []; |
|
207 | + if (empty(EE_Dependency_Map::$_instance->_dependency_map[$class])) { |
|
208 | + EE_Dependency_Map::$_instance->_dependency_map[$class] = []; |
|
209 | 209 | } |
210 | 210 | // we need to make sure that any aliases used when registering a dependency |
211 | 211 | // get resolved to the correct class name |
212 | 212 | foreach ($dependencies as $dependency => $load_source) { |
213 | 213 | $alias = EE_Dependency_Map::$_instance->getFqnForAlias($dependency); |
214 | 214 | if ($overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES |
215 | - || ! isset(EE_Dependency_Map::$_instance->_dependency_map[ $class ][ $alias ]) |
|
215 | + || ! isset(EE_Dependency_Map::$_instance->_dependency_map[$class][$alias]) |
|
216 | 216 | ) { |
217 | - unset($dependencies[ $dependency ]); |
|
218 | - $dependencies[ $alias ] = $load_source; |
|
217 | + unset($dependencies[$dependency]); |
|
218 | + $dependencies[$alias] = $load_source; |
|
219 | 219 | $registered = true; |
220 | 220 | } |
221 | 221 | } |
@@ -225,13 +225,13 @@ discard block |
||
225 | 225 | // ie: with A = B + C, entries in B take precedence over duplicate entries in C |
226 | 226 | // Union is way faster than array_merge() but should be used with caution... |
227 | 227 | // especially with numerically indexed arrays |
228 | - $dependencies += EE_Dependency_Map::$_instance->_dependency_map[ $class ]; |
|
228 | + $dependencies += EE_Dependency_Map::$_instance->_dependency_map[$class]; |
|
229 | 229 | // now we need to ensure that the resulting dependencies |
230 | 230 | // array only has the entries that are required for the class |
231 | 231 | // so first count how many dependencies were originally registered for the class |
232 | - $dependency_count = count(EE_Dependency_Map::$_instance->_dependency_map[ $class ]); |
|
232 | + $dependency_count = count(EE_Dependency_Map::$_instance->_dependency_map[$class]); |
|
233 | 233 | // if that count is non-zero (meaning dependencies were already registered) |
234 | - EE_Dependency_Map::$_instance->_dependency_map[ $class ] = $dependency_count |
|
234 | + EE_Dependency_Map::$_instance->_dependency_map[$class] = $dependency_count |
|
235 | 235 | // then truncate the final array to match that count |
236 | 236 | ? array_slice($dependencies, 0, $dependency_count) |
237 | 237 | // otherwise just take the incoming array because nothing previously existed |
@@ -260,13 +260,13 @@ discard block |
||
260 | 260 | */ |
261 | 261 | public function registerClassLoader($class_name, $loader = 'load_core') |
262 | 262 | { |
263 | - if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) { |
|
263 | + if ( ! $loader instanceof Closure && strpos($class_name, '\\') !== false) { |
|
264 | 264 | throw new DomainException( |
265 | 265 | esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso') |
266 | 266 | ); |
267 | 267 | } |
268 | 268 | // check that loader is callable or method starts with "load_" and exists in EE_Registry |
269 | - if (! is_callable($loader) |
|
269 | + if ( ! is_callable($loader) |
|
270 | 270 | && ( |
271 | 271 | strpos($loader, 'load_') !== 0 |
272 | 272 | || ! method_exists('EE_Registry', $loader) |
@@ -283,8 +283,8 @@ discard block |
||
283 | 283 | ); |
284 | 284 | } |
285 | 285 | $class_name = EE_Dependency_Map::$_instance->getFqnForAlias($class_name); |
286 | - if (! isset(EE_Dependency_Map::$_instance->_class_loaders[ $class_name ])) { |
|
287 | - EE_Dependency_Map::$_instance->_class_loaders[ $class_name ] = $loader; |
|
286 | + if ( ! isset(EE_Dependency_Map::$_instance->_class_loaders[$class_name])) { |
|
287 | + EE_Dependency_Map::$_instance->_class_loaders[$class_name] = $loader; |
|
288 | 288 | return true; |
289 | 289 | } |
290 | 290 | return false; |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | if (strpos($class_name, 'EEM_') === 0) { |
313 | 313 | $class_name = 'LEGACY_MODELS'; |
314 | 314 | } |
315 | - return isset($this->_dependency_map[ $class_name ]); |
|
315 | + return isset($this->_dependency_map[$class_name]); |
|
316 | 316 | } |
317 | 317 | |
318 | 318 | |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | $class_name = 'LEGACY_MODELS'; |
331 | 331 | } |
332 | 332 | $dependency = $this->getFqnForAlias($dependency, $class_name); |
333 | - return isset($this->_dependency_map[ $class_name ][ $dependency ]); |
|
333 | + return isset($this->_dependency_map[$class_name][$dependency]); |
|
334 | 334 | } |
335 | 335 | |
336 | 336 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | } |
350 | 350 | $dependency = $this->getFqnForAlias($dependency); |
351 | 351 | return $this->has_dependency_for_class($class_name, $dependency) |
352 | - ? $this->_dependency_map[ $class_name ][ $dependency ] |
|
352 | + ? $this->_dependency_map[$class_name][$dependency] |
|
353 | 353 | : EE_Dependency_Map::not_registered; |
354 | 354 | } |
355 | 355 | |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | return 'load_core'; |
373 | 373 | } |
374 | 374 | $class_name = $this->getFqnForAlias($class_name); |
375 | - return isset($this->_class_loaders[ $class_name ]) ? $this->_class_loaders[ $class_name ] : ''; |
|
375 | + return isset($this->_class_loaders[$class_name]) ? $this->_class_loaders[$class_name] : ''; |
|
376 | 376 | } |
377 | 377 | |
378 | 378 | |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | { |
777 | 777 | $this->_class_loaders = [ |
778 | 778 | // load_core |
779 | - 'EE_Dependency_Map' => function () { |
|
779 | + 'EE_Dependency_Map' => function() { |
|
780 | 780 | return $this; |
781 | 781 | }, |
782 | 782 | 'EE_Capabilities' => 'load_core', |
@@ -784,13 +784,13 @@ discard block |
||
784 | 784 | 'EE_Front_Controller' => 'load_core', |
785 | 785 | 'EE_Module_Request_Router' => 'load_core', |
786 | 786 | 'EE_Registry' => 'load_core', |
787 | - 'EE_Request' => function () { |
|
787 | + 'EE_Request' => function() { |
|
788 | 788 | return $this->legacy_request; |
789 | 789 | }, |
790 | - 'EventEspresso\core\services\request\Request' => function () { |
|
790 | + 'EventEspresso\core\services\request\Request' => function() { |
|
791 | 791 | return $this->request; |
792 | 792 | }, |
793 | - 'EventEspresso\core\services\request\Response' => function () { |
|
793 | + 'EventEspresso\core\services\request\Response' => function() { |
|
794 | 794 | return $this->response; |
795 | 795 | }, |
796 | 796 | 'EE_Base' => 'load_core', |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | 'EE_DMS_Core_4_8_0' => 'load_dms', |
826 | 826 | 'EE_DMS_Core_4_9_0' => 'load_dms', |
827 | 827 | 'EE_DMS_Core_4_10_0' => 'load_dms', |
828 | - 'EE_Messages_Generator' => static function () { |
|
828 | + 'EE_Messages_Generator' => static function() { |
|
829 | 829 | return EE_Registry::instance()->load_lib( |
830 | 830 | 'Messages_Generator', |
831 | 831 | [], |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | false |
834 | 834 | ); |
835 | 835 | }, |
836 | - 'EE_Messages_Template_Defaults' => static function ($arguments = []) { |
|
836 | + 'EE_Messages_Template_Defaults' => static function($arguments = []) { |
|
837 | 837 | return EE_Registry::instance()->load_lib( |
838 | 838 | 'Messages_Template_Defaults', |
839 | 839 | $arguments, |
@@ -842,52 +842,52 @@ discard block |
||
842 | 842 | ); |
843 | 843 | }, |
844 | 844 | // load_helper |
845 | - 'EEH_Parse_Shortcodes' => static function () { |
|
845 | + 'EEH_Parse_Shortcodes' => static function() { |
|
846 | 846 | if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) { |
847 | 847 | return new EEH_Parse_Shortcodes(); |
848 | 848 | } |
849 | 849 | return null; |
850 | 850 | }, |
851 | - 'EE_Template_Config' => static function () { |
|
851 | + 'EE_Template_Config' => static function() { |
|
852 | 852 | return EE_Config::instance()->template_settings; |
853 | 853 | }, |
854 | - 'EE_Currency_Config' => static function () { |
|
854 | + 'EE_Currency_Config' => static function() { |
|
855 | 855 | return EE_Config::instance()->currency; |
856 | 856 | }, |
857 | - 'EE_Registration_Config' => static function () { |
|
857 | + 'EE_Registration_Config' => static function() { |
|
858 | 858 | return EE_Config::instance()->registration; |
859 | 859 | }, |
860 | - 'EE_Core_Config' => static function () { |
|
860 | + 'EE_Core_Config' => static function() { |
|
861 | 861 | return EE_Config::instance()->core; |
862 | 862 | }, |
863 | - 'EventEspresso\core\services\loaders\Loader' => static function () { |
|
863 | + 'EventEspresso\core\services\loaders\Loader' => static function() { |
|
864 | 864 | return LoaderFactory::getLoader(); |
865 | 865 | }, |
866 | - 'EE_Network_Config' => static function () { |
|
866 | + 'EE_Network_Config' => static function() { |
|
867 | 867 | return EE_Network_Config::instance(); |
868 | 868 | }, |
869 | - 'EE_Config' => static function () { |
|
869 | + 'EE_Config' => static function() { |
|
870 | 870 | return EE_Config::instance(); |
871 | 871 | }, |
872 | - 'EventEspresso\core\domain\Domain' => static function () { |
|
872 | + 'EventEspresso\core\domain\Domain' => static function() { |
|
873 | 873 | return DomainFactory::getEventEspressoCoreDomain(); |
874 | 874 | }, |
875 | - 'EE_Admin_Config' => static function () { |
|
875 | + 'EE_Admin_Config' => static function() { |
|
876 | 876 | return EE_Config::instance()->admin; |
877 | 877 | }, |
878 | - 'EE_Organization_Config' => static function () { |
|
878 | + 'EE_Organization_Config' => static function() { |
|
879 | 879 | return EE_Config::instance()->organization; |
880 | 880 | }, |
881 | - 'EE_Network_Core_Config' => static function () { |
|
881 | + 'EE_Network_Core_Config' => static function() { |
|
882 | 882 | return EE_Network_Config::instance()->core; |
883 | 883 | }, |
884 | - 'EE_Environment_Config' => static function () { |
|
884 | + 'EE_Environment_Config' => static function() { |
|
885 | 885 | return EE_Config::instance()->environment; |
886 | 886 | }, |
887 | - 'EED_Core_Rest_Api' => static function () { |
|
887 | + 'EED_Core_Rest_Api' => static function() { |
|
888 | 888 | return EED_Core_Rest_Api::instance(); |
889 | 889 | }, |
890 | - 'WP_REST_Server' => static function () { |
|
890 | + 'WP_REST_Server' => static function() { |
|
891 | 891 | return rest_get_server(); |
892 | 892 | }, |
893 | 893 | ]; |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | } |
953 | 953 | $this->class_cache->addAlias($fqn, $alias); |
954 | 954 | } |
955 | - if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) { |
|
955 | + if ( ! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) { |
|
956 | 956 | $this->class_cache->addAlias( |
957 | 957 | 'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices', |
958 | 958 | 'EventEspresso\core\services\notices\NoticeConverterInterface' |
@@ -2,240 +2,240 @@ discard block |
||
2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
3 | 3 | $generated_i18n_strings = array( |
4 | 4 | // Reference: packages/components/src/Pagination/constants.ts:6 |
5 | - __( '2', 'event_espresso' ), |
|
5 | + __('2', 'event_espresso'), |
|
6 | 6 | |
7 | 7 | // Reference: packages/components/src/Pagination/constants.ts:7 |
8 | - __( '6', 'event_espresso' ), |
|
8 | + __('6', 'event_espresso'), |
|
9 | 9 | |
10 | 10 | // Reference: packages/components/src/Pagination/constants.ts:8 |
11 | - __( '12', 'event_espresso' ), |
|
11 | + __('12', 'event_espresso'), |
|
12 | 12 | |
13 | 13 | // Reference: packages/components/src/Pagination/constants.ts:9 |
14 | - __( '24', 'event_espresso' ), |
|
14 | + __('24', 'event_espresso'), |
|
15 | 15 | |
16 | 16 | // Reference: packages/components/src/Pagination/constants.ts:10 |
17 | - __( '48', 'event_espresso' ), |
|
17 | + __('48', 'event_espresso'), |
|
18 | 18 | |
19 | 19 | // Reference: domains/blocks/src/components/AvatarImage.tsx:27 |
20 | - __( 'contact avatar', 'event_espresso' ), |
|
20 | + __('contact avatar', 'event_espresso'), |
|
21 | 21 | |
22 | 22 | // Reference: domains/blocks/src/components/OrderByControl.tsx:13 |
23 | - __( 'Order by', 'event_espresso' ), |
|
23 | + __('Order by', 'event_espresso'), |
|
24 | 24 | |
25 | 25 | // Reference: domains/blocks/src/components/RegStatusControl.tsx:18 |
26 | 26 | // Reference: domains/blocks/src/event-attendees/controls/SelectStatus.tsx:12 |
27 | - __( 'Select Registration Status', 'event_espresso' ), |
|
27 | + __('Select Registration Status', 'event_espresso'), |
|
28 | 28 | |
29 | 29 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:15 |
30 | - __( 'Ascending', 'event_espresso' ), |
|
30 | + __('Ascending', 'event_espresso'), |
|
31 | 31 | |
32 | 32 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:19 |
33 | - __( 'Descending', 'event_espresso' ), |
|
33 | + __('Descending', 'event_espresso'), |
|
34 | 34 | |
35 | 35 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:25 |
36 | - __( 'Sort order:', 'event_espresso' ), |
|
36 | + __('Sort order:', 'event_espresso'), |
|
37 | 37 | |
38 | 38 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:40 |
39 | - __( 'There was some error fetching attendees list', 'event_espresso' ), |
|
39 | + __('There was some error fetching attendees list', 'event_espresso'), |
|
40 | 40 | |
41 | 41 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:46 |
42 | - __( 'To get started, select what event you want to show attendees from in the block settings.', 'event_espresso' ), |
|
42 | + __('To get started, select what event you want to show attendees from in the block settings.', 'event_espresso'), |
|
43 | 43 | |
44 | 44 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:52 |
45 | - __( 'There are no attendees for selected options.', 'event_espresso' ), |
|
45 | + __('There are no attendees for selected options.', 'event_espresso'), |
|
46 | 46 | |
47 | 47 | // Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:11 |
48 | - __( 'Display on Archives', 'event_espresso' ), |
|
48 | + __('Display on Archives', 'event_espresso'), |
|
49 | 49 | |
50 | 50 | // Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:16 |
51 | - __( 'Attendees are shown whenever this post is listed in an archive view.', 'event_espresso' ), |
|
51 | + __('Attendees are shown whenever this post is listed in an archive view.', 'event_espresso'), |
|
52 | 52 | |
53 | 53 | // Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17 |
54 | - __( 'Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso' ), |
|
54 | + __('Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso'), |
|
55 | 55 | |
56 | 56 | // Reference: domains/blocks/src/event-attendees/controls/AttendeeLimit.tsx:28 |
57 | - __( 'Number of Attendees to Display:', 'event_espresso' ), |
|
57 | + __('Number of Attendees to Display:', 'event_espresso'), |
|
58 | 58 | |
59 | 59 | // Reference: domains/blocks/src/event-attendees/controls/AttendeeLimit.tsx:33 |
60 | 60 | /* translators: %d attendees count */ |
61 | - _n_noop( 'Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso' ), |
|
61 | + _n_noop('Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso'), |
|
62 | 62 | |
63 | 63 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:26 |
64 | - __( 'Display Gravatar', 'event_espresso' ), |
|
64 | + __('Display Gravatar', 'event_espresso'), |
|
65 | 65 | |
66 | 66 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:31 |
67 | - __( 'Gravatar images are shown for each attendee.', 'event_espresso' ), |
|
67 | + __('Gravatar images are shown for each attendee.', 'event_espresso'), |
|
68 | 68 | |
69 | 69 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:32 |
70 | - __( 'No gravatar images are shown for each attendee.', 'event_espresso' ), |
|
70 | + __('No gravatar images are shown for each attendee.', 'event_espresso'), |
|
71 | 71 | |
72 | 72 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:37 |
73 | - __( 'Size of Gravatar', 'event_espresso' ), |
|
73 | + __('Size of Gravatar', 'event_espresso'), |
|
74 | 74 | |
75 | 75 | // Reference: domains/blocks/src/event-attendees/controls/SelectDatetime.tsx:21 |
76 | - __( 'Select Datetime', 'event_espresso' ), |
|
76 | + __('Select Datetime', 'event_espresso'), |
|
77 | 77 | |
78 | 78 | // Reference: domains/blocks/src/event-attendees/controls/SelectEvent.tsx:21 |
79 | - __( 'Select Event', 'event_espresso' ), |
|
79 | + __('Select Event', 'event_espresso'), |
|
80 | 80 | |
81 | 81 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:10 |
82 | - __( 'Attendee id', 'event_espresso' ), |
|
82 | + __('Attendee id', 'event_espresso'), |
|
83 | 83 | |
84 | 84 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:14 |
85 | - __( 'Last name only', 'event_espresso' ), |
|
85 | + __('Last name only', 'event_espresso'), |
|
86 | 86 | |
87 | 87 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:18 |
88 | - __( 'First name only', 'event_espresso' ), |
|
88 | + __('First name only', 'event_espresso'), |
|
89 | 89 | |
90 | 90 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:22 |
91 | - __( 'First, then Last name', 'event_espresso' ), |
|
91 | + __('First, then Last name', 'event_espresso'), |
|
92 | 92 | |
93 | 93 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:26 |
94 | - __( 'Last, then First name', 'event_espresso' ), |
|
94 | + __('Last, then First name', 'event_espresso'), |
|
95 | 95 | |
96 | 96 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:40 |
97 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
97 | + __('Order Attendees by:', 'event_espresso'), |
|
98 | 98 | |
99 | 99 | // Reference: domains/blocks/src/event-attendees/controls/SelectTicket.tsx:21 |
100 | - __( 'Select Ticket', 'event_espresso' ), |
|
100 | + __('Select Ticket', 'event_espresso'), |
|
101 | 101 | |
102 | 102 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:22 |
103 | - __( 'Filter By Settings', 'event_espresso' ), |
|
103 | + __('Filter By Settings', 'event_espresso'), |
|
104 | 104 | |
105 | 105 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:37 |
106 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
106 | + __('Gravatar Setttings', 'event_espresso'), |
|
107 | 107 | |
108 | 108 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:40 |
109 | - __( 'Archive Settings', 'event_espresso' ), |
|
109 | + __('Archive Settings', 'event_espresso'), |
|
110 | 110 | |
111 | 111 | // Reference: domains/blocks/src/event-attendees/index.tsx:10 |
112 | - __( 'Event Attendees', 'event_espresso' ), |
|
112 | + __('Event Attendees', 'event_espresso'), |
|
113 | 113 | |
114 | 114 | // Reference: domains/blocks/src/event-attendees/index.tsx:11 |
115 | - __( 'Displays a list of people that have registered for the specified event', 'event_espresso' ), |
|
115 | + __('Displays a list of people that have registered for the specified event', 'event_espresso'), |
|
116 | 116 | |
117 | 117 | // Reference: domains/blocks/src/event-attendees/index.tsx:14 |
118 | - __( 'event', 'event_espresso' ), |
|
118 | + __('event', 'event_espresso'), |
|
119 | 119 | |
120 | 120 | // Reference: domains/blocks/src/event-attendees/index.tsx:14 |
121 | - __( 'attendees', 'event_espresso' ), |
|
121 | + __('attendees', 'event_espresso'), |
|
122 | 122 | |
123 | 123 | // Reference: domains/blocks/src/event-attendees/index.tsx:14 |
124 | - __( 'list', 'event_espresso' ), |
|
124 | + __('list', 'event_espresso'), |
|
125 | 125 | |
126 | 126 | // Reference: domains/blocks/src/services/utils.ts:11 |
127 | - __( 'Loading…', 'event_espresso' ), |
|
127 | + __('Loading…', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/blocks/src/services/utils.ts:19 |
130 | 130 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
131 | - __( 'Error', 'event_espresso' ), |
|
131 | + __('Error', 'event_espresso'), |
|
132 | 132 | |
133 | 133 | // Reference: domains/blocks/src/services/utils.ts:26 |
134 | - __( 'Select…', 'event_espresso' ), |
|
134 | + __('Select…', 'event_espresso'), |
|
135 | 135 | |
136 | 136 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:34 |
137 | - __( 'Active Status', 'event_espresso' ), |
|
137 | + __('Active Status', 'event_espresso'), |
|
138 | 138 | |
139 | 139 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:37 |
140 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
140 | + __('Alternative Registration Page', 'event_espresso'), |
|
141 | 141 | |
142 | 142 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:17 |
143 | - __( 'Default Registration Status', 'event_espresso' ), |
|
143 | + __('Default Registration Status', 'event_espresso'), |
|
144 | 144 | |
145 | 145 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:19 |
146 | - __( 'Disable Donations', 'event_espresso' ), |
|
146 | + __('Disable Donations', 'event_espresso'), |
|
147 | 147 | |
148 | 148 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:19 |
149 | - __( 'Enable Donations', 'event_espresso' ), |
|
149 | + __('Enable Donations', 'event_espresso'), |
|
150 | 150 | |
151 | 151 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:37 |
152 | - __( 'Event Manager', 'event_espresso' ), |
|
152 | + __('Event Manager', 'event_espresso'), |
|
153 | 153 | |
154 | 154 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:26 |
155 | - __( 'Event Phone Number', 'event_espresso' ), |
|
155 | + __('Event Phone Number', 'event_espresso'), |
|
156 | 156 | |
157 | 157 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:35 |
158 | - __( 'Maximum Number of Registrations Allowed per Transaction', 'event_espresso' ), |
|
158 | + __('Maximum Number of Registrations Allowed per Transaction', 'event_espresso'), |
|
159 | 159 | |
160 | 160 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:20 |
161 | - __( 'hide ticket selector', 'event_espresso' ), |
|
161 | + __('hide ticket selector', 'event_espresso'), |
|
162 | 162 | |
163 | 163 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:20 |
164 | - __( 'show ticket selector', 'event_espresso' ), |
|
164 | + __('show ticket selector', 'event_espresso'), |
|
165 | 165 | |
166 | 166 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:24 |
167 | - __( 'Display Ticket Selector', 'event_espresso' ), |
|
167 | + __('Display Ticket Selector', 'event_espresso'), |
|
168 | 168 | |
169 | 169 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/index.tsx:22 |
170 | - __( 'Registration Options', 'event_espresso' ), |
|
170 | + __('Registration Options', 'event_espresso'), |
|
171 | 171 | |
172 | 172 | // Reference: domains/eventEditor/src/ui/datetimes/DateRegistrationsLink.tsx:17 |
173 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
173 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
174 | 174 | |
175 | 175 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/formValidation.ts:15 |
176 | 176 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/formValidation.ts:15 |
177 | - __( 'Name is required', 'event_espresso' ), |
|
177 | + __('Name is required', 'event_espresso'), |
|
178 | 178 | |
179 | 179 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/formValidation.ts:16 |
180 | 180 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
181 | 181 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/formValidation.ts:16 |
182 | 182 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
183 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
183 | + __('Name must be at least three characters', 'event_espresso'), |
|
184 | 184 | |
185 | 185 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Container.tsx:22 |
186 | 186 | /* translators: %s datetime id */ |
187 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
187 | + __('Edit datetime %s', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Container.tsx:25 |
190 | - __( 'New Datetime', 'event_espresso' ), |
|
190 | + __('New Datetime', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/ContentBody.tsx:40 |
193 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
193 | + __('Save and assign tickets', 'event_espresso'), |
|
194 | 194 | |
195 | 195 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
196 | - __( 'primary information about the date', 'event_espresso' ), |
|
196 | + __('primary information about the date', 'event_espresso'), |
|
197 | 197 | |
198 | 198 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
199 | - __( 'Date Details', 'event_espresso' ), |
|
199 | + __('Date Details', 'event_espresso'), |
|
200 | 200 | |
201 | 201 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:12 |
202 | 202 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:17 |
203 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
203 | + __('relations between tickets and dates', 'event_espresso'), |
|
204 | 204 | |
205 | 205 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:12 |
206 | - __( 'Assign Tickets', 'event_espresso' ), |
|
206 | + __('Assign Tickets', 'event_espresso'), |
|
207 | 207 | |
208 | 208 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:102 |
209 | 209 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:63 |
210 | 210 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:115 |
211 | - __( 'End Date', 'event_espresso' ), |
|
211 | + __('End Date', 'event_espresso'), |
|
212 | 212 | |
213 | 213 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:111 |
214 | 214 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
215 | 215 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:124 |
216 | 216 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
217 | - __( 'Details', 'event_espresso' ), |
|
217 | + __('Details', 'event_espresso'), |
|
218 | 218 | |
219 | 219 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:115 |
220 | 220 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
221 | 221 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:75 |
222 | - __( 'Capacity', 'event_espresso' ), |
|
222 | + __('Capacity', 'event_espresso'), |
|
223 | 223 | |
224 | 224 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:120 |
225 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
225 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
226 | 226 | |
227 | 227 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:124 |
228 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
228 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
229 | 229 | |
230 | 230 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
231 | 231 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:203 |
232 | - __( 'Trash', 'event_espresso' ), |
|
232 | + __('Trash', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:73 |
235 | 235 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
236 | 236 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:86 |
237 | 237 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
238 | - __( 'Basics', 'event_espresso' ), |
|
238 | + __('Basics', 'event_espresso'), |
|
239 | 239 | |
240 | 240 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:77 |
241 | 241 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
@@ -243,217 +243,217 @@ discard block |
||
243 | 243 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:90 |
244 | 244 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
245 | 245 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:42 |
246 | - __( 'Name', 'event_espresso' ), |
|
246 | + __('Name', 'event_espresso'), |
|
247 | 247 | |
248 | 248 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:84 |
249 | 249 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
250 | 250 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:97 |
251 | 251 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
252 | 252 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
253 | - __( 'Description', 'event_espresso' ), |
|
253 | + __('Description', 'event_espresso'), |
|
254 | 254 | |
255 | 255 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
256 | 256 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
257 | 257 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
258 | - __( 'Dates', 'event_espresso' ), |
|
258 | + __('Dates', 'event_espresso'), |
|
259 | 259 | |
260 | 260 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:96 |
261 | 261 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
262 | 262 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:109 |
263 | - __( 'Start Date', 'event_espresso' ), |
|
263 | + __('Start Date', 'event_espresso'), |
|
264 | 264 | |
265 | 265 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:34 |
266 | 266 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:42 |
267 | - __( 'Event Dates', 'event_espresso' ), |
|
267 | + __('Event Dates', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:37 |
270 | - __( 'loading event dates…', 'event_espresso' ), |
|
270 | + __('loading event dates…', 'event_espresso'), |
|
271 | 271 | |
272 | 272 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:22 |
273 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
273 | + __('Ticket Assignments', 'event_espresso'), |
|
274 | 274 | |
275 | 275 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:27 |
276 | - __( 'Number of related tickets', 'event_espresso' ), |
|
276 | + __('Number of related tickets', 'event_espresso'), |
|
277 | 277 | |
278 | 278 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:28 |
279 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
279 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
280 | 280 | |
281 | 281 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:42 |
282 | - __( 'assign tickets', 'event_espresso' ), |
|
282 | + __('assign tickets', 'event_espresso'), |
|
283 | 283 | |
284 | 284 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:19 |
285 | - __( 'Permanently delete Datetime?', 'event_espresso' ), |
|
285 | + __('Permanently delete Datetime?', 'event_espresso'), |
|
286 | 286 | |
287 | 287 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:19 |
288 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
288 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
289 | 289 | |
290 | 290 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:21 |
291 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
291 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
292 | 292 | |
293 | 293 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:24 |
294 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
294 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
295 | 295 | |
296 | 296 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:34 |
297 | - __( 'event date main menu', 'event_espresso' ), |
|
297 | + __('event date main menu', 'event_espresso'), |
|
298 | 298 | |
299 | 299 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:38 |
300 | 300 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:37 |
301 | - __( 'delete permanently', 'event_espresso' ), |
|
301 | + __('delete permanently', 'event_espresso'), |
|
302 | 302 | |
303 | 303 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:38 |
304 | - __( 'trash datetime', 'event_espresso' ), |
|
304 | + __('trash datetime', 'event_espresso'), |
|
305 | 305 | |
306 | 306 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:49 |
307 | - __( 'edit datetime', 'event_espresso' ), |
|
307 | + __('edit datetime', 'event_espresso'), |
|
308 | 308 | |
309 | 309 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:50 |
310 | - __( 'copy datetime', 'event_espresso' ), |
|
310 | + __('copy datetime', 'event_espresso'), |
|
311 | 311 | |
312 | 312 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:30 |
313 | - __( 'edit datetime details', 'event_espresso' ), |
|
313 | + __('edit datetime details', 'event_espresso'), |
|
314 | 314 | |
315 | 315 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
316 | - __( 'delete datetimes', 'event_espresso' ), |
|
316 | + __('delete datetimes', 'event_espresso'), |
|
317 | 317 | |
318 | 318 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
319 | - __( 'trash datetimes', 'event_espresso' ), |
|
319 | + __('trash datetimes', 'event_espresso'), |
|
320 | 320 | |
321 | 321 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:13 |
322 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
322 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
323 | 323 | |
324 | 324 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
325 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
325 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
326 | 326 | |
327 | 327 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
328 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
328 | + __('Delete datetimes permanently', 'event_espresso'), |
|
329 | 329 | |
330 | 330 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
331 | - __( 'Trash datetimes', 'event_espresso' ), |
|
331 | + __('Trash datetimes', 'event_espresso'), |
|
332 | 332 | |
333 | 333 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
334 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
334 | + __('Bulk edit date details', 'event_espresso'), |
|
335 | 335 | |
336 | 336 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:23 |
337 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
337 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
338 | 338 | |
339 | 339 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
340 | 340 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
341 | - __( 'Shift dates', 'event_espresso' ), |
|
341 | + __('Shift dates', 'event_espresso'), |
|
342 | 342 | |
343 | 343 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
344 | 344 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
345 | - __( 'earlier', 'event_espresso' ), |
|
345 | + __('earlier', 'event_espresso'), |
|
346 | 346 | |
347 | 347 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
348 | 348 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
349 | - __( 'later', 'event_espresso' ), |
|
349 | + __('later', 'event_espresso'), |
|
350 | 350 | |
351 | 351 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:35 |
352 | - __( 'edit capacity (registration limit)…', 'event_espresso' ), |
|
352 | + __('edit capacity (registration limit)…', 'event_espresso'), |
|
353 | 353 | |
354 | 354 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:37 |
355 | - __( 'Edit Event Date', 'event_espresso' ), |
|
355 | + __('Edit Event Date', 'event_espresso'), |
|
356 | 356 | |
357 | 357 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:40 |
358 | - __( 'edit start and end dates', 'event_espresso' ), |
|
358 | + __('edit start and end dates', 'event_espresso'), |
|
359 | 359 | |
360 | 360 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:14 |
361 | 361 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:14 |
362 | - __( 'sold', 'event_espresso' ), |
|
362 | + __('sold', 'event_espresso'), |
|
363 | 363 | |
364 | 364 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:27 |
365 | - __( 'capacity', 'event_espresso' ), |
|
365 | + __('capacity', 'event_espresso'), |
|
366 | 366 | |
367 | 367 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:33 |
368 | 368 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:32 |
369 | - __( 'reg list', 'event_espresso' ), |
|
369 | + __('reg list', 'event_espresso'), |
|
370 | 370 | |
371 | 371 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:42 |
372 | 372 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:40 |
373 | - __( 'Edit description', 'event_espresso' ), |
|
373 | + __('Edit description', 'event_espresso'), |
|
374 | 374 | |
375 | 375 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:43 |
376 | 376 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:41 |
377 | - __( 'edit description…', 'event_espresso' ), |
|
377 | + __('edit description…', 'event_espresso'), |
|
378 | 378 | |
379 | 379 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
380 | - __( 'Active', 'event_espresso' ), |
|
380 | + __('Active', 'event_espresso'), |
|
381 | 381 | |
382 | 382 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
383 | 383 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
384 | - __( 'Trashed', 'event_espresso' ), |
|
384 | + __('Trashed', 'event_espresso'), |
|
385 | 385 | |
386 | 386 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
387 | 387 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
388 | - __( 'Expired', 'event_espresso' ), |
|
388 | + __('Expired', 'event_espresso'), |
|
389 | 389 | |
390 | 390 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
391 | 391 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
392 | - __( 'Sold Out', 'event_espresso' ), |
|
392 | + __('Sold Out', 'event_espresso'), |
|
393 | 393 | |
394 | 394 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
395 | - __( 'Upcoming', 'event_espresso' ), |
|
395 | + __('Upcoming', 'event_espresso'), |
|
396 | 396 | |
397 | 397 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:17 |
398 | 398 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:27 |
399 | - __( 'edit title…', 'event_espresso' ), |
|
399 | + __('edit title…', 'event_espresso'), |
|
400 | 400 | |
401 | 401 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:25 |
402 | 402 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:25 |
403 | - __( 'ON', 'event_espresso' ), |
|
403 | + __('ON', 'event_espresso'), |
|
404 | 404 | |
405 | 405 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
406 | - __( 'end dates only', 'event_espresso' ), |
|
406 | + __('end dates only', 'event_espresso'), |
|
407 | 407 | |
408 | 408 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
409 | - __( 'start and end dates', 'event_espresso' ), |
|
409 | + __('start and end dates', 'event_espresso'), |
|
410 | 410 | |
411 | 411 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
412 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
412 | + __('dates above 90% capacity', 'event_espresso'), |
|
413 | 413 | |
414 | 414 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
415 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
415 | + __('dates above 75% capacity', 'event_espresso'), |
|
416 | 416 | |
417 | 417 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
418 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
418 | + __('dates above 50% capacity', 'event_espresso'), |
|
419 | 419 | |
420 | 420 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
421 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
421 | + __('dates below 50% capacity', 'event_espresso'), |
|
422 | 422 | |
423 | 423 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
424 | - __( 'all dates', 'event_espresso' ), |
|
424 | + __('all dates', 'event_espresso'), |
|
425 | 425 | |
426 | 426 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
427 | - __( 'all active and upcoming', 'event_espresso' ), |
|
427 | + __('all active and upcoming', 'event_espresso'), |
|
428 | 428 | |
429 | 429 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
430 | - __( 'active dates only', 'event_espresso' ), |
|
430 | + __('active dates only', 'event_espresso'), |
|
431 | 431 | |
432 | 432 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
433 | - __( 'upcoming dates only', 'event_espresso' ), |
|
433 | + __('upcoming dates only', 'event_espresso'), |
|
434 | 434 | |
435 | 435 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
436 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
436 | + __('next active or upcoming only', 'event_espresso'), |
|
437 | 437 | |
438 | 438 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
439 | - __( 'sold out dates only', 'event_espresso' ), |
|
439 | + __('sold out dates only', 'event_espresso'), |
|
440 | 440 | |
441 | 441 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
442 | - __( 'recently expired dates', 'event_espresso' ), |
|
442 | + __('recently expired dates', 'event_espresso'), |
|
443 | 443 | |
444 | 444 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
445 | - __( 'all expired dates', 'event_espresso' ), |
|
445 | + __('all expired dates', 'event_espresso'), |
|
446 | 446 | |
447 | 447 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
448 | - __( 'trashed dates only', 'event_espresso' ), |
|
448 | + __('trashed dates only', 'event_espresso'), |
|
449 | 449 | |
450 | 450 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
451 | 451 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:10 |
452 | 452 | // Reference: packages/dates/src/DateRangePicker/index.tsx:42 |
453 | - __( 'start date', 'event_espresso' ), |
|
453 | + __('start date', 'event_espresso'), |
|
454 | 454 | |
455 | 455 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
456 | - __( 'name', 'event_espresso' ), |
|
456 | + __('name', 'event_espresso'), |
|
457 | 457 | |
458 | 458 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
459 | 459 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:38 |
@@ -461,96 +461,96 @@ discard block |
||
461 | 461 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:20 |
462 | 462 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:36 |
463 | 463 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
464 | - __( 'ID', 'event_espresso' ), |
|
464 | + __('ID', 'event_espresso'), |
|
465 | 465 | |
466 | 466 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
467 | 467 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
468 | - __( 'custom order', 'event_espresso' ), |
|
468 | + __('custom order', 'event_espresso'), |
|
469 | 469 | |
470 | 470 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
471 | 471 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
472 | - __( 'display', 'event_espresso' ), |
|
472 | + __('display', 'event_espresso'), |
|
473 | 473 | |
474 | 474 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
475 | - __( 'recurrence', 'event_espresso' ), |
|
475 | + __('recurrence', 'event_espresso'), |
|
476 | 476 | |
477 | 477 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
478 | 478 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
479 | - __( 'sales', 'event_espresso' ), |
|
479 | + __('sales', 'event_espresso'), |
|
480 | 480 | |
481 | 481 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
482 | 482 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
483 | - __( 'sort by', 'event_espresso' ), |
|
483 | + __('sort by', 'event_espresso'), |
|
484 | 484 | |
485 | 485 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
486 | 486 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
487 | 487 | // Reference: packages/components/src/EntityList/filterBar/EntityListFilterBar.tsx:73 |
488 | - __( 'search', 'event_espresso' ), |
|
488 | + __('search', 'event_espresso'), |
|
489 | 489 | |
490 | 490 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
491 | 491 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:57 |
492 | - __( 'status', 'event_espresso' ), |
|
492 | + __('status', 'event_espresso'), |
|
493 | 493 | |
494 | 494 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
495 | - __( 'start dates only', 'event_espresso' ), |
|
495 | + __('start dates only', 'event_espresso'), |
|
496 | 496 | |
497 | 497 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:20 |
498 | 498 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:15 |
499 | 499 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:11 |
500 | - __( 'Add New Date', 'event_espresso' ), |
|
500 | + __('Add New Date', 'event_espresso'), |
|
501 | 501 | |
502 | 502 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:20 |
503 | - __( 'Add Single Date', 'event_espresso' ), |
|
503 | + __('Add Single Date', 'event_espresso'), |
|
504 | 504 | |
505 | 505 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:34 |
506 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
506 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
507 | 507 | |
508 | 508 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:36 |
509 | - __( 'Single Date', 'event_espresso' ), |
|
509 | + __('Single Date', 'event_espresso'), |
|
510 | 510 | |
511 | 511 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:105 |
512 | 512 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:103 |
513 | 513 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
514 | - __( 'Actions', 'event_espresso' ), |
|
514 | + __('Actions', 'event_espresso'), |
|
515 | 515 | |
516 | 516 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:53 |
517 | - __( 'Start', 'event_espresso' ), |
|
517 | + __('Start', 'event_espresso'), |
|
518 | 518 | |
519 | 519 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:64 |
520 | - __( 'End', 'event_espresso' ), |
|
520 | + __('End', 'event_espresso'), |
|
521 | 521 | |
522 | 522 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:76 |
523 | - __( 'Cap', 'event_espresso' ), |
|
523 | + __('Cap', 'event_espresso'), |
|
524 | 524 | |
525 | 525 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:84 |
526 | 526 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:85 |
527 | - __( 'Sold', 'event_espresso' ), |
|
527 | + __('Sold', 'event_espresso'), |
|
528 | 528 | |
529 | 529 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:93 |
530 | - __( 'Reg list', 'event_espresso' ), |
|
530 | + __('Reg list', 'event_espresso'), |
|
531 | 531 | |
532 | 532 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
533 | 533 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:95 |
534 | - __( 'Regs', 'event_espresso' ), |
|
534 | + __('Regs', 'event_espresso'), |
|
535 | 535 | |
536 | 536 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
537 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
537 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
538 | 538 | |
539 | 539 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
540 | - __( 'Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
540 | + __('Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
541 | 541 | |
542 | 542 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:25 |
543 | 543 | /* translators: %d entity id, %s entity name */ |
544 | - __( 'Ticket Assignment Manager for Datetime: %1$d - %2$s', 'event_espresso' ), |
|
544 | + __('Ticket Assignment Manager for Datetime: %1$d - %2$s', 'event_espresso'), |
|
545 | 545 | |
546 | 546 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:32 |
547 | 547 | /* translators: %d entity id, %s entity name */ |
548 | - __( 'Ticket Assignment Manager for Ticket: %1$d - %2$s', 'event_espresso' ), |
|
548 | + __('Ticket Assignment Manager for Ticket: %1$d - %2$s', 'event_espresso'), |
|
549 | 549 | |
550 | 550 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/buttons/useCancelButtonProps.tsx:18 |
551 | 551 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
552 | 552 | // Reference: packages/components/src/Modal/useCancelButtonProps.tsx:10 |
553 | - __( 'Cancel', 'event_espresso' ), |
|
553 | + __('Cancel', 'event_espresso'), |
|
554 | 554 | |
555 | 555 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/buttons/useSubmitButtonProps.tsx:25 |
556 | 556 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:17 |
@@ -559,773 +559,773 @@ discard block |
||
559 | 559 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:38 |
560 | 560 | // Reference: packages/form/src/Submit.tsx:26 |
561 | 561 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:25 |
562 | - __( 'Submit', 'event_espresso' ), |
|
562 | + __('Submit', 'event_espresso'), |
|
563 | 563 | |
564 | 564 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/index.tsx:30 |
565 | 565 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:14 |
566 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
566 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
567 | 567 | |
568 | 568 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:24 |
569 | - __( 'assign ticket', 'event_espresso' ), |
|
569 | + __('assign ticket', 'event_espresso'), |
|
570 | 570 | |
571 | 571 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:19 |
572 | - __( 'All Dates', 'event_espresso' ), |
|
572 | + __('All Dates', 'event_espresso'), |
|
573 | 573 | |
574 | 574 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:26 |
575 | - __( 'dates by month', 'event_espresso' ), |
|
575 | + __('dates by month', 'event_espresso'), |
|
576 | 576 | |
577 | 577 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:14 |
578 | - __( 'show expired tickets', 'event_espresso' ), |
|
578 | + __('show expired tickets', 'event_espresso'), |
|
579 | 579 | |
580 | 580 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:10 |
581 | - __( 'show trashed dates', 'event_espresso' ), |
|
581 | + __('show trashed dates', 'event_espresso'), |
|
582 | 582 | |
583 | 583 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:14 |
584 | - __( 'show trashed tickets', 'event_espresso' ), |
|
584 | + __('show trashed tickets', 'event_espresso'), |
|
585 | 585 | |
586 | 586 | // Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:17 |
587 | - __( 'total registrations.', 'event_espresso' ), |
|
587 | + __('total registrations.', 'event_espresso'), |
|
588 | 588 | |
589 | 589 | // Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:18 |
590 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
590 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
591 | 591 | |
592 | 592 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Container.tsx:21 |
593 | 593 | /* translators: %s ticket id */ |
594 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
594 | + __('Edit ticket %s', 'event_espresso'), |
|
595 | 595 | |
596 | 596 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Container.tsx:24 |
597 | - __( 'New Ticket Details', 'event_espresso' ), |
|
597 | + __('New Ticket Details', 'event_espresso'), |
|
598 | 598 | |
599 | 599 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:47 |
600 | - __( 'Set ticket prices', 'event_espresso' ), |
|
600 | + __('Set ticket prices', 'event_espresso'), |
|
601 | 601 | |
602 | 602 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:54 |
603 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
603 | + __('Skip prices - assign dates', 'event_espresso'), |
|
604 | 604 | |
605 | 605 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:70 |
606 | - __( 'Save and assign dates', 'event_espresso' ), |
|
606 | + __('Save and assign dates', 'event_espresso'), |
|
607 | 607 | |
608 | 608 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:83 |
609 | - __( 'Ticket details', 'event_espresso' ), |
|
609 | + __('Ticket details', 'event_espresso'), |
|
610 | 610 | |
611 | 611 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:11 |
612 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
612 | + __('primary information about the ticket', 'event_espresso'), |
|
613 | 613 | |
614 | 614 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:11 |
615 | - __( 'Ticket Details', 'event_espresso' ), |
|
615 | + __('Ticket Details', 'event_espresso'), |
|
616 | 616 | |
617 | 617 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:13 |
618 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
618 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
619 | 619 | |
620 | 620 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:15 |
621 | - __( 'Price Calculator', 'event_espresso' ), |
|
621 | + __('Price Calculator', 'event_espresso'), |
|
622 | 622 | |
623 | 623 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:17 |
624 | - __( 'Assign Dates', 'event_espresso' ), |
|
624 | + __('Assign Dates', 'event_espresso'), |
|
625 | 625 | |
626 | 626 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:105 |
627 | - __( 'Ticket Sales', 'event_espresso' ), |
|
627 | + __('Ticket Sales', 'event_espresso'), |
|
628 | 628 | |
629 | 629 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:128 |
630 | 630 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
631 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
631 | + __('Quantity For Sale', 'event_espresso'), |
|
632 | 632 | |
633 | 633 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:134 |
634 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
634 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
635 | 635 | |
636 | 636 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:136 |
637 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
637 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
638 | 638 | |
639 | 639 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:141 |
640 | 640 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
641 | - __( 'Number of Uses', 'event_espresso' ), |
|
641 | + __('Number of Uses', 'event_espresso'), |
|
642 | 642 | |
643 | 643 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:147 |
644 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
644 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
645 | 645 | |
646 | 646 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:151 |
647 | - __( 'Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso' ), |
|
647 | + __('Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso'), |
|
648 | 648 | |
649 | 649 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:158 |
650 | 650 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
651 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
651 | + __('Minimum Quantity', 'event_espresso'), |
|
652 | 652 | |
653 | 653 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:163 |
654 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
654 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
655 | 655 | |
656 | 656 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:167 |
657 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
657 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
658 | 658 | |
659 | 659 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:172 |
660 | 660 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
661 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
661 | + __('Maximum Quantity', 'event_espresso'), |
|
662 | 662 | |
663 | 663 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:178 |
664 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
664 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
665 | 665 | |
666 | 666 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:182 |
667 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
667 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
668 | 668 | |
669 | 669 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:187 |
670 | 670 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
671 | - __( 'Required Ticket', 'event_espresso' ), |
|
671 | + __('Required Ticket', 'event_espresso'), |
|
672 | 672 | |
673 | 673 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:189 |
674 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
674 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
675 | 675 | |
676 | 676 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:196 |
677 | - __( 'Default Ticket', 'event_espresso' ), |
|
677 | + __('Default Ticket', 'event_espresso'), |
|
678 | 678 | |
679 | 679 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:198 |
680 | - __( 'If enabled, the ticket will appear on all new events.', 'event_espresso' ), |
|
680 | + __('If enabled, the ticket will appear on all new events.', 'event_espresso'), |
|
681 | 681 | |
682 | 682 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:35 |
683 | - __( 'Available Tickets', 'event_espresso' ), |
|
683 | + __('Available Tickets', 'event_espresso'), |
|
684 | 684 | |
685 | 685 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:38 |
686 | - __( 'loading tickets…', 'event_espresso' ), |
|
686 | + __('loading tickets…', 'event_espresso'), |
|
687 | 687 | |
688 | 688 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
689 | - __( 'Number of related dates', 'event_espresso' ), |
|
689 | + __('Number of related dates', 'event_espresso'), |
|
690 | 690 | |
691 | 691 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:28 |
692 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
692 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
693 | 693 | |
694 | 694 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:44 |
695 | - __( 'assign dates', 'event_espresso' ), |
|
695 | + __('assign dates', 'event_espresso'), |
|
696 | 696 | |
697 | 697 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:19 |
698 | - __( 'Permanently delete Ticket?', 'event_espresso' ), |
|
698 | + __('Permanently delete Ticket?', 'event_espresso'), |
|
699 | 699 | |
700 | 700 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:19 |
701 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
701 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
702 | 702 | |
703 | 703 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:21 |
704 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
704 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
705 | 705 | |
706 | 706 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:22 |
707 | - __( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ), |
|
707 | + __('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'), |
|
708 | 708 | |
709 | 709 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:33 |
710 | - __( 'ticket main menu', 'event_espresso' ), |
|
710 | + __('ticket main menu', 'event_espresso'), |
|
711 | 711 | |
712 | 712 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:37 |
713 | - __( 'trash ticket', 'event_espresso' ), |
|
713 | + __('trash ticket', 'event_espresso'), |
|
714 | 714 | |
715 | 715 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:48 |
716 | - __( 'edit ticket', 'event_espresso' ), |
|
716 | + __('edit ticket', 'event_espresso'), |
|
717 | 717 | |
718 | 718 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:49 |
719 | - __( 'copy ticket', 'event_espresso' ), |
|
719 | + __('copy ticket', 'event_espresso'), |
|
720 | 720 | |
721 | 721 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39 |
722 | 722 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:44 |
723 | - __( 'bulk actions', 'event_espresso' ), |
|
723 | + __('bulk actions', 'event_espresso'), |
|
724 | 724 | |
725 | 725 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43 |
726 | - __( 'edit ticket details', 'event_espresso' ), |
|
726 | + __('edit ticket details', 'event_espresso'), |
|
727 | 727 | |
728 | 728 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
729 | - __( 'delete tickets', 'event_espresso' ), |
|
729 | + __('delete tickets', 'event_espresso'), |
|
730 | 730 | |
731 | 731 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
732 | - __( 'trash tickets', 'event_espresso' ), |
|
732 | + __('trash tickets', 'event_espresso'), |
|
733 | 733 | |
734 | 734 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51 |
735 | - __( 'edit ticket prices', 'event_espresso' ), |
|
735 | + __('edit ticket prices', 'event_espresso'), |
|
736 | 736 | |
737 | 737 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:13 |
738 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
738 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
739 | 739 | |
740 | 740 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
741 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
741 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
742 | 742 | |
743 | 743 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
744 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
744 | + __('Delete tickets permanently', 'event_espresso'), |
|
745 | 745 | |
746 | 746 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
747 | - __( 'Trash tickets', 'event_espresso' ), |
|
747 | + __('Trash tickets', 'event_espresso'), |
|
748 | 748 | |
749 | 749 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
750 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
750 | + __('Bulk edit ticket details', 'event_espresso'), |
|
751 | 751 | |
752 | 752 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:23 |
753 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
753 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
754 | 754 | |
755 | 755 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:18 |
756 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
756 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
757 | 757 | |
758 | 758 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:19 |
759 | - __( 'Edit all prices together', 'event_espresso' ), |
|
759 | + __('Edit all prices together', 'event_espresso'), |
|
760 | 760 | |
761 | 761 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
762 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
762 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
763 | 763 | |
764 | 764 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:24 |
765 | - __( 'Edit prices individually', 'event_espresso' ), |
|
765 | + __('Edit prices individually', 'event_espresso'), |
|
766 | 766 | |
767 | 767 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
768 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
768 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
769 | 769 | |
770 | 770 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
771 | 771 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:45 |
772 | 772 | // Reference: packages/form/src/ResetButton.tsx:17 |
773 | 773 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
774 | - __( 'Reset', 'event_espresso' ), |
|
774 | + __('Reset', 'event_espresso'), |
|
775 | 775 | |
776 | 776 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:25 |
777 | 777 | /* translators: %s ticket name */ |
778 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
778 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
779 | 779 | |
780 | 780 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:36 |
781 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
781 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
782 | 782 | |
783 | 783 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:38 |
784 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
784 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
785 | 785 | |
786 | 786 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:27 |
787 | - __( 'quantity', 'event_espresso' ), |
|
787 | + __('quantity', 'event_espresso'), |
|
788 | 788 | |
789 | 789 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:26 |
790 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
790 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
791 | 791 | |
792 | 792 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
793 | 793 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
794 | - __( 'On Sale', 'event_espresso' ), |
|
794 | + __('On Sale', 'event_espresso'), |
|
795 | 795 | |
796 | 796 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
797 | - __( 'Pending', 'event_espresso' ), |
|
797 | + __('Pending', 'event_espresso'), |
|
798 | 798 | |
799 | 799 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:32 |
800 | - __( 'edit ticket total…', 'event_espresso' ), |
|
800 | + __('edit ticket total…', 'event_espresso'), |
|
801 | 801 | |
802 | 802 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:42 |
803 | - __( 'set price…', 'event_espresso' ), |
|
803 | + __('set price…', 'event_espresso'), |
|
804 | 804 | |
805 | 805 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
806 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
806 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
807 | 807 | |
808 | 808 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:25 |
809 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
809 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
810 | 810 | |
811 | 811 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
812 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
812 | + __('ticket sales start and end dates', 'event_espresso'), |
|
813 | 813 | |
814 | 814 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
815 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
815 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
816 | 816 | |
817 | 817 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
818 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
818 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
819 | 819 | |
820 | 820 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
821 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
821 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
822 | 822 | |
823 | 823 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
824 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
824 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
825 | 825 | |
826 | 826 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
827 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
827 | + __('all tickets for all dates', 'event_espresso'), |
|
828 | 828 | |
829 | 829 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
830 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
830 | + __('all on sale and sale pending', 'event_espresso'), |
|
831 | 831 | |
832 | 832 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
833 | - __( 'on sale tickets only', 'event_espresso' ), |
|
833 | + __('on sale tickets only', 'event_espresso'), |
|
834 | 834 | |
835 | 835 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
836 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
836 | + __('sale pending tickets only', 'event_espresso'), |
|
837 | 837 | |
838 | 838 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
839 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
839 | + __('next on sale or sale pending only', 'event_espresso'), |
|
840 | 840 | |
841 | 841 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
842 | - __( 'sold out tickets only', 'event_espresso' ), |
|
842 | + __('sold out tickets only', 'event_espresso'), |
|
843 | 843 | |
844 | 844 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
845 | - __( 'expired tickets only', 'event_espresso' ), |
|
845 | + __('expired tickets only', 'event_espresso'), |
|
846 | 846 | |
847 | 847 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
848 | - __( 'trashed tickets only', 'event_espresso' ), |
|
848 | + __('trashed tickets only', 'event_espresso'), |
|
849 | 849 | |
850 | 850 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
851 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
851 | + __('all tickets for above dates', 'event_espresso'), |
|
852 | 852 | |
853 | 853 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
854 | - __( 'ticket sale date', 'event_espresso' ), |
|
854 | + __('ticket sale date', 'event_espresso'), |
|
855 | 855 | |
856 | 856 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
857 | - __( 'ticket name', 'event_espresso' ), |
|
857 | + __('ticket name', 'event_espresso'), |
|
858 | 858 | |
859 | 859 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
860 | - __( 'ticket ID', 'event_espresso' ), |
|
860 | + __('ticket ID', 'event_espresso'), |
|
861 | 861 | |
862 | 862 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
863 | - __( 'link', 'event_espresso' ), |
|
863 | + __('link', 'event_espresso'), |
|
864 | 864 | |
865 | 865 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
866 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
866 | + __('ticket sales start date only', 'event_espresso'), |
|
867 | 867 | |
868 | 868 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
869 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
869 | + __('ticket sales end date only', 'event_espresso'), |
|
870 | 870 | |
871 | 871 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:19 |
872 | - __( 'Add New Ticket', 'event_espresso' ), |
|
872 | + __('Add New Ticket', 'event_espresso'), |
|
873 | 873 | |
874 | 874 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:31 |
875 | - __( 'Single Ticket', 'event_espresso' ), |
|
875 | + __('Single Ticket', 'event_espresso'), |
|
876 | 876 | |
877 | 877 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:33 |
878 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
878 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
879 | 879 | |
880 | 880 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:40 |
881 | - __( 'Tickets', 'event_espresso' ), |
|
881 | + __('Tickets', 'event_espresso'), |
|
882 | 882 | |
883 | 883 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:50 |
884 | - __( 'Goes on Sale', 'event_espresso' ), |
|
884 | + __('Goes on Sale', 'event_espresso'), |
|
885 | 885 | |
886 | 886 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:61 |
887 | - __( 'Sale Ends', 'event_espresso' ), |
|
887 | + __('Sale Ends', 'event_espresso'), |
|
888 | 888 | |
889 | 889 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:62 |
890 | - __( 'Ends', 'event_espresso' ), |
|
890 | + __('Ends', 'event_espresso'), |
|
891 | 891 | |
892 | 892 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:71 |
893 | - __( 'Price', 'event_espresso' ), |
|
893 | + __('Price', 'event_espresso'), |
|
894 | 894 | |
895 | 895 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
896 | - __( 'Quantity', 'event_espresso' ), |
|
896 | + __('Quantity', 'event_espresso'), |
|
897 | 897 | |
898 | 898 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:94 |
899 | - __( 'Registrations', 'event_espresso' ), |
|
899 | + __('Registrations', 'event_espresso'), |
|
900 | 900 | |
901 | 901 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:28 |
902 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
902 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
903 | 903 | |
904 | 904 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:39 |
905 | - __( 'Skip', 'event_espresso' ), |
|
905 | + __('Skip', 'event_espresso'), |
|
906 | 906 | |
907 | 907 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:41 |
908 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
908 | + __('Sure I\'ll help', 'event_espresso'), |
|
909 | 909 | |
910 | 910 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:24 |
911 | - __( 'pagination', 'event_espresso' ), |
|
911 | + __('pagination', 'event_espresso'), |
|
912 | 912 | |
913 | 913 | // Reference: packages/components/src/ActiveFilters/ActiveFilters.tsx:9 |
914 | - __( 'active filters:', 'event_espresso' ), |
|
914 | + __('active filters:', 'event_espresso'), |
|
915 | 915 | |
916 | 916 | // Reference: packages/components/src/ActiveFilters/FilterTag.tsx:11 |
917 | 917 | /* translators: %s filter name */ |
918 | - __( 'remove filter - %s', 'event_espresso' ), |
|
918 | + __('remove filter - %s', 'event_espresso'), |
|
919 | 919 | |
920 | 920 | // Reference: packages/components/src/CalendarDateRange/CalendarDateRange.tsx:39 |
921 | - __( 'to', 'event_espresso' ), |
|
921 | + __('to', 'event_espresso'), |
|
922 | 922 | |
923 | 923 | // Reference: packages/components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:33 |
924 | - __( 'starts', 'event_espresso' ), |
|
924 | + __('starts', 'event_espresso'), |
|
925 | 925 | |
926 | 926 | // Reference: packages/components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:45 |
927 | - __( 'ends', 'event_espresso' ), |
|
927 | + __('ends', 'event_espresso'), |
|
928 | 928 | |
929 | 929 | // Reference: packages/components/src/CalendarPageDate/CalendarPageDate.tsx:57 |
930 | - __( 'TO', 'event_espresso' ), |
|
930 | + __('TO', 'event_espresso'), |
|
931 | 931 | |
932 | 932 | // Reference: packages/components/src/Confirm/ConfirmClose.tsx:8 |
933 | 933 | // Reference: packages/components/src/Modal/ModalWithAlert.tsx:24 |
934 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
934 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
935 | 935 | |
936 | 936 | // Reference: packages/components/src/Confirm/ConfirmDelete.tsx:8 |
937 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
937 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
938 | 938 | |
939 | 939 | // Reference: packages/components/src/Confirm/useConfirmWithButton.tsx:11 |
940 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
940 | + __('Please confirm this action.', 'event_espresso'), |
|
941 | 941 | |
942 | 942 | // Reference: packages/components/src/Confirm/useConfirmationDialog.tsx:32 |
943 | - __( 'No', 'event_espresso' ), |
|
943 | + __('No', 'event_espresso'), |
|
944 | 944 | |
945 | 945 | // Reference: packages/components/src/Confirm/useConfirmationDialog.tsx:33 |
946 | - __( 'Yes', 'event_espresso' ), |
|
946 | + __('Yes', 'event_espresso'), |
|
947 | 947 | |
948 | 948 | // Reference: packages/components/src/DateTimeRangePicker/index.tsx:74 |
949 | 949 | // Reference: packages/components/src/Popover/PopoverForm/PopoverForm.tsx:42 |
950 | - __( 'save', 'event_espresso' ), |
|
950 | + __('save', 'event_espresso'), |
|
951 | 951 | |
952 | 952 | // Reference: packages/components/src/DebugInfo/DebugInfo.tsx:38 |
953 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
953 | + __('Hide Debug Info', 'event_espresso'), |
|
954 | 954 | |
955 | 955 | // Reference: packages/components/src/DebugInfo/DebugInfo.tsx:38 |
956 | - __( 'Show Debug Info', 'event_espresso' ), |
|
956 | + __('Show Debug Info', 'event_espresso'), |
|
957 | 957 | |
958 | 958 | // Reference: packages/components/src/EditDateRangeButton/index.tsx:41 |
959 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
959 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
960 | 960 | |
961 | 961 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:9 |
962 | - __( 'copy', 'event_espresso' ), |
|
962 | + __('copy', 'event_espresso'), |
|
963 | 963 | |
964 | 964 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:9 |
965 | - __( 'edit', 'event_espresso' ), |
|
965 | + __('edit', 'event_espresso'), |
|
966 | 966 | |
967 | 967 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:9 |
968 | - __( 'trash', 'event_espresso' ), |
|
968 | + __('trash', 'event_espresso'), |
|
969 | 969 | |
970 | 970 | // Reference: packages/components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:36 |
971 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
971 | + __('view approved registrations for this date.', 'event_espresso'), |
|
972 | 972 | |
973 | 973 | // Reference: packages/components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:37 |
974 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
974 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
975 | 975 | |
976 | 976 | // Reference: packages/components/src/EntityList/EntityList.tsx:36 |
977 | - __( 'no results found', 'event_espresso' ), |
|
977 | + __('no results found', 'event_espresso'), |
|
978 | 978 | |
979 | 979 | // Reference: packages/components/src/EntityList/EntityList.tsx:37 |
980 | - __( 'try changing filter settings', 'event_espresso' ), |
|
980 | + __('try changing filter settings', 'event_espresso'), |
|
981 | 981 | |
982 | 982 | // Reference: packages/components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:22 |
983 | - __( 'card view', 'event_espresso' ), |
|
983 | + __('card view', 'event_espresso'), |
|
984 | 984 | |
985 | 985 | // Reference: packages/components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:22 |
986 | - __( 'table view', 'event_espresso' ), |
|
986 | + __('table view', 'event_espresso'), |
|
987 | 987 | |
988 | 988 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:11 |
989 | - __( 'hide filters', 'event_espresso' ), |
|
989 | + __('hide filters', 'event_espresso'), |
|
990 | 990 | |
991 | 991 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:11 |
992 | - __( 'show filters', 'event_espresso' ), |
|
992 | + __('show filters', 'event_espresso'), |
|
993 | 993 | |
994 | 994 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleSortingButton.tsx:28 |
995 | - __( 'disable sorting', 'event_espresso' ), |
|
995 | + __('disable sorting', 'event_espresso'), |
|
996 | 996 | |
997 | 997 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleSortingButton.tsx:28 |
998 | - __( 'enable sorting', 'event_espresso' ), |
|
998 | + __('enable sorting', 'event_espresso'), |
|
999 | 999 | |
1000 | 1000 | // Reference: packages/components/src/Legend/ToggleLegendButton.tsx:27 |
1001 | - __( 'hide legend', 'event_espresso' ), |
|
1001 | + __('hide legend', 'event_espresso'), |
|
1002 | 1002 | |
1003 | 1003 | // Reference: packages/components/src/Legend/ToggleLegendButton.tsx:27 |
1004 | - __( 'show legend', 'event_espresso' ), |
|
1004 | + __('show legend', 'event_espresso'), |
|
1005 | 1005 | |
1006 | 1006 | // Reference: packages/components/src/LoadingNotice/LoadingNotice.tsx:12 |
1007 | - __( 'loading…', 'event_espresso' ), |
|
1007 | + __('loading…', 'event_espresso'), |
|
1008 | 1008 | |
1009 | 1009 | // Reference: packages/components/src/Modal/Modal.tsx:59 |
1010 | - __( 'close modal', 'event_espresso' ), |
|
1010 | + __('close modal', 'event_espresso'), |
|
1011 | 1011 | |
1012 | 1012 | // Reference: packages/components/src/Modal/ModalWithAlert.tsx:23 |
1013 | - __( 'Alert!', 'event_espresso' ), |
|
1013 | + __('Alert!', 'event_espresso'), |
|
1014 | 1014 | |
1015 | 1015 | // Reference: packages/components/src/Pagination/ItemRender.tsx:10 |
1016 | - __( 'next', 'event_espresso' ), |
|
1016 | + __('next', 'event_espresso'), |
|
1017 | 1017 | |
1018 | 1018 | // Reference: packages/components/src/Pagination/ItemRender.tsx:11 |
1019 | - __( 'jump to previous', 'event_espresso' ), |
|
1019 | + __('jump to previous', 'event_espresso'), |
|
1020 | 1020 | |
1021 | 1021 | // Reference: packages/components/src/Pagination/ItemRender.tsx:12 |
1022 | - __( 'jump to next', 'event_espresso' ), |
|
1022 | + __('jump to next', 'event_espresso'), |
|
1023 | 1023 | |
1024 | 1024 | // Reference: packages/components/src/Pagination/ItemRender.tsx:13 |
1025 | - __( 'page', 'event_espresso' ), |
|
1025 | + __('page', 'event_espresso'), |
|
1026 | 1026 | |
1027 | 1027 | // Reference: packages/components/src/Pagination/ItemRender.tsx:9 |
1028 | - __( 'previous', 'event_espresso' ), |
|
1028 | + __('previous', 'event_espresso'), |
|
1029 | 1029 | |
1030 | 1030 | // Reference: packages/components/src/Pagination/PerPage.tsx:37 |
1031 | - __( 'items per page', 'event_espresso' ), |
|
1031 | + __('items per page', 'event_espresso'), |
|
1032 | 1032 | |
1033 | 1033 | // Reference: packages/components/src/Pagination/constants.ts:10 |
1034 | 1034 | /* translators: %s is per page value */ |
1035 | - __( '%s / page', 'event_espresso' ), |
|
1035 | + __('%s / page', 'event_espresso'), |
|
1036 | 1036 | |
1037 | 1037 | // Reference: packages/components/src/Pagination/constants.ts:13 |
1038 | - __( 'Next Page', 'event_espresso' ), |
|
1038 | + __('Next Page', 'event_espresso'), |
|
1039 | 1039 | |
1040 | 1040 | // Reference: packages/components/src/Pagination/constants.ts:14 |
1041 | - __( 'Previous Page', 'event_espresso' ), |
|
1041 | + __('Previous Page', 'event_espresso'), |
|
1042 | 1042 | |
1043 | 1043 | // Reference: packages/components/src/PercentSign/index.tsx:11 |
1044 | - __( '%', 'event_espresso' ), |
|
1044 | + __('%', 'event_espresso'), |
|
1045 | 1045 | |
1046 | 1046 | // Reference: packages/components/src/Stepper/buttons/Next.tsx:12 |
1047 | - __( 'Next', 'event_espresso' ), |
|
1047 | + __('Next', 'event_espresso'), |
|
1048 | 1048 | |
1049 | 1049 | // Reference: packages/components/src/Stepper/buttons/Previous.tsx:12 |
1050 | - __( 'Previous', 'event_espresso' ), |
|
1050 | + __('Previous', 'event_espresso'), |
|
1051 | 1051 | |
1052 | 1052 | // Reference: packages/components/src/Steps/Steps.tsx:30 |
1053 | - __( 'Steps', 'event_espresso' ), |
|
1053 | + __('Steps', 'event_espresso'), |
|
1054 | 1054 | |
1055 | 1055 | // Reference: packages/components/src/TabbableText/index.tsx:19 |
1056 | - __( 'Click to edit…', 'event_espresso' ), |
|
1056 | + __('Click to edit…', 'event_espresso'), |
|
1057 | 1057 | |
1058 | 1058 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:16 |
1059 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
1059 | + __('Your Local Time Zone', 'event_espresso'), |
|
1060 | 1060 | |
1061 | 1061 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:21 |
1062 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
1062 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
1063 | 1063 | |
1064 | 1064 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:26 |
1065 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
1065 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
1066 | 1066 | |
1067 | 1067 | // Reference: packages/components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:22 |
1068 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
1068 | + __('This Date Converted To:', 'event_espresso'), |
|
1069 | 1069 | |
1070 | 1070 | // Reference: packages/components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:23 |
1071 | - __( 'click for timezone information', 'event_espresso' ), |
|
1071 | + __('click for timezone information', 'event_espresso'), |
|
1072 | 1072 | |
1073 | 1073 | // Reference: packages/components/src/bulkEdit/ActionCheckbox.tsx:38 |
1074 | 1074 | /* translators: %d entity id */ |
1075 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1075 | + __('select entity with id %d', 'event_espresso'), |
|
1076 | 1076 | |
1077 | 1077 | // Reference: packages/components/src/bulkEdit/ActionCheckbox.tsx:41 |
1078 | - __( 'select all entities', 'event_espresso' ), |
|
1078 | + __('select all entities', 'event_espresso'), |
|
1079 | 1079 | |
1080 | 1080 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:52 |
1081 | - __( 'select all', 'event_espresso' ), |
|
1081 | + __('select all', 'event_espresso'), |
|
1082 | 1082 | |
1083 | 1083 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:54 |
1084 | - __( 'apply', 'event_espresso' ), |
|
1084 | + __('apply', 'event_espresso'), |
|
1085 | 1085 | |
1086 | 1086 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:20 |
1087 | - __( 'Note: ', 'event_espresso' ), |
|
1087 | + __('Note: ', 'event_espresso'), |
|
1088 | 1088 | |
1089 | 1089 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:20 |
1090 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
1090 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
1091 | 1091 | |
1092 | 1092 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:26 |
1093 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1093 | + __('Bulk edit details', 'event_espresso'), |
|
1094 | 1094 | |
1095 | 1095 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:28 |
1096 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
1096 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
1097 | 1097 | |
1098 | 1098 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:29 |
1099 | - __( 'Bulk update details', 'event_espresso' ), |
|
1099 | + __('Bulk update details', 'event_espresso'), |
|
1100 | 1100 | |
1101 | 1101 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:14 |
1102 | - __( 'day in range', 'event_espresso' ), |
|
1102 | + __('day in range', 'event_espresso'), |
|
1103 | 1103 | |
1104 | 1104 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:18 |
1105 | 1105 | // Reference: packages/dates/src/DateRangePicker/index.tsx:60 |
1106 | - __( 'end date', 'event_espresso' ), |
|
1106 | + __('end date', 'event_espresso'), |
|
1107 | 1107 | |
1108 | 1108 | // Reference: packages/dates/src/DateTimePicker.tsx:13 |
1109 | 1109 | // Reference: packages/dates/src/TimePicker.tsx:14 |
1110 | - __( 'time', 'event_espresso' ), |
|
1110 | + __('time', 'event_espresso'), |
|
1111 | 1111 | |
1112 | 1112 | // Reference: packages/dates/src/constants.ts:5 |
1113 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1113 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1114 | 1114 | |
1115 | 1115 | // Reference: packages/dates/src/constants.ts:7 |
1116 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1116 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1117 | 1117 | |
1118 | 1118 | // Reference: packages/dates/src/utils/misc.ts:14 |
1119 | - __( 'month(s)', 'event_espresso' ), |
|
1119 | + __('month(s)', 'event_espresso'), |
|
1120 | 1120 | |
1121 | 1121 | // Reference: packages/dates/src/utils/misc.ts:15 |
1122 | - __( 'week(s)', 'event_espresso' ), |
|
1122 | + __('week(s)', 'event_espresso'), |
|
1123 | 1123 | |
1124 | 1124 | // Reference: packages/dates/src/utils/misc.ts:16 |
1125 | - __( 'day(s)', 'event_espresso' ), |
|
1125 | + __('day(s)', 'event_espresso'), |
|
1126 | 1126 | |
1127 | 1127 | // Reference: packages/dates/src/utils/misc.ts:17 |
1128 | - __( 'hour(s)', 'event_espresso' ), |
|
1128 | + __('hour(s)', 'event_espresso'), |
|
1129 | 1129 | |
1130 | 1130 | // Reference: packages/dates/src/utils/misc.ts:18 |
1131 | - __( 'minute(s)', 'event_espresso' ), |
|
1131 | + __('minute(s)', 'event_espresso'), |
|
1132 | 1132 | |
1133 | 1133 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:104 |
1134 | - __( 'price types initialized', 'event_espresso' ), |
|
1134 | + __('price types initialized', 'event_espresso'), |
|
1135 | 1135 | |
1136 | 1136 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:114 |
1137 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1137 | + __('datetimes initialized', 'event_espresso'), |
|
1138 | 1138 | |
1139 | 1139 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:124 |
1140 | - __( 'tickets initialized', 'event_espresso' ), |
|
1140 | + __('tickets initialized', 'event_espresso'), |
|
1141 | 1141 | |
1142 | 1142 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:134 |
1143 | - __( 'prices initialized', 'event_espresso' ), |
|
1143 | + __('prices initialized', 'event_espresso'), |
|
1144 | 1144 | |
1145 | 1145 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:22 |
1146 | - __( 'End date has been set one hour after start date', 'event_espresso' ), |
|
1146 | + __('End date has been set one hour after start date', 'event_espresso'), |
|
1147 | 1147 | |
1148 | 1148 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:35 |
1149 | - __( 'Start date has been set one hour before end date', 'event_espresso' ), |
|
1149 | + __('Start date has been set one hour before end date', 'event_espresso'), |
|
1150 | 1150 | |
1151 | 1151 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:47 |
1152 | - __( 'Required', 'event_espresso' ), |
|
1152 | + __('Required', 'event_espresso'), |
|
1153 | 1153 | |
1154 | 1154 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:52 |
1155 | - __( 'Start Date is required', 'event_espresso' ), |
|
1155 | + __('Start Date is required', 'event_espresso'), |
|
1156 | 1156 | |
1157 | 1157 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:56 |
1158 | - __( 'End Date is required', 'event_espresso' ), |
|
1158 | + __('End Date is required', 'event_espresso'), |
|
1159 | 1159 | |
1160 | 1160 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:35 |
1161 | 1161 | /* translators: %d the entry number */ |
1162 | - __( 'Entry %d', 'event_espresso' ), |
|
1162 | + __('Entry %d', 'event_espresso'), |
|
1163 | 1163 | |
1164 | 1164 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:51 |
1165 | - __( 'Add', 'event_espresso' ), |
|
1165 | + __('Add', 'event_espresso'), |
|
1166 | 1166 | |
1167 | 1167 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1168 | 1168 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1169 | - __( 'sold out', 'event_espresso' ), |
|
1169 | + __('sold out', 'event_espresso'), |
|
1170 | 1170 | |
1171 | 1171 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1172 | 1172 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1173 | - __( 'expired', 'event_espresso' ), |
|
1173 | + __('expired', 'event_espresso'), |
|
1174 | 1174 | |
1175 | 1175 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1176 | - __( 'upcoming', 'event_espresso' ), |
|
1176 | + __('upcoming', 'event_espresso'), |
|
1177 | 1177 | |
1178 | 1178 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1179 | - __( 'active', 'event_espresso' ), |
|
1179 | + __('active', 'event_espresso'), |
|
1180 | 1180 | |
1181 | 1181 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1182 | 1182 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1183 | - __( 'trashed', 'event_espresso' ), |
|
1183 | + __('trashed', 'event_espresso'), |
|
1184 | 1184 | |
1185 | 1185 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1186 | - __( 'cancelled', 'event_espresso' ), |
|
1186 | + __('cancelled', 'event_espresso'), |
|
1187 | 1187 | |
1188 | 1188 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1189 | - __( 'postponed', 'event_espresso' ), |
|
1189 | + __('postponed', 'event_espresso'), |
|
1190 | 1190 | |
1191 | 1191 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1192 | - __( 'inactive', 'event_espresso' ), |
|
1192 | + __('inactive', 'event_espresso'), |
|
1193 | 1193 | |
1194 | 1194 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1195 | - __( 'pending', 'event_espresso' ), |
|
1195 | + __('pending', 'event_espresso'), |
|
1196 | 1196 | |
1197 | 1197 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1198 | - __( 'on sale', 'event_espresso' ), |
|
1198 | + __('on sale', 'event_espresso'), |
|
1199 | 1199 | |
1200 | 1200 | // Reference: packages/predicates/src/registration/statusOptions.ts:10 |
1201 | - __( 'Cancelled', 'event_espresso' ), |
|
1201 | + __('Cancelled', 'event_espresso'), |
|
1202 | 1202 | |
1203 | 1203 | // Reference: packages/predicates/src/registration/statusOptions.ts:14 |
1204 | - __( 'Declined', 'event_espresso' ), |
|
1204 | + __('Declined', 'event_espresso'), |
|
1205 | 1205 | |
1206 | 1206 | // Reference: packages/predicates/src/registration/statusOptions.ts:18 |
1207 | - __( 'Incomplete', 'event_espresso' ), |
|
1207 | + __('Incomplete', 'event_espresso'), |
|
1208 | 1208 | |
1209 | 1209 | // Reference: packages/predicates/src/registration/statusOptions.ts:22 |
1210 | - __( 'Not Approved', 'event_espresso' ), |
|
1210 | + __('Not Approved', 'event_espresso'), |
|
1211 | 1211 | |
1212 | 1212 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1213 | - __( 'Pending Payment', 'event_espresso' ), |
|
1213 | + __('Pending Payment', 'event_espresso'), |
|
1214 | 1214 | |
1215 | 1215 | // Reference: packages/predicates/src/registration/statusOptions.ts:30 |
1216 | - __( 'Wait List', 'event_espresso' ), |
|
1216 | + __('Wait List', 'event_espresso'), |
|
1217 | 1217 | |
1218 | 1218 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1219 | - __( 'Approved', 'event_espresso' ), |
|
1219 | + __('Approved', 'event_espresso'), |
|
1220 | 1220 | |
1221 | 1221 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:15 |
1222 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1222 | + __('add new price modifier after this row', 'event_espresso'), |
|
1223 | 1223 | |
1224 | 1224 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:13 |
1225 | - __( 'Delete all prices', 'event_espresso' ), |
|
1225 | + __('Delete all prices', 'event_espresso'), |
|
1226 | 1226 | |
1227 | 1227 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:26 |
1228 | - __( 'Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso' ), |
|
1228 | + __('Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso'), |
|
1229 | 1229 | |
1230 | 1230 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:30 |
1231 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1231 | + __('Delete all prices?', 'event_espresso'), |
|
1232 | 1232 | |
1233 | 1233 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1234 | - __( 'delete price modifier', 'event_espresso' ), |
|
1234 | + __('delete price modifier', 'event_espresso'), |
|
1235 | 1235 | |
1236 | 1236 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:15 |
1237 | - __( 'Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso' ), |
|
1237 | + __('Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso'), |
|
1238 | 1238 | |
1239 | 1239 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:18 |
1240 | - __( 'Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso' ), |
|
1240 | + __('Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso'), |
|
1241 | 1241 | |
1242 | 1242 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:29 |
1243 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1243 | + __('ticket price calculator', 'event_espresso'), |
|
1244 | 1244 | |
1245 | 1245 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:10 |
1246 | - __( 'Add default taxes', 'event_espresso' ), |
|
1246 | + __('Add default taxes', 'event_espresso'), |
|
1247 | 1247 | |
1248 | 1248 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:11 |
1249 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1249 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1250 | 1250 | |
1251 | 1251 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:15 |
1252 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1252 | + __('Remove all taxes?', 'event_espresso'), |
|
1253 | 1253 | |
1254 | 1254 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:8 |
1255 | - __( 'Remove taxes', 'event_espresso' ), |
|
1255 | + __('Remove taxes', 'event_espresso'), |
|
1256 | 1256 | |
1257 | 1257 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:28 |
1258 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1258 | + __('Modify default prices.', 'event_espresso'), |
|
1259 | 1259 | |
1260 | 1260 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:28 |
1261 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1261 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1262 | 1262 | |
1263 | 1263 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:10 |
1264 | - __( 'Add default prices', 'event_espresso' ), |
|
1264 | + __('Add default prices', 'event_espresso'), |
|
1265 | 1265 | |
1266 | 1266 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:14 |
1267 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1267 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1268 | 1268 | |
1269 | 1269 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1270 | 1270 | /* translators: %s default prices */ |
1271 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1271 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1272 | 1272 | |
1273 | 1273 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:23 |
1274 | - __( 'default prices', 'event_espresso' ), |
|
1274 | + __('default prices', 'event_espresso'), |
|
1275 | 1275 | |
1276 | 1276 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:30 |
1277 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1277 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1278 | 1278 | |
1279 | 1279 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:33 |
1280 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1280 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1281 | 1281 | |
1282 | 1282 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:31 |
1283 | 1283 | /* translators: %s ticket name */ |
1284 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1284 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1285 | 1285 | |
1286 | 1286 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
1287 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
1287 | + __('Ticket Price Calculator', 'event_espresso'), |
|
1288 | 1288 | |
1289 | 1289 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:41 |
1290 | - __( 'Total', 'event_espresso' ), |
|
1290 | + __('Total', 'event_espresso'), |
|
1291 | 1291 | |
1292 | 1292 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:50 |
1293 | - __( 'ticket total', 'event_espresso' ), |
|
1293 | + __('ticket total', 'event_espresso'), |
|
1294 | 1294 | |
1295 | 1295 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1296 | - __( 'Price Type', 'event_espresso' ), |
|
1296 | + __('Price Type', 'event_espresso'), |
|
1297 | 1297 | |
1298 | 1298 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1299 | - __( 'Label', 'event_espresso' ), |
|
1299 | + __('Label', 'event_espresso'), |
|
1300 | 1300 | |
1301 | 1301 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
1302 | - __( 'Amount', 'event_espresso' ), |
|
1302 | + __('Amount', 'event_espresso'), |
|
1303 | 1303 | |
1304 | 1304 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:31 |
1305 | - __( 'amount', 'event_espresso' ), |
|
1305 | + __('amount', 'event_espresso'), |
|
1306 | 1306 | |
1307 | 1307 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:42 |
1308 | - __( 'amount…', 'event_espresso' ), |
|
1308 | + __('amount…', 'event_espresso'), |
|
1309 | 1309 | |
1310 | 1310 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:10 |
1311 | - __( 'price description', 'event_espresso' ), |
|
1311 | + __('price description', 'event_espresso'), |
|
1312 | 1312 | |
1313 | 1313 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:15 |
1314 | - __( 'description…', 'event_espresso' ), |
|
1314 | + __('description…', 'event_espresso'), |
|
1315 | 1315 | |
1316 | 1316 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:9 |
1317 | - __( 'price id', 'event_espresso' ), |
|
1317 | + __('price id', 'event_espresso'), |
|
1318 | 1318 | |
1319 | 1319 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:10 |
1320 | - __( 'price name', 'event_espresso' ), |
|
1320 | + __('price name', 'event_espresso'), |
|
1321 | 1321 | |
1322 | 1322 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:15 |
1323 | - __( 'label…', 'event_espresso' ), |
|
1323 | + __('label…', 'event_espresso'), |
|
1324 | 1324 | |
1325 | 1325 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:16 |
1326 | - __( 'price type', 'event_espresso' ), |
|
1326 | + __('price type', 'event_espresso'), |
|
1327 | 1327 | |
1328 | 1328 | // Reference: packages/tpc/src/utils/constants.ts:13 |
1329 | - __( 'Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then archive the old tickets.', 'event_espresso' ) |
|
1329 | + __('Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then archive the old tickets.', 'event_espresso') |
|
1330 | 1330 | ); |
1331 | 1331 | /* THIS IS THE END OF THE GENERATED FILE */ |
@@ -37,122 +37,122 @@ |
||
37 | 37 | * @since 4.0 |
38 | 38 | */ |
39 | 39 | if (function_exists('espresso_version')) { |
40 | - if (! function_exists('espresso_duplicate_plugin_error')) { |
|
41 | - /** |
|
42 | - * espresso_duplicate_plugin_error |
|
43 | - * displays if more than one version of EE is activated at the same time |
|
44 | - */ |
|
45 | - function espresso_duplicate_plugin_error() |
|
46 | - { |
|
47 | - ?> |
|
40 | + if (! function_exists('espresso_duplicate_plugin_error')) { |
|
41 | + /** |
|
42 | + * espresso_duplicate_plugin_error |
|
43 | + * displays if more than one version of EE is activated at the same time |
|
44 | + */ |
|
45 | + function espresso_duplicate_plugin_error() |
|
46 | + { |
|
47 | + ?> |
|
48 | 48 | <div class="error"> |
49 | 49 | <p> |
50 | 50 | <?php |
51 | - echo esc_html__( |
|
52 | - 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
53 | - 'event_espresso' |
|
54 | - ); ?> |
|
51 | + echo esc_html__( |
|
52 | + 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
53 | + 'event_espresso' |
|
54 | + ); ?> |
|
55 | 55 | </p> |
56 | 56 | </div> |
57 | 57 | <?php |
58 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
59 | - } |
|
60 | - } |
|
61 | - add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
58 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
59 | + } |
|
60 | + } |
|
61 | + add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
62 | 62 | } else { |
63 | - define('EE_MIN_PHP_VER_REQUIRED', '7.1.0'); |
|
64 | - if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
65 | - /** |
|
66 | - * espresso_minimum_php_version_error |
|
67 | - * |
|
68 | - * @return void |
|
69 | - */ |
|
70 | - function espresso_minimum_php_version_error() |
|
71 | - { |
|
72 | - ?> |
|
63 | + define('EE_MIN_PHP_VER_REQUIRED', '7.1.0'); |
|
64 | + if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
65 | + /** |
|
66 | + * espresso_minimum_php_version_error |
|
67 | + * |
|
68 | + * @return void |
|
69 | + */ |
|
70 | + function espresso_minimum_php_version_error() |
|
71 | + { |
|
72 | + ?> |
|
73 | 73 | <div class="error"> |
74 | 74 | <p> |
75 | 75 | <?php |
76 | - printf( |
|
77 | - esc_html__( |
|
78 | - 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
79 | - 'event_espresso' |
|
80 | - ), |
|
81 | - EE_MIN_PHP_VER_REQUIRED, |
|
82 | - PHP_VERSION, |
|
83 | - '<br/>', |
|
84 | - '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
85 | - ); |
|
86 | - ?> |
|
76 | + printf( |
|
77 | + esc_html__( |
|
78 | + 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
79 | + 'event_espresso' |
|
80 | + ), |
|
81 | + EE_MIN_PHP_VER_REQUIRED, |
|
82 | + PHP_VERSION, |
|
83 | + '<br/>', |
|
84 | + '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
85 | + ); |
|
86 | + ?> |
|
87 | 87 | </p> |
88 | 88 | </div> |
89 | 89 | <?php |
90 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
91 | - } |
|
90 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
91 | + } |
|
92 | 92 | |
93 | - add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
94 | - } else { |
|
95 | - define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
96 | - /** |
|
97 | - * espresso_version |
|
98 | - * Returns the plugin version |
|
99 | - * |
|
100 | - * @return string |
|
101 | - */ |
|
102 | - function espresso_version() |
|
103 | - { |
|
104 | - return apply_filters('FHEE__espresso__espresso_version', '4.11.0.rc.001'); |
|
105 | - } |
|
93 | + add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
94 | + } else { |
|
95 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
96 | + /** |
|
97 | + * espresso_version |
|
98 | + * Returns the plugin version |
|
99 | + * |
|
100 | + * @return string |
|
101 | + */ |
|
102 | + function espresso_version() |
|
103 | + { |
|
104 | + return apply_filters('FHEE__espresso__espresso_version', '4.11.0.rc.001'); |
|
105 | + } |
|
106 | 106 | |
107 | - /** |
|
108 | - * espresso_plugin_activation |
|
109 | - * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
110 | - */ |
|
111 | - function espresso_plugin_activation() |
|
112 | - { |
|
113 | - update_option('ee_espresso_activation', true); |
|
107 | + /** |
|
108 | + * espresso_plugin_activation |
|
109 | + * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
110 | + */ |
|
111 | + function espresso_plugin_activation() |
|
112 | + { |
|
113 | + update_option('ee_espresso_activation', true); |
|
114 | 114 | |
115 | - // Run WP GraphQL activation callback |
|
116 | - if (! class_exists('WPGraphQL')) { |
|
117 | - require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
118 | - } |
|
119 | - graphql_init()->activate(); |
|
120 | - } |
|
115 | + // Run WP GraphQL activation callback |
|
116 | + if (! class_exists('WPGraphQL')) { |
|
117 | + require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
118 | + } |
|
119 | + graphql_init()->activate(); |
|
120 | + } |
|
121 | 121 | |
122 | - register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
122 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
123 | 123 | |
124 | - /** |
|
125 | - * espresso_plugin_deactivation |
|
126 | - */ |
|
127 | - function espresso_plugin_deactivation() |
|
128 | - { |
|
129 | - // Run WP GraphQL deactivation callback |
|
130 | - if (! class_exists('WPGraphQL')) { |
|
131 | - require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
132 | - } |
|
133 | - graphql_init()->deactivate(); |
|
134 | - } |
|
135 | - register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
124 | + /** |
|
125 | + * espresso_plugin_deactivation |
|
126 | + */ |
|
127 | + function espresso_plugin_deactivation() |
|
128 | + { |
|
129 | + // Run WP GraphQL deactivation callback |
|
130 | + if (! class_exists('WPGraphQL')) { |
|
131 | + require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
132 | + } |
|
133 | + graphql_init()->deactivate(); |
|
134 | + } |
|
135 | + register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
136 | 136 | |
137 | - require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
138 | - bootstrap_espresso(); |
|
139 | - } |
|
137 | + require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
138 | + bootstrap_espresso(); |
|
139 | + } |
|
140 | 140 | } |
141 | 141 | if (! function_exists('espresso_deactivate_plugin')) { |
142 | - /** |
|
143 | - * deactivate_plugin |
|
144 | - * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
145 | - * |
|
146 | - * @access public |
|
147 | - * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
148 | - * @return void |
|
149 | - */ |
|
150 | - function espresso_deactivate_plugin($plugin_basename = '') |
|
151 | - { |
|
152 | - if (! function_exists('deactivate_plugins')) { |
|
153 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
154 | - } |
|
155 | - unset($_GET['activate'], $_REQUEST['activate']); |
|
156 | - deactivate_plugins($plugin_basename); |
|
157 | - } |
|
142 | + /** |
|
143 | + * deactivate_plugin |
|
144 | + * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
145 | + * |
|
146 | + * @access public |
|
147 | + * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
148 | + * @return void |
|
149 | + */ |
|
150 | + function espresso_deactivate_plugin($plugin_basename = '') |
|
151 | + { |
|
152 | + if (! function_exists('deactivate_plugins')) { |
|
153 | + require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
154 | + } |
|
155 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
156 | + deactivate_plugins($plugin_basename); |
|
157 | + } |
|
158 | 158 | } |