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 | * @var array $localized_vars |
||
32 | */ |
||
33 | private static $localized_vars; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @return EED_Module|EED_Recaptcha |
||
38 | */ |
||
39 | public static function instance() |
||
43 | |||
44 | |||
45 | /** |
||
46 | * @return void |
||
47 | * @throws InvalidInterfaceException |
||
48 | * @throws InvalidDataTypeException |
||
49 | * @throws InvalidArgumentException |
||
50 | */ |
||
51 | public static function set_hooks() |
||
78 | |||
79 | |||
80 | /** |
||
81 | * @return void |
||
82 | * @throws InvalidInterfaceException |
||
83 | * @throws InvalidDataTypeException |
||
84 | * @throws InvalidArgumentException |
||
85 | */ |
||
86 | public static function set_hooks_admin() |
||
98 | |||
99 | |||
100 | /** |
||
101 | * @return void |
||
102 | * @throws InvalidInterfaceException |
||
103 | * @throws InvalidDataTypeException |
||
104 | * @throws InvalidArgumentException |
||
105 | */ |
||
106 | public static function setProperties() |
||
117 | |||
118 | |||
119 | /** |
||
120 | * @return boolean |
||
121 | */ |
||
122 | public static function useInvisibleRecaptcha() |
||
127 | |||
128 | |||
129 | |||
130 | /** |
||
131 | * @return void |
||
132 | */ |
||
133 | public static function setLocalizedVars() |
||
144 | |||
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | public static function assetsUrl() |
||
153 | |||
154 | |||
155 | /** |
||
156 | * @param \WP $WP |
||
157 | */ |
||
158 | public function run($WP) |
||
161 | |||
162 | |||
163 | /** |
||
164 | * @return boolean |
||
165 | * @throws InvalidInterfaceException |
||
166 | * @throws InvalidDataTypeException |
||
167 | * @throws InvalidArgumentException |
||
168 | */ |
||
169 | public static function recaptchaPassed() |
||
189 | |||
190 | |||
191 | /** |
||
192 | * @param EE_Request $request |
||
193 | * @return bool |
||
194 | * @throws InvalidArgumentException |
||
195 | * @throws InvalidDataTypeException |
||
196 | * @throws InvalidInterfaceException |
||
197 | * @throws RuntimeException |
||
198 | */ |
||
199 | public static function verifyToken(EE_Request $request) |
||
208 | |||
209 | |||
210 | /** |
||
211 | * @param EE_Form_Section_Proper $reg_form |
||
212 | * @return void |
||
213 | * @throws EE_Error |
||
214 | * @throws InvalidArgumentException |
||
215 | * @throws InvalidDataTypeException |
||
216 | * @throws InvalidInterfaceException |
||
217 | */ |
||
218 | public static function spcoRegStepForm(EE_Form_Section_Proper $reg_form) |
||
230 | |||
231 | |||
232 | /** |
||
233 | * @param EE_Form_Section_Proper $reg_form |
||
234 | * @return bool |
||
235 | * @throws InvalidDataTypeException |
||
236 | * @throws InvalidInterfaceException |
||
237 | * @throws EE_Error |
||
238 | * @throws InvalidArgumentException |
||
239 | */ |
||
240 | public static function processSpcoRegStepForm(EE_Form_Section_Proper $reg_form) |
||
245 | |||
246 | |||
247 | /** |
||
248 | * @param array|null $req_data |
||
249 | * @param EE_Form_Section_Proper $reg_form |
||
250 | * @return array |
||
251 | * @throws EE_Error |
||
252 | * @throws InvalidArgumentException |
||
253 | * @throws InvalidDataTypeException |
||
254 | * @throws InvalidInterfaceException |
||
255 | * @throws RuntimeException |
||
256 | */ |
||
257 | public static function receiveSpcoRegStepForm($req_data = array(), EE_Form_Section_Proper $reg_form) |
||
276 | |||
277 | |||
278 | /** |
||
279 | * @param string $html |
||
280 | * @param EE_Event $event |
||
281 | * @return string |
||
282 | * @throws InvalidArgumentException |
||
283 | * @throws InvalidDataTypeException |
||
284 | * @throws InvalidInterfaceException |
||
285 | * @throws EE_Error |
||
286 | */ |
||
287 | public static function ticketSelectorForm($html = '', EE_Event $event) |
||
298 | |||
299 | |||
300 | /** |
||
301 | * @return void |
||
302 | * @throws InvalidArgumentException |
||
303 | * @throws InvalidInterfaceException |
||
304 | * @throws InvalidDataTypeException |
||
305 | * @throws RuntimeException |
||
306 | */ |
||
307 | public static function processTicketSelectorForm() |
||
323 | |||
324 | |||
325 | /** |
||
326 | * @throws InvalidArgumentException |
||
327 | * @throws InvalidDataTypeException |
||
328 | * @throws InvalidInterfaceException |
||
329 | */ |
||
330 | public static function setSessionData() |
||
336 | |||
337 | |||
338 | /** |
||
339 | * @throws EE_Error |
||
340 | * @throws InvalidArgumentException |
||
341 | * @throws InvalidDataTypeException |
||
342 | * @throws InvalidInterfaceException |
||
343 | */ |
||
344 | public static function adminSettings() |
||
348 | |||
349 | |||
350 | /** |
||
351 | * @param EE_Registration_Config $EE_Registration_Config |
||
352 | * @return EE_Registration_Config |
||
353 | * @throws EE_Error |
||
354 | * @throws InvalidArgumentException |
||
355 | * @throws InvalidDataTypeException |
||
356 | * @throws InvalidInterfaceException |
||
357 | * @throws ReflectionException |
||
358 | */ |
||
359 | public static function updateAdminSettings(EE_Registration_Config $EE_Registration_Config) |
||
363 | } |
||
364 |