Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/countdown/mail/PhabricatorCountdownMailReceiver.php
12256 views
1
<?php
2
3
final class PhabricatorCountdownMailReceiver
4
extends PhabricatorObjectMailReceiver {
5
6
public function isEnabled() {
7
return PhabricatorApplication::isClassInstalled(
8
'PhabricatorCountdownApplication');
9
}
10
11
protected function getObjectPattern() {
12
return 'C[1-9]\d*';
13
}
14
15
protected function loadObject($pattern, PhabricatorUser $viewer) {
16
$id = (int)substr($pattern, 1);
17
18
return id(new PhabricatorCountdownQuery())
19
->setViewer($viewer)
20
->withIDs(array($id))
21
->executeOne();
22
}
23
24
protected function getTransactionReplyHandler() {
25
return new PhabricatorCountdownReplyHandler();
26
}
27
28
}
29
30