PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.2.0
Fluent Support – Helpdesk & Customer Support Ticket System v2.2.0
2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 68 releases
fluent-support / app / Services / Notifications / NotificationCategory.php

NotificationCategory.php in Fluent Support – Helpdesk & Customer Support Ticket System 2.2.0, at app/Services/Notifications/NotificationCategory.php

47 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentSupport\App\Services\Notifications;
4
5 class NotificationCategory
6 {
7 const MENTIONS = 'mentions';
8 const TICKET_ACTIVITY = 'ticket_activity';
9 const AUTOMATION_TRIGGERS = 'automation_triggers';
10
11 public static function all()
12 {
13 return [
14 static::MENTIONS,
15 static::TICKET_ACTIVITY,
16 static::AUTOMATION_TRIGGERS,
17 ];
18 }
19
20 public static function options()
21 {
22 return [
23 [
24 'key' => 'all',
25 'label' => __('All', 'fluent-support')
26 ],
27 [
28 'key' => static::MENTIONS,
29 'label' => __('Mentions', 'fluent-support')
30 ],
31 [
32 'key' => static::TICKET_ACTIVITY,
33 'label' => __('Ticket Activity', 'fluent-support')
34 ],
35 [
36 'key' => static::AUTOMATION_TRIGGERS,
37 'label' => __('Automation Triggers', 'fluent-support')
38 ]
39 ];
40 }
41
42 public static function isValid($category)
43 {
44 return in_array($category, static::all(), true);
45 }
46 }
47