1 | <?php |
||
22 | class EED_Recaptcha_Invisible extends EED_Module |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * @var EE_Registration_Config $config |
||
27 | */ |
||
28 | private static $config; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * @return EED_Module|EED_Recaptcha |
||
33 | */ |
||
34 | public static function instance() |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @return void |
||
42 | * @throws InvalidInterfaceException |
||
43 | * @throws InvalidDataTypeException |
||
44 | * @throws InvalidArgumentException |
||
45 | */ |
||
46 | public static function set_hooks() |
||
72 | |||
73 | |||
74 | /** |
||
75 | * @return void |
||
76 | * @throws InvalidInterfaceException |
||
77 | * @throws InvalidDataTypeException |
||
78 | * @throws InvalidArgumentException |
||
79 | */ |
||
80 | public static function set_hooks_admin() |
||
92 | |||
93 | |||
94 | /** |
||
95 | * @return void |
||
96 | * @throws InvalidInterfaceException |
||
97 | * @throws InvalidDataTypeException |
||
98 | * @throws InvalidArgumentException |
||
99 | */ |
||
100 | public static function setProperties() |
||
104 | |||
105 | |||
106 | /** |
||
107 | * @return boolean |
||
108 | */ |
||
109 | public static function useInvisibleRecaptcha() |
||
114 | |||
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | public static function assetsUrl() |
||
123 | |||
124 | |||
125 | /** |
||
126 | * @param \WP $WP |
||
127 | */ |
||
128 | public function run($WP) |
||
131 | |||
132 | |||
133 | /** |
||
134 | * @return boolean |
||
135 | * @throws InvalidInterfaceException |
||
136 | * @throws InvalidDataTypeException |
||
137 | * @throws InvalidArgumentException |
||
138 | */ |
||
139 | public static function recaptchaPassed() |
||
153 | |||
154 | |||
155 | /** |
||
156 | * @param EE_Request $request |
||
157 | * @return bool |
||
158 | * @throws InvalidArgumentException |
||
159 | * @throws InvalidDataTypeException |
||
160 | * @throws InvalidInterfaceException |
||
161 | * @throws RuntimeException |
||
162 | */ |
||
163 | public static function verifyToken(EE_Request $request) |
||
172 | |||
173 | |||
174 | /** |
||
175 | * @param EE_Form_Section_Proper $reg_form |
||
176 | * @return void |
||
177 | * @throws EE_Error |
||
178 | * @throws InvalidArgumentException |
||
179 | * @throws InvalidDataTypeException |
||
180 | * @throws InvalidInterfaceException |
||
181 | */ |
||
182 | public static function spcoRegStepForm(EE_Form_Section_Proper $reg_form) |
||
194 | |||
195 | |||
196 | /** |
||
197 | * @param EE_Form_Section_Proper $reg_form |
||
198 | * @return bool |
||
199 | * @throws InvalidDataTypeException |
||
200 | * @throws InvalidInterfaceException |
||
201 | * @throws EE_Error |
||
202 | * @throws InvalidArgumentException |
||
203 | */ |
||
204 | public static function processSpcoRegStepForm(EE_Form_Section_Proper $reg_form) |
||
208 | |||
209 | |||
210 | /** |
||
211 | * @param array|null $req_data |
||
212 | * @param EE_Form_Section_Proper $reg_form |
||
213 | * @return array |
||
214 | * @throws EE_Error |
||
215 | * @throws InvalidArgumentException |
||
216 | * @throws InvalidDataTypeException |
||
217 | * @throws InvalidInterfaceException |
||
218 | * @throws RuntimeException |
||
219 | */ |
||
220 | public static function receiveSpcoRegStepForm($req_data = array(), EE_Form_Section_Proper $reg_form) |
||
239 | |||
240 | |||
241 | /** |
||
242 | * @param string $html |
||
243 | * @param EE_Event $event |
||
244 | * @return string |
||
245 | * @throws InvalidArgumentException |
||
246 | * @throws InvalidDataTypeException |
||
247 | * @throws InvalidInterfaceException |
||
248 | * @throws EE_Error |
||
249 | */ |
||
250 | public static function ticketSelectorForm($html = '', EE_Event $event) |
||
261 | |||
262 | |||
263 | /** |
||
264 | * @return void |
||
265 | * @throws InvalidArgumentException |
||
266 | * @throws InvalidInterfaceException |
||
267 | * @throws InvalidDataTypeException |
||
268 | * @throws RuntimeException |
||
269 | */ |
||
270 | public static function processTicketSelectorForm() |
||
286 | |||
287 | |||
288 | /** |
||
289 | * @throws InvalidArgumentException |
||
290 | * @throws InvalidDataTypeException |
||
291 | * @throws InvalidInterfaceException |
||
292 | */ |
||
293 | public static function setSessionData() |
||
299 | |||
300 | |||
301 | /** |
||
302 | * @throws EE_Error |
||
303 | * @throws InvalidArgumentException |
||
304 | * @throws InvalidDataTypeException |
||
305 | * @throws InvalidInterfaceException |
||
306 | */ |
||
307 | public static function adminSettings() |
||
311 | |||
312 | |||
313 | /** |
||
314 | * @param EE_Registration_Config $EE_Registration_Config |
||
315 | * @return EE_Registration_Config |
||
316 | * @throws EE_Error |
||
317 | * @throws InvalidArgumentException |
||
318 | * @throws InvalidDataTypeException |
||
319 | * @throws InvalidInterfaceException |
||
320 | * @throws ReflectionException |
||
321 | */ |
||
322 | public static function updateAdminSettings(EE_Registration_Config $EE_Registration_Config) |
||
326 | } |
||
327 |