Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96579934
PholioMockMailReceiver.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
Sat, Dec 28, 11:46
Size
750 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 11:46 (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
23211294
Attached To
rPH Phabricator
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
processReceivedObjectMail
(
PhabricatorMetaMTAReceivedMail
$mail
,
PhabricatorLiskDAO
$object
,
PhabricatorUser
$sender
)
{
// TODO: For now, we just drop this mail on the floor.
}
}
Event Timeline
Log In to Comment