Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34128540
PholioMockMailReceiver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
626 B
Subscribers
None
PholioMockMailReceiver.php
View Options
<?php
final
class
PholioMockMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorPholioApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'M[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'M'
);
return
id
(
new
PholioMockQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PholioReplyHandler
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Dec 7, 4:59 PM (13 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f1/6c/148e9c27692b9dad96b06a11f9f9
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment