PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.0
Booktics – Appointment Booking Calendar for Service Businesses v1.0.0
1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 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.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 All 27 releases
booktics / base / models / service-model.php

service-model.php in Booktics – Appointment Booking Calendar for Service Businesses 1.0.0, at base/models/service-model.php

54 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Service Model
4 *
5 * @package Booktics/Models
6 */
7
8 namespace Booktics\Models;
9
10 use Booktics\Abstracts\Post_Model;
11
12 /**
13 * Service_Model class
14 */
15 class Service_Model extends Post_Model {
16 /**
17 * Store service data
18 *
19 * @var array<string, mixed>
20 */
21 protected $fillable = [
22 'id' => '',
23 'title' => '',
24 'description' => '',
25 'content' => '',
26 'link' => '',
27 'image' => '',
28 'image_id' => '',
29 'categories' => [],
30 'status' => '',
31 'enable_custom_holiday' => false,
32 'enable_custom_schedule' => false,
33 'enable_additional_service_duration' => false,
34 'interval_time' => '',
35 'before_buffer_time' => '',
36 'after_buffer_time' => '',
37 'team_member' => [],
38 'show_end_time' => '',
39 'additional_durations' => [],
40 'schedule' => [],
41 'custom' => [],
42 'holiday' => [],
43 ];
44
45 /**
46 * Get post type
47 *
48 * @return string Post type name
49 */
50 public function get_post_type() {
51 return 'booktics-service';
52 }
53 }
54