PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.64
Timetics – Appointment Booking Calendar & Scheduling v1.0.64
1.0.64 1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 All 65 releases
← All changes | core/bookings/booking-entry.php +44 -10 1.0.11 → 1.0.64 View file →
@@ -6,8 +6,10 @@
6 6 */
7 7
8 8 namespace Timetics\Core\Bookings;
9 9
10 +defined( 'ABSPATH' ) || exit;
11 +
10 12 /**
11 13 * Class Booking Entry
12 14 */
13 15 class Booking_Entry {
@@ -45,17 +47,21 @@
45 47 *
46 48 * @var array
47 49 */
48 50 private $data = [
49 - 'meeting_id' => '',
50 - 'staff_id' => '',
51 - 'customer_id' => '',
52 - 'booking_id' => '',
53 - 'booked' => '',
54 - 'date' => '',
55 - 'start' => '',
56 - 'end' => '',
57 - 'seats' => '',
51 + 'meeting_id' => '',
52 + 'event_id' => '',
53 + 'staff_id' => '',
54 + 'speaker_id' => '',
55 + 'customer_id' => '',
56 + 'booking_id' => '',
57 + 'booked' => '',
58 + 'date' => '',
59 + 'start' => '',
60 + 'end' => '',
61 + 'seats' => '',
62 + 'google_event' => '',
63 + 'zoom' => '',
58 64 ];
59 65
60 66 /**
61 67 * Constructor for Booking Entry
@@ -89,8 +95,17 @@
89 95 * @return integer
90 96 */
91 97 public function get_meeting_id() {
92 98 return $this->get_prop( 'meeting_id' );
99 + }
100 +
101 + /**
102 + * Get event id
103 + *
104 + * @return integer
105 + */
106 + public function get_event_id() {
107 + return $this->get_prop( 'event_id' );
93 108 }
94 109
95 110 /**
96 111 * Get staff id
@@ -116,9 +131,9 @@
116 131 * @return integer
117 132 */
118 133 public function get_booking_id() {
119 134 return $this->get_prop( 'booking_id' );
120 - }
135 + }
121 136
122 137 /**
123 138 * Get booked
124 139 *
@@ -155,8 +170,26 @@
155 170 return $this->get_prop( 'date' );
156 171 }
157 172
158 173 /**
174 + * Get google calender event with google meet link
175 + *
176 + * @return array
177 + */
178 + public function get_google_event() {
179 + return $this->get_prop( 'google_event' );
180 + }
181 +
182 + /**
183 + * Get zoom link
184 + *
185 + * @return array
186 + */
187 + public function get_zoom() {
188 + return $this->get_prop( 'zoom' );
189 + }
190 +
191 + /**
159 192 * Get seats
160 193 *
161 194 * @return array
162 195 */
@@ -174,8 +207,9 @@
174 207 'id' => $this->get_id(),
175 208 'meeting_id' => $this->get_meeting_id(),
176 209 'staff_id' => $this->get_staff_id(),
177 210 'booking_id' => $this->get_booking_id(),
211 + 'event_id' => $this->get_event_id(),
178 212 'customer_id' => $this->get_customer_id(),
179 213 'booked' => $this->get_booked(),
180 214 'date' => $this->get_date(),
181 215 'start' => $this->get_start(),