PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / inc / Filters / WebhookFilter.php

WebhookFilter.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.7, at inc/Filters/WebhookFilter.php

81 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace LearnPress\Filters;
4
5 defined( 'ABSPATH' ) || exit;
6
7 /**
8 * Filter query for the learnpress_webhooks table.
9 */
10 class WebhookFilter extends FilterBase {
11 const COL_WEBHOOK_ID = 'webhook_id';
12 const COL_USER_ID = 'user_id';
13 const COL_STATUS = 'status';
14 const COL_NAME = 'name';
15 const COL_DELIVERY_URL = 'delivery_url';
16 const COL_SECRET = 'secret';
17 const COL_EVENTS = 'events';
18 const COL_CREATED_AT = 'created_at';
19 const COL_UPDATED_AT = 'updated_at';
20
21 /**
22 * @var string[]
23 */
24 public array $all_fields = array(
25 self::COL_WEBHOOK_ID,
26 self::COL_USER_ID,
27 self::COL_STATUS,
28 self::COL_NAME,
29 self::COL_DELIVERY_URL,
30 self::COL_SECRET,
31 self::COL_EVENTS,
32 self::COL_CREATED_AT,
33 self::COL_UPDATED_AT,
34 );
35
36 /**
37 * @var int
38 */
39 public $webhook_id;
40
41 /**
42 * @var int[]
43 */
44 public $webhook_ids = array();
45
46 /**
47 * @var int
48 */
49 public $user_id;
50
51 /**
52 * @var string
53 */
54 public $status;
55
56 /**
57 * @var string[]
58 */
59 public $statuses = array();
60
61 /**
62 * @var string
63 */
64 public $name;
65
66 /**
67 * @var string
68 */
69 public $delivery_url;
70
71 /**
72 * @var string
73 */
74 public $event;
75
76 /**
77 * @var string
78 */
79 public $field_count = self::COL_WEBHOOK_ID;
80 }
81