Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91918397
PhabricatorBadgesMailReceiver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 15, 17:42
Size
634 B
Mime Type
text/x-php
Expires
Sun, Nov 17, 17:42 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22344507
Attached To
rPH Phabricator
PhabricatorBadgesMailReceiver.php
View Options
<?php
final
class
PhabricatorBadgesMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorBadgesApplication'
);
}
protected
function
getObjectPattern
()
{
return
'BDGE[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
substr
(
$pattern
,
4
);
return
id
(
new
PhabricatorBadgesQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhabricatorBadgesReplyHandler
();
}
}
Event Timeline
Log In to Comment