Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/conpherence/application/PhabricatorConpherenceApplication.php
12256 views
1
<?php
2
3
final class PhabricatorConpherenceApplication extends PhabricatorApplication {
4
5
public function getBaseURI() {
6
return '/conpherence/';
7
}
8
9
public function getName() {
10
return pht('Conpherence');
11
}
12
13
public function getShortDescription() {
14
return pht('Chat with Others');
15
}
16
17
public function getIcon() {
18
return 'fa-comments';
19
}
20
21
public function getTitleGlyph() {
22
return "\xE2\x9C\x86";
23
}
24
25
public function getRemarkupRules() {
26
return array(
27
new ConpherenceThreadRemarkupRule(),
28
);
29
}
30
31
public function getRoutes() {
32
return array(
33
'/Z(?P<id>[1-9]\d*)'
34
=> 'ConpherenceViewController',
35
'/conpherence/' => array(
36
''
37
=> 'ConpherenceListController',
38
'thread/(?P<id>[1-9]\d*)/'
39
=> 'ConpherenceListController',
40
'threadsearch/(?P<id>[1-9]\d*)/'
41
=> 'ConpherenceThreadSearchController',
42
'(?P<id>[1-9]\d*)/'
43
=> 'ConpherenceViewController',
44
'(?P<id>[1-9]\d*)/(?P<messageID>[1-9]\d*)/'
45
=> 'ConpherenceViewController',
46
'columnview/'
47
=> 'ConpherenceColumnViewController',
48
$this->getEditRoutePattern('new/')
49
=> 'ConpherenceRoomEditController',
50
$this->getEditRoutePattern('edit/')
51
=> 'ConpherenceRoomEditController',
52
'picture/(?P<id>[1-9]\d*)/'
53
=> 'ConpherenceRoomPictureController',
54
'search/(?:query/(?P<queryKey>[^/]+)/)?'
55
=> 'ConpherenceRoomListController',
56
'panel/'
57
=> 'ConpherenceNotificationPanelController',
58
'participant/(?P<id>[1-9]\d*)/'
59
=> 'ConpherenceParticipantController',
60
'preferences/(?P<id>[1-9]\d*)/'
61
=> 'ConpherenceRoomPreferencesController',
62
'update/(?P<id>[1-9]\d*)/'
63
=> 'ConpherenceUpdateController',
64
),
65
);
66
}
67
68
public function getQuicksandURIPatternBlacklist() {
69
return array(
70
'/conpherence/.*',
71
'/Z\d+',
72
);
73
}
74
75
public function getMailCommandObjects() {
76
77
// TODO: Conpherence threads don't currently support any commands directly,
78
// so the documentation page we end up generating is empty and funny
79
// looking. Add support here once we support "!add", "!leave", "!topic",
80
// or whatever else.
81
82
return array();
83
}
84
85
}
86
87