Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / transactions / constants / PhabricatorTransactions.php
blob3e31bdb1dbee2b4a981a65ef263a7927437801fc
1 <?php
3 final class PhabricatorTransactions extends Phobject {
5 const TYPE_COMMENT = 'core:comment';
6 const TYPE_SUBSCRIBERS = 'core:subscribers';
7 const TYPE_VIEW_POLICY = 'core:view-policy';
8 const TYPE_EDIT_POLICY = 'core:edit-policy';
9 const TYPE_JOIN_POLICY = 'core:join-policy';
10 const TYPE_INTERACT_POLICY = 'core:interact-policy';
11 const TYPE_EDGE = 'core:edge';
12 const TYPE_CUSTOMFIELD = 'core:customfield';
13 const TYPE_TOKEN = 'token:give';
14 const TYPE_INLINESTATE = 'core:inlinestate';
15 const TYPE_SPACE = 'core:space';
16 const TYPE_CREATE = 'core:create';
17 const TYPE_COLUMNS = 'core:columns';
18 const TYPE_SUBTYPE = 'core:subtype';
19 const TYPE_HISTORY = 'core:history';
20 const TYPE_MFA = 'core:mfa';
21 const TYPE_FILE = 'core:file';
23 const COLOR_RED = 'red';
24 const COLOR_ORANGE = 'orange';
25 const COLOR_YELLOW = 'yellow';
26 const COLOR_GREEN = 'green';
27 const COLOR_SKY = 'sky';
28 const COLOR_BLUE = 'blue';
29 const COLOR_INDIGO = 'indigo';
30 const COLOR_VIOLET = 'violet';
31 const COLOR_GREY = 'grey';
32 const COLOR_BLACK = 'black';
35 public static function getInlineStateMap() {
36 return array(
37 PhabricatorInlineComment::STATE_DRAFT =>
38 PhabricatorInlineComment::STATE_DONE,
39 PhabricatorInlineComment::STATE_UNDRAFT =>
40 PhabricatorInlineComment::STATE_UNDONE,