Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94272364
PhabricatorSlowvoteMailReceiver.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
Thu, Dec 5, 08:31
Size
639 B
Mime Type
text/x-php
Expires
Sat, Dec 7, 08:31 (2 d)
Engine
blob
Format
Raw Data
Handle
22772330
Attached To
rPH Phabricator
PhabricatorSlowvoteMailReceiver.php
View Options
<?php
final
class
PhabricatorSlowvoteMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
return
PhabricatorApplication
::
isClassInstalled
(
'PhabricatorSlowvoteApplication'
);
}
protected
function
getObjectPattern
()
{
return
'V[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
substr
(
$pattern
,
4
);
return
id
(
new
PhabricatorSlowvoteQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhabricatorSlowvoteReplyHandler
();
}
}
Event Timeline
Log In to Comment