-
Notifications
You must be signed in to change notification settings - Fork 34
/
stubs.php
478 lines (468 loc) · 10.2 KB
/
stubs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
<?php
namespace {
define( 'MINUTE_IN_SECONDS', 60 );
define( 'HOUR_IN_SECONDS', 60 * MINUTE_IN_SECONDS );
define( 'DAY_IN_SECONDS', 24 * HOUR_IN_SECONDS );
define( 'WEEK_IN_SECONDS', 7 * DAY_IN_SECONDS );
define( 'MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS );
define( 'YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS );
define( 'EMPTY_TRASH_DAYS', 30 );
define( 'ABSPATH', realpath( __FILE__ . '/../../../../' ) );
define( 'WP_PLUGIN_DIR', realpath( __FILE__ . '/../' ) );
define( 'WPINC', 'wp-includes' );
define( 'OBJECT', 'OBJECT' );
define( 'OBJECT_K', 'OBJECT_K' );
define( 'ARRAY_A', 'ARRAY_A' );
define( 'EP_PAGES', 4096 );
define( 'EP_PERMALINK', 1 );
define( 'COOKIEHASH', '' );
define( 'COOKIE_DOMAIN', false );
define( 'WP_IMPORTING', false );
define( 'ICL_PLUGIN_INACTIVE', false );
class FrmProEntryShortcodeFormatter extends FrmEntryShortcodeFormatter {
}
class FrmProSettings extends FrmSettings {
}
class FrmProApplicationsHelper {
public static function get_custom_applications_capability() {}
/**
* @return string
*/
public static function get_required_templates_capability() {
}
}
class FrmProFileImport {
public static function import_attachment( $val, $field ) {
}
}
class FrmProAppHelper {
public static function get_settings() {
}
public static function convert_date( $date_str, $from_format, $to_format ) {
}
/**
* @return bool
*/
public static function views_is_installed() {
}
/**
* @return string
*/
public static function plugin_path() {
}
/**
* @return bool
*/
public static function use_chosen_js() {
}
/**
* @param array|string $selected
* @param string $current
* @param bool $echo
* @return string
*/
public static function selected( $selected, $current, $echo = true ) {
}
/**
* @return string
*/
public static function plugin_url() {
}
/**
* @return FrmProEddController
*/
public static function get_updater() {
}
}
class FrmProEntryMetaHelper {
public static function get_post_or_meta_value( $entry, $field, $atts = array() ) {
}
/**
* @param int|object|string $field_id
* @param array|string $value
* @param false|int|string $entry_id
* @return array|object|string|null
*/
public static function &value_exists( $field_id, $value, $entry_id = false ) {
}
public static function get_post_value( $post_id, $post_field, $custom_field, $atts ) {
}
}
class FrmProFormActionsController {
/**
* @param WP_Post $action
* @param stdClass $entry
* @return bool
*/
public static function action_conditions_met( $action, $entry ) {
}
}
class FrmViewsLayout {
/**
* @param int $view_id
* @param string $listing_layout
* @param string $detail_layout
*/
public static function maybe_create_layouts_for_view( $view_id, $listing_layout, $detail_layout ) {
}
/**
* @param int $view_id
* @param false|string $type
* @return array|false|object
*/
public static function get_layouts_for_view( $view_id, $type = false ) {
}
}
class FrmProDisplaysHelper {
public static function get_shortcodes( $content, $form_id ) {
}
}
class FrmProAddonsController {
/**
* @param bool $force_type
* @return string
*/
public static function license_type( $force_type = false ) {
}
/**
* @return bool|int
*/
public static function is_license_expiring() {
}
/**
* @param string $plugin
* @param array|string $upgrade_link_args
* @return void
*/
public static function conditional_action_button( $plugin, $upgrade_link_args ) {
}
/**
* @param array $atts
* @return void
*/
public static function show_conditional_action_button( $atts ) {
}
/**
* @return bool
*/
public static function admin_banner() {
}
/**
* @return string
*/
public static function get_readable_license_type() {
}
}
class FrmProDb {
public static $plug_version;
}
class FrmProStylesController extends FrmStylesController {
/**
* @param int $form_id
* @return WP_Post
*/
public static function get_active_style_for_form( $form_id ) {
}
/**
* @param stdClass|WP_Post $active_style
* @return array<WP_Post>
*/
public static function get_styles_for_styler( $active_style ) {
}
/**
* @return array<string>
*/
public static function get_notes_for_styler_preview() {
}
/**
* @return false|string
*/
public static function get_disabled_javascript_features() {
}
}
class FrmProPost {
/**
* @param array $field
* @param array $args
* @return string
*/
public static function get_category_dropdown( $field, $args ) {
}
}
class FrmProEntriesController {
public static function show_entry_shortcode( $atts ) {
}
/**
* @param array $atts
* @return string
*/
public static function entry_delete_link( $atts ) {
}
/**
* @param string $method
* @param stdClass $form
* @param int $entry_id
* @param array $args
*/
public static function confirmation( $method, $form, $form_options, $entry_id, $args = array() ) {
}
/**
* @param object $form
* @return bool
*/
public static function is_form_displayed_after_edit( $form ) {
}
/**
* @param object $entry
* @param array $args
* @return void
*/
public static function show_front_end_form_with_entry( $entry, $args ) {
}
}
class FrmProFormsHelper {
public static function &post_type( $form ) {
}
/**
* @return array
*/
public static function get_default_opts() {
}
}
class FrmProEntry {
/**
* @param array|false $values
* @param string $location
* @return array
*/
public static function mod_other_vals( $values = false, $location = 'front' ) {
}
}
class FrmProEntryFormatter extends FrmEntryFormatter {
}
class FrmProEntriesHelper {
public static function get_search_str( $where_clause, $search_str, $form_id = 0, $fid = '' ) {
}
/**
* @param object $field
* @param object $entry
* @param array|int|string $field_value
* @return void
*/
public static function get_dynamic_list_values( $field, $entry, &$field_value ) {
}
/**
* @param object $entry
* @param object $field
* @param array $atts
*
* @return string
*/
public static function prepare_child_display_value( $entry, $field, $atts ) {
}
}
class FrmProFieldsHelper {
/**
* @param array $args
* @param string $value
* @return void
*/
public static function replace_non_standard_formidable_shortcodes( $args, &$value ) {
}
/**
* @param array|object $field
* @return bool
*/
public static function &is_field_visible_to_user( $field ) {
}
}
class FrmViewsAppHelper {
/**
* @return string
*/
public static function plugin_version() {
}
}
class FrmProCreditCardsController {
/**
* @param array $field
* @param string $field_name
* @param array $atts
* @return void
*/
public static function show_in_form( $field, $field_name, $atts ) {
}
}
class FrmProAppController {
/**
* @return bool
*/
public static function has_combo_js_file() {
}
}
class Akismet {
/**
* @param string $request
* @param string $path
* @param string $ip
* @return array
*/
public static function http_post( $request, $path, $ip = null ) {
}
public static function get_user_roles( $user_id ) {
}
}
class PHPMailer {
public function __construct( $exceptions = null ) {
}
}
class FrmPaymentsController {
public static $db_opt_name = 'frm_pay_db_version';
}
class FrmProDashboardHelper {
/**
* @return bool
*/
public static function should_display_videos() {
}
/**
* @param array $entries_template
* @return void
*/
public static function get_main_widget( $entries_template ) {
}
/**
* @param array $entries_template
* @return void
*/
public static function get_bottom_widget( $entries_template ) {
}
/**
* @param array $template
* @return void
*/
public static function load_license_management( $template ) {
}
}
class FrmProEddController extends FrmAddon {
}
class FrmProFieldSettings {
}
function load_formidable_pro() {
}
/**
* @return WPMailSMTP\Core
*/
function wp_mail_smtp() {
}
/**
* @return bool
*/
function akismet_test_mode() {
}
/** WP Optimize plugin */
class WP_Optimize {
/**
* @return WPO_Page_Cache
*/
public function get_page_cache() {
}
}
class WPO_Page_Cache {
/**
* @return bool
*/
public function purge() {
}
}
class FrmLog {
/**
* @param array<string> $values values.
*
* @return void
*/
public function add( $values ) {
}
}
/**
* @return WP_Optimize
*/
function WP_Optimize() {
}
/**
* Function from W3 Total cache.
*
* @param array|null $extras Extras.
* @return void
*/
function w3tc_flush_all( $extras = null ) {
}
}
namespace Elementor {
abstract class Widget_Base {
public function start_controls_section( $section_id, array $args = array() ) {
}
public function add_control( $id, array $args, $options = array() ) {
}
public function end_controls_section() {
}
public function get_settings_for_display( $setting_key = null ) {
}
}
class Plugin {
/**
* @return Plugin
*/
public static function instance() {
}
}
class Controls_Manager {
const TAB_CONTENT = 'content';
const SELECT2 = 'select2';
const SWITCHER = 'switcher';
}
}
namespace WPMailSMTP {
class Options {
/**
* @return Options
*/
public static function init() {
}
/**
* @param string $group
* @param string $key
* @param bool $strip_slashes
* @return mixed|null
*/
public function get( $group, $key, $strip_slashes = true ) {
}
}
class Core {
/**
* @return Providers\Loader
*/
public function get_providers() {
}
}
}
namespace WPMailSMTP\Providers {
interface MailerInterface {
/**
* @return bool
*/
public function is_mailer_complete();
}
abstract class MailerAbstract implements MailerInterface {
}
class Loader {
/**
* @param string $provider The provider name.
* @param MailCatcherInterface $phpmailer The MailCatcher object.
*
* @return MailerAbstract|null
*/
public function get_mailer( $provider, $phpmailer ) {
}
}
}