Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94694409
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
Mon, Dec 9, 07:52
Size
639 B
Mime Type
text/x-php
Expires
Wed, Dec 11, 07:52 (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